Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/doxygen/, app-doc/doxygen/files/
Date: Sat, 14 May 2022 20:04:47
Message-Id: 1652558680.9665b57a9eba60f67c1daa3b585d40eef4785efc.tamiko@gentoo
1 commit: 9665b57a9eba60f67c1daa3b585d40eef4785efc
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 20:01:28 2022 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 20:04:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9665b57a
7
8 app-doc/doxygen: add 1.9.4
9
10 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
11
12 app-doc/doxygen/Manifest | 1 +
13 app-doc/doxygen/doxygen-1.9.4.ebuild | 128 +++++++++++++++++++++
14 .../files/doxygen-1.9.4-link_with_pthread.patch | 24 ++++
15 3 files changed, 153 insertions(+)
16
17 diff --git a/app-doc/doxygen/Manifest b/app-doc/doxygen/Manifest
18 index 1b9bdbad9421..6daf172c6864 100644
19 --- a/app-doc/doxygen/Manifest
20 +++ b/app-doc/doxygen/Manifest
21 @@ -1,3 +1,4 @@
22 DIST doxygen-1.9.1.src.tar.gz 5117435 BLAKE2B 28c1a1cb8390e17e2b399cea765f837782ee268a999606eef4031a5f65943c793c97bdbd2e2a25a39358ecac5df2c7a62aa4cca72753a924e4e718c512b8a9c7 SHA512 637496c549a4a150cfaeb5d4913de512262145ecd7d455d7b7f3dd68f9416e47d931a6c1efd8a17d931e4baf4a8a9f2ed21124664003b123b6f89ca4abf263ed
23 DIST doxygen-1.9.2.src.tar.gz 5076037 BLAKE2B 7b21b228a2049f3048fba744d94066524a0fca37335a7ffd2616fd62a8a7d8d9d28d0bd506245c63771264a279a21f327e5386a9b4c490eea7f79ddd9583b566 SHA512 2729d013b0363a919bbf6babd300389b76e95dd9dbb16ac0f57fc5a0392d3e2076ea4fba958a236311513e68e4aa056a77bd22c9c92b410a17eed095e5adccc0
24 DIST doxygen-1.9.3.src.tar.gz 5152094 BLAKE2B 1dabbed1058544159cf369fa1728410545d51857f053d43202fc2b1b19a7fda887fad711efa88770eac98ee7da7cf6fe3d13b03c0525db680b5f5f87f4c16fba SHA512 a4a3efac6897d9aeabc4a1eab6530883da782cdd8461c96b47a82f89328a877c91916d3a338706a8232270732efa37e9f05440cb4034976622e35f301aa1659b
25 +DIST doxygen-1.9.4.src.tar.gz 5196383 BLAKE2B 8fe27a8821e3309aa0314586b569a7e295425ba50f4c3e56eb1e2e726f15197c7e1b4c68803b4017345b5a67fddbadcc5a5b30039287a38c3a804bfce844c513 SHA512 613f17800ebd05b66b1954af4d51282a1779678e7ade6c43046fc940742a697ebdf3af8e94ac70a3422bc96def663e70eaea8c4349d192e2fe5e516c57cc345a
26
27 diff --git a/app-doc/doxygen/doxygen-1.9.4.ebuild b/app-doc/doxygen/doxygen-1.9.4.ebuild
28 new file mode 100644
29 index 000000000000..dde798573c04
30 --- /dev/null
31 +++ b/app-doc/doxygen/doxygen-1.9.4.ebuild
32 @@ -0,0 +1,128 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +
40 +inherit cmake flag-o-matic llvm python-any-r1
41 +if [[ ${PV} = *9999* ]]; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/doxygen/doxygen.git"
44 +else
45 + SRC_URI="http://doxygen.nl/files/${P}.src.tar.gz"
46 + SRC_URI+=" mirror://sourceforge/doxygen/rel-${PV}/${P}.src.tar.gz"
47 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
48 +fi
49 +
50 +DESCRIPTION="Documentation system for most programming languages"
51 +HOMEPAGE="http://www.doxygen.org"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +IUSE="clang debug doc dot doxysearch qt5 sqlite"
56 +# We need TeX for tests, bug #765472
57 +RESTRICT="!doc? ( test )"
58 +
59 +BDEPEND="sys-devel/bison
60 + sys-devel/flex
61 + ${PYTHON_DEPS}
62 +"
63 +RDEPEND="app-text/ghostscript-gpl
64 + dev-lang/perl
65 + media-libs/libpng:0=
66 + virtual/libiconv
67 + clang? ( >=sys-devel/clang-10:= )
68 + dot? (
69 + media-gfx/graphviz
70 + media-libs/freetype
71 + )
72 + doc? (
73 + dev-texlive/texlive-bibtexextra
74 + dev-texlive/texlive-fontsextra
75 + dev-texlive/texlive-fontutils
76 + dev-texlive/texlive-latex
77 + dev-texlive/texlive-latexextra
78 + dev-texlive/texlive-plaingeneric
79 + )
80 + doxysearch? ( dev-libs/xapian:= )
81 + qt5? (
82 + dev-qt/qtgui:5
83 + dev-qt/qtwidgets:5
84 + dev-qt/qtxml:5
85 + )
86 + sqlite? ( dev-db/sqlite:3 )
87 +"
88 +DEPEND="${RDEPEND}"
89 +
90 +PATCHES=(
91 + "${FILESDIR}/${PN}-1.9.4-link_with_pthread.patch"
92 + "${FILESDIR}/${PN}-1.9.1-ignore-bad-encoding.patch"
93 +)
94 +
95 +DOCS=( LANGUAGE.HOWTO README.md )
96 +
97 +pkg_setup() {
98 + use clang && llvm_pkg_setup
99 + python-any-r1_pkg_setup
100 +}
101 +
102 +src_prepare() {
103 + cmake_src_prepare
104 +
105 + # Call dot with -Teps instead of -Tps for EPS generation - bug #282150
106 + sed -i -e '/addJob("ps"/ s/"ps"/"eps"/g' src/dot.cpp || die
107 +
108 + # fix pdf doc
109 + sed -i.orig -e "s:g_kowal:g kowal:" \
110 + doc/maintainers.txt || die
111 +
112 + if is-flagq "-O3" ; then
113 + ewarn
114 + ewarn "Compiling with -O3 is known to produce incorrectly"
115 + ewarn "optimized code which breaks doxygen."
116 + ewarn
117 + elog
118 + elog "Continuing with -O2 instead ..."
119 + elog
120 + replace-flags "-O3" "-O2"
121 + fi
122 +}
123 +
124 +src_configure() {
125 + local mycmakeargs=(
126 + -Duse_libclang=$(usex clang)
127 + -Dbuild_doc=$(usex doc)
128 + -Dbuild_search=$(usex doxysearch)
129 + -Dbuild_wizard=$(usex qt5)
130 + -Duse_sqlite3=$(usex sqlite)
131 + -DGIT_EXECUTABLE="false"
132 + )
133 +
134 + use doc && mycmakeargs+=(
135 + -DDOC_INSTALL_DIR="share/doc/${P}"
136 + )
137 +
138 + cmake_src_configure
139 +}
140 +
141 +src_compile() {
142 + cmake_src_compile
143 +
144 + if use doc; then
145 + export VARTEXFONTS="${T}/fonts" # bug #564944
146 +
147 + if ! use dot; then
148 + sed -i -e "s/HAVE_DOT = YES/HAVE_DOT = NO/" \
149 + {Doxyfile,doc/Doxyfile} \
150 + || die "disabling dot failed"
151 + fi
152 +
153 + # -j1 for bug #770070
154 + cmake_src_compile docs -j1
155 + fi
156 +}
157 +
158 +src_install() {
159 + cmake_src_install
160 +}
161
162 diff --git a/app-doc/doxygen/files/doxygen-1.9.4-link_with_pthread.patch b/app-doc/doxygen/files/doxygen-1.9.4-link_with_pthread.patch
163 new file mode 100644
164 index 000000000000..66093eb7deb9
165 --- /dev/null
166 +++ b/app-doc/doxygen/files/doxygen-1.9.4-link_with_pthread.patch
167 @@ -0,0 +1,24 @@
168 +diff --git a/addon/doxywizard/.CMakeLists.txt.swp b/addon/doxywizard/.CMakeLists.txt.swp
169 +deleted file mode 100644
170 +index fc379d2..0000000
171 +Binary files a/addon/doxywizard/.CMakeLists.txt.swp and /dev/null differ
172 +diff --git a/addon/doxywizard/CMakeLists.txt b/addon/doxywizard/CMakeLists.txt
173 +index bb0e0eb..b6135bd 100644
174 +--- a/addon/doxywizard/CMakeLists.txt
175 ++++ b/addon/doxywizard/CMakeLists.txt
176 +@@ -132,12 +132,12 @@ apply_editbin(doxywizard windows)
177 + endif()
178 +
179 + if(Qt5Core_FOUND)
180 +- target_link_libraries(doxywizard Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Xml doxygen_version)
181 ++ target_link_libraries(doxywizard Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Xml doxygen_version pthread)
182 + else()
183 + if(Qt6Core_FOUND)
184 +- target_link_libraries(doxywizard Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Xml doxygen_version)
185 ++ target_link_libraries(doxywizard Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Xml doxygen_version pthread)
186 + else()
187 +- target_link_libraries(doxywizard ${QT_LIBRARIES} ${QT_QTMAIN_LIBRARY} doxygen_version)
188 ++ target_link_libraries(doxywizard ${QT_LIBRARIES} ${QT_QTMAIN_LIBRARY} doxygen_version pthread)
189 + endif()
190 + endif()
191 +