3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
|
6 |
LLVM_MAX_SLOT=17
|
6 |
7 |
PYTHON_COMPAT=( python3_{10..12} )
|
7 |
8 |
PYTHON_REQ_USE="xml(+)"
|
8 |
9 |
|
9 |
10 |
inherit cmake flag-o-matic llvm python-any-r1
|
10 |
|
if [[ ${PV} = *9999* ]]; then
|
|
11 |
|
|
12 |
DESCRIPTION="Documentation system for most programming languages"
|
|
13 |
HOMEPAGE="https://www.doxygen.nl/"
|
|
14 |
|
|
15 |
if [[ ${PV} == *9999* ]]; then
|
11 |
16 |
inherit git-r3
|
12 |
17 |
EGIT_REPO_URI="https://github.com/doxygen/doxygen.git"
|
13 |
18 |
else
|
14 |
19 |
SRC_URI="https://doxygen.nl/files/${P}.src.tar.gz"
|
15 |
20 |
SRC_URI+=" mirror://sourceforge/doxygen/rel-${PV}/${P}.src.tar.gz"
|
16 |
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
21 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
17 |
22 |
fi
|
18 |
23 |
|
19 |
|
DESCRIPTION="Documentation system for most programming languages"
|
20 |
|
HOMEPAGE="https://www.doxygen.nl/"
|
21 |
|
|
22 |
|
# GPL-2 also for bundled libmscgen, MIT for bundled spdlog
|
23 |
|
LICENSE="GPL-2 MIT"
|
|
24 |
# GPL-2 also for bundled libmscgen
|
|
25 |
LICENSE="GPL-2"
|
24 |
26 |
SLOT="0"
|
25 |
|
IUSE="clang debug doc dot doxysearch qt5 sqlite test"
|
26 |
|
# We need TeX for tests, bug #765472
|
27 |
|
# We keep the odd construct of noop USE=test because of
|
28 |
|
# the special relationship b/t RESTRICT & USE for tests. Also, it's a hint
|
29 |
|
# which avoids tests being silently skipped during arch testing.
|
|
27 |
IUSE="clang debug doc dot doxysearch gui sqlite test"
|
|
28 |
# - We need TeX for tests, bug #765472
|
|
29 |
# - We keep the odd construct of noop USE=test because of
|
|
30 |
# the special relationship b/t RESTRICT & USE for tests.
|
|
31 |
# Also, it's a hint which avoids tests being silently skipped during arch testing.
|
30 |
32 |
REQUIRED_USE="test? ( doc )"
|
31 |
33 |
RESTRICT="!test? ( test )"
|
32 |
34 |
|
33 |
|
BDEPEND="sys-devel/bison
|
|
35 |
BDEPEND="
|
|
36 |
sys-devel/bison
|
34 |
37 |
sys-devel/flex
|
35 |
38 |
${PYTHON_DEPS}
|
36 |
39 |
"
|
37 |
|
RDEPEND="app-text/ghostscript-gpl
|
|
40 |
RDEPEND="
|
|
41 |
app-text/ghostscript-gpl
|
|
42 |
dev-db/sqlite:3
|
38 |
43 |
dev-lang/perl
|
39 |
|
media-libs/libpng:0=
|
|
44 |
dev-libs/libfmt:=
|
|
45 |
dev-libs/spdlog:=
|
|
46 |
media-libs/libpng:=
|
40 |
47 |
virtual/libiconv
|
41 |
|
clang? ( >=sys-devel/clang-10:= )
|
|
48 |
clang? (
|
|
49 |
<sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
|
|
50 |
)
|
42 |
51 |
dot? (
|
43 |
52 |
media-gfx/graphviz
|
44 |
53 |
media-libs/freetype
|
... | ... | |
52 |
61 |
dev-texlive/texlive-plaingeneric
|
53 |
62 |
)
|
54 |
63 |
doxysearch? ( dev-libs/xapian:= )
|
55 |
|
qt5? (
|
|
64 |
gui? (
|
|
65 |
dev-qt/qtcore:5
|
56 |
66 |
dev-qt/qtgui:5
|
57 |
67 |
dev-qt/qtwidgets:5
|
58 |
68 |
dev-qt/qtxml:5
|
59 |
69 |
)
|
60 |
|
sqlite? ( dev-db/sqlite:3 )
|
61 |
70 |
"
|
62 |
71 |
DEPEND="${RDEPEND}"
|
63 |
72 |
|
64 |
73 |
PATCHES=(
|
65 |
74 |
"${FILESDIR}/${PN}-1.9.4-link_with_pthread.patch"
|
66 |
|
"${FILESDIR}/${PN}-1.9.1-ignore-bad-encoding.patch"
|
67 |
|
"${FILESDIR}/${PN}-1.9.1-do_not_force_libcxx.patch"
|
68 |
75 |
"${FILESDIR}/${PN}-1.9.7-musl-1.2.4.patch"
|
|
76 |
"${FILESDIR}/${PN}-1.9.8-suppress-unused-option-libcxx.patch"
|
|
77 |
|
|
78 |
# Backports
|
|
79 |
"${FILESDIR}/${P}-spdlog-link.patch"
|
|
80 |
"${FILESDIR}/${P}-unbundle-sqlite.patch"
|
69 |
81 |
)
|
70 |
82 |
|
71 |
83 |
DOCS=( LANGUAGE.HOWTO README.md )
|
... | ... | |
103 |
115 |
|
104 |
116 |
local mycmakeargs=(
|
105 |
117 |
-Duse_libclang=$(usex clang)
|
|
118 |
# Let the user choose instead, see also bug #822615
|
|
119 |
-Duse_libc++=OFF
|
106 |
120 |
-Dbuild_doc=$(usex doc)
|
107 |
121 |
-Dbuild_search=$(usex doxysearch)
|
108 |
|
-Dbuild_wizard=$(usex qt5)
|
109 |
|
-Duse_sqlite3=$(usex sqlite)
|
|
122 |
-Dbuild_wizard=$(usex gui)
|
|
123 |
-Duse_sys_spdlog=ON
|
|
124 |
-Duse_sys_sqlite3=ON
|
110 |
125 |
-DBUILD_SHARED_LIBS=OFF
|
111 |
126 |
-DGIT_EXECUTABLE="false"
|
112 |
127 |
)
|