1 |
commit: 63af94bfcd2ca9cbe61b47ff54eb480354b97cd5 |
2 |
Author: Petr Vaněk <arkamar <AT> atlas <DOT> cz> |
3 |
AuthorDate: Fri May 20 13:33:02 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 02:12:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63af94bf |
7 |
|
8 |
media-gfx/inkscape: add 1.2 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/846893 |
11 |
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
media-gfx/inkscape/Manifest | 1 + |
15 |
media-gfx/inkscape/inkscape-1.2.ebuild | 182 +++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 183 insertions(+) |
17 |
|
18 |
diff --git a/media-gfx/inkscape/Manifest b/media-gfx/inkscape/Manifest |
19 |
index 8e1fb029015d..568f2b0515b2 100644 |
20 |
--- a/media-gfx/inkscape/Manifest |
21 |
+++ b/media-gfx/inkscape/Manifest |
22 |
@@ -2,3 +2,4 @@ DIST inkscape-1.1-musl.txz 10820 BLAKE2B 3e7d346161d8c58436cae01227ce0eafc122276 |
23 |
DIST inkscape-1.1.1.tar.xz 34221284 BLAKE2B e628ead14f76fa3de929cfe14a6f085c5e9cd4304d2ee0a4b2046380284aacb8a32ff311c2e104f39f6abd0d080594ec4f9783fcaff183588107eedb49863c82 SHA512 22b1b584a344c4f4ebd0b6e84a4af44e472ef47b3971cb97cbb026a4bf7cb5bea49a7de0c2af2a9e439c7c794f775081c8d1904f33eadb49a5389ea01bc0896c |
24 |
DIST inkscape-1.1.2.tar.xz 34222832 BLAKE2B cb9bd271ff209055a6f5c2d99fd93dde29c7cb8c1b7caa7061dd1380ea914d5ccc6f5a91c5356c68bf0fd1462a3a5178e9774d0aeadcfceee9f0ea5f4beee73b SHA512 55884f34e6fcc604027e7ea60f67702a658d3838332c1f3b56ec2cb05ab44992df0651ed741d6e7e807848366b24ee7415d0908ed1143b0bfb33ddbf26ae5c16 |
25 |
DIST inkscape-1.1.tar.xz 34203156 BLAKE2B 38896509dcdcf1ef18523c790855035ef16dfae75e27c2d69f782270f52a579557edcb790bef30f3210b9f797a619369d7d16dd23f098debdd8e5b6abf9b30aa SHA512 54b75f8794d748ef59d5b719ea04e3debadc1a5cf3f62f14254502567973bbd634850edd0a3bc082be878dacf041e9bd10982c4846bf154f89aa5319eda4ee80 |
26 |
+DIST inkscape-1.2.tar.xz 39157952 BLAKE2B f2f8041cb57d8aa4cad1007f40ea7ce251a6d0c44d713a1542dd9cdf43b4a221705f5b59a244f6e9aca62ad7ec3686f44e7d79ec8cfdeb83a01f18a0d1be32bf SHA512 d4be4ef80638ed5a0fae655c3ea696a2171130110e220beb510e4b51dba95854ad065293bb07683c93a1c550764a1947621389da1199c43997f76b62b69e3812 |
27 |
|
28 |
diff --git a/media-gfx/inkscape/inkscape-1.2.ebuild b/media-gfx/inkscape/inkscape-1.2.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..5e052cb10ba3 |
31 |
--- /dev/null |
32 |
+++ b/media-gfx/inkscape/inkscape-1.2.ebuild |
33 |
@@ -0,0 +1,182 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+PYTHON_REQ_USE="xml" |
41 |
+MY_P="${P/_/}" |
42 |
+inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1 |
43 |
+ |
44 |
+if [[ ${PV} = 9999* ]]; then |
45 |
+ inherit git-r3 |
46 |
+ EGIT_REPO_URI="https://gitlab.com/inkscape/inkscape.git" |
47 |
+else |
48 |
+ SRC_URI="https://media.inkscape.org/dl/resources/file/${P}_2022-05-15_dc2aedaf03.tar.xz -> ${P}.tar.xz" |
49 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
50 |
+fi |
51 |
+ |
52 |
+DESCRIPTION="SVG based generic vector-drawing program" |
53 |
+HOMEPAGE="https://inkscape.org/ https://gitlab.com/inkscape/inkscape/" |
54 |
+ |
55 |
+LICENSE="GPL-2 LGPL-2.1" |
56 |
+SLOT="0" |
57 |
+IUSE="cdr dia exif graphicsmagick imagemagick inkjar jemalloc jpeg |
58 |
+openmp postscript readline spell svg2 test visio wpg X" |
59 |
+ |
60 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
61 |
+ |
62 |
+BDEPEND=" |
63 |
+ dev-util/glib-utils |
64 |
+ >=dev-util/intltool-0.40 |
65 |
+ >=sys-devel/gettext-0.17 |
66 |
+ virtual/pkgconfig |
67 |
+ test? ( virtual/imagemagick-tools ) |
68 |
+" |
69 |
+COMMON_DEPEND="${PYTHON_DEPS} |
70 |
+ >=app-text/poppler-0.57.0:=[cairo] |
71 |
+ >=dev-cpp/cairomm-1.12:0 |
72 |
+ >=dev-cpp/glibmm-2.54.1:2 |
73 |
+ dev-cpp/gtkmm:3.0 |
74 |
+ >=dev-cpp/pangomm-2.40:1.4 |
75 |
+ >=dev-libs/boehm-gc-7.1:= |
76 |
+ >=dev-libs/boost-1.65:= |
77 |
+ dev-libs/double-conversion:= |
78 |
+ >=dev-libs/glib-2.41 |
79 |
+ >=dev-libs/libsigc++-2.8:2 |
80 |
+ >=dev-libs/libxml2-2.7.4 |
81 |
+ >=dev-libs/libxslt-1.1.25 |
82 |
+ dev-libs/gdl:3 |
83 |
+ dev-libs/popt |
84 |
+ media-gfx/potrace |
85 |
+ media-libs/fontconfig |
86 |
+ media-libs/freetype:2 |
87 |
+ media-libs/lcms:2 |
88 |
+ media-libs/libpng:0= |
89 |
+ net-libs/libsoup:2.4 |
90 |
+ sci-libs/gsl:= |
91 |
+ >=x11-libs/pango-1.44 |
92 |
+ x11-libs/gtk+:3[X?] |
93 |
+ X? ( x11-libs/libX11 ) |
94 |
+ $(python_gen_cond_dep ' |
95 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
96 |
+ media-gfx/scour[${PYTHON_USEDEP}] |
97 |
+ ') |
98 |
+ cdr? ( |
99 |
+ app-text/libwpg:0.3 |
100 |
+ dev-libs/librevenge |
101 |
+ media-libs/libcdr |
102 |
+ ) |
103 |
+ exif? ( media-libs/libexif ) |
104 |
+ imagemagick? ( |
105 |
+ !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) |
106 |
+ graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) |
107 |
+ ) |
108 |
+ jemalloc? ( dev-libs/jemalloc ) |
109 |
+ jpeg? ( media-libs/libjpeg-turbo:= ) |
110 |
+ readline? ( sys-libs/readline:= ) |
111 |
+ spell? ( app-text/gspell ) |
112 |
+ visio? ( |
113 |
+ app-text/libwpg:0.3 |
114 |
+ dev-libs/librevenge |
115 |
+ media-libs/libvisio |
116 |
+ ) |
117 |
+ wpg? ( |
118 |
+ app-text/libwpg:0.3 |
119 |
+ dev-libs/librevenge |
120 |
+ ) |
121 |
+" |
122 |
+# These only use executables provided by these packages |
123 |
+# See share/extensions for more details. inkscape can tell you to |
124 |
+# install these so we could of course just not depend on those and rely |
125 |
+# on that. |
126 |
+RDEPEND="${COMMON_DEPEND} |
127 |
+ $(python_gen_cond_dep ' |
128 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
129 |
+ ') |
130 |
+ dia? ( app-office/dia ) |
131 |
+ postscript? ( app-text/ghostscript-gpl ) |
132 |
+" |
133 |
+DEPEND="${COMMON_DEPEND} |
134 |
+ test? ( dev-cpp/gtest ) |
135 |
+" |
136 |
+ |
137 |
+RESTRICT="!test? ( test )" |
138 |
+ |
139 |
+S="${WORKDIR}/${MY_P}" |
140 |
+ |
141 |
+pkg_pretend() { |
142 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
143 |
+} |
144 |
+ |
145 |
+pkg_setup() { |
146 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
147 |
+ python-single-r1_pkg_setup |
148 |
+} |
149 |
+ |
150 |
+src_unpack() { |
151 |
+ if [[ ${PV} = 9999* ]]; then |
152 |
+ git-r3_src_unpack |
153 |
+ else |
154 |
+ default |
155 |
+ fi |
156 |
+ [[ -d "${S}" ]] || mv -v "${WORKDIR}/${P}_202"?-??-* "${S}" || die |
157 |
+} |
158 |
+ |
159 |
+src_prepare() { |
160 |
+ cmake_src_prepare |
161 |
+ sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die |
162 |
+} |
163 |
+ |
164 |
+src_configure() { |
165 |
+ # aliasing unsafe wrt #310393 |
166 |
+ append-flags -fno-strict-aliasing |
167 |
+ |
168 |
+ local mycmakeargs=( |
169 |
+ # -DWITH_LPETOOL # Compile with LPE Tool and experimental LPEs enabled |
170 |
+ -DWITH_NLS=ON |
171 |
+ -DENABLE_POPPLER=ON |
172 |
+ -DENABLE_POPPLER_CAIRO=ON |
173 |
+ -DWITH_PROFILING=OFF |
174 |
+ -DWITH_INTERNAL_2GEOM=ON |
175 |
+ -DBUILD_TESTING=$(usex test) |
176 |
+ -DWITH_LIBCDR=$(usex cdr) |
177 |
+ -DWITH_IMAGE_MAGICK=$(usex imagemagick $(usex !graphicsmagick)) # requires ImageMagick 6, only IM must be enabled |
178 |
+ -DWITH_GRAPHICS_MAGICK=$(usex graphicsmagick $(usex imagemagick)) # both must be enabled to use GraphicsMagick |
179 |
+ -DWITH_GNU_READLINE=$(usex readline) |
180 |
+ -DWITH_GSPELL=$(usex spell) |
181 |
+ -DWITH_JEMALLOC=$(usex jemalloc) |
182 |
+ -DENABLE_LCMS=ON |
183 |
+ -DWITH_OPENMP=$(usex openmp) |
184 |
+ -DBUILD_SHARED_LIBS=ON |
185 |
+ -DWITH_SVG2=$(usex svg2) |
186 |
+ -DWITH_LIBVISIO=$(usex visio) |
187 |
+ -DWITH_LIBWPG=$(usex wpg) |
188 |
+ -DWITH_X11=$(usex X) |
189 |
+ ) |
190 |
+ |
191 |
+ cmake_src_configure |
192 |
+} |
193 |
+ |
194 |
+src_test() { |
195 |
+ cmake_build -j1 check |
196 |
+} |
197 |
+ |
198 |
+src_install() { |
199 |
+ cmake_src_install |
200 |
+ |
201 |
+ find "${ED}" -type f -name "*.la" -delete || die |
202 |
+ |
203 |
+ find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.bz2' -exec bzip2 -d {} \; || die |
204 |
+ |
205 |
+ find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.gz' -exec gzip -d {} \; || die |
206 |
+ |
207 |
+ local extdir="${ED}"/usr/share/${PN}/extensions |
208 |
+ |
209 |
+ if [[ -e "${extdir}" ]] && [[ -n $(find "${extdir}" -mindepth 1) ]]; then |
210 |
+ python_optimize "${ED}"/usr/share/${PN}/extensions |
211 |
+ fi |
212 |
+ |
213 |
+ # Empty directory causes sandbox issues, see bug #761915 |
214 |
+ rm -r "${ED}/usr/share/inkscape/fonts" || die "Failed to remove fonts directory." |
215 |
+} |