1 |
commit: e8a2bf0e68093bc94a0fedc634da6c6bde93bb69 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 20 21:51:28 2021 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 20 21:54:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8a2bf0e |
7 |
|
8 |
media-gfx/inkscape: Version bump (v1.0.2) |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
media-gfx/inkscape/Manifest | 1 + |
14 |
media-gfx/inkscape/inkscape-1.0.2.ebuild | 157 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 158 insertions(+) |
16 |
|
17 |
diff --git a/media-gfx/inkscape/Manifest b/media-gfx/inkscape/Manifest |
18 |
index 9048977f8e6..aaa5a70469f 100644 |
19 |
--- a/media-gfx/inkscape/Manifest |
20 |
+++ b/media-gfx/inkscape/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST inkscape-1.0.1.tar.xz 32051632 BLAKE2B d17ae49c42908e24aade2216f5adaf56b14ac830decfa2c07ea711c034d144251d5c039f516934a6d004b48165ab3a70d40a7cb7e658ae5e97ef37b392a7d556 SHA512 70145e02fe7c3ffbfa3dcea690bfe3315131fb9a507c70bcdc1d0db394d207e3bd04d7cc86c3b625597bddfd2b6e09a03841aece6d2ffb6517fe1c619193ec96 |
23 |
+DIST inkscape-1.0.2.tar.xz 32421620 BLAKE2B c3f9c37b15343ba0955a6d06810aef5fb9e035a240f99579301b8cd93858a62b5ed1a3ff528a9642ec74b8900305495236cf7f4c672864369a4e33dca3b34bd4 SHA512 f4fbc627c0f07db11194715c505b771a60af29a9a7f8be0232e4f7eb6b1c5814c3f160c2003d64ec62aeb92ef44174320a47aa6b6abc7a67cc27c996cba9522d |
24 |
DIST inkscape-1.0.tar.xz 31935616 BLAKE2B 096ef6ccfd519118acffa3b15302a2d92f94976f37cf58c1fdab79abb64a2de14d02e1199364c71265a332f57809603ec1b6f4f34b90e910376e1cbc5c6d1cb8 SHA512 37c18079eb926fd6874deee95e4008bae165c5e52d05cb53bbc8f4a48eedd0e0ab6b3e5dfbb23709169187bfe8eb5aa44d576268667f2566a2cd4dd5426554f0 |
25 |
|
26 |
diff --git a/media-gfx/inkscape/inkscape-1.0.2.ebuild b/media-gfx/inkscape/inkscape-1.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..ed4d6019f5e |
29 |
--- /dev/null |
30 |
+++ b/media-gfx/inkscape/inkscape-1.0.2.ebuild |
31 |
@@ -0,0 +1,157 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+PYTHON_REQ_USE="xml" |
39 |
+ |
40 |
+inherit cmake flag-o-matic xdg toolchain-funcs python-single-r1 |
41 |
+ |
42 |
+DESCRIPTION="SVG based generic vector-drawing program" |
43 |
+HOMEPAGE="https://inkscape.org/" |
44 |
+SRC_URI="https://dev.gentoo.org/~zlogene/distfiles/${CATEGORY}/${PN}/${P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="GPL-2 LGPL-2.1" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
49 |
+IUSE="cdr dbus dia exif graphicsmagick imagemagick inkjar jemalloc jpeg lcms |
50 |
+openmp postscript spell static-libs svg2 visio wpg" |
51 |
+ |
52 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
53 |
+ |
54 |
+BDEPEND=" |
55 |
+ dev-util/glib-utils |
56 |
+ >=dev-util/intltool-0.40 |
57 |
+ >=sys-devel/gettext-0.17 |
58 |
+ virtual/pkgconfig |
59 |
+" |
60 |
+COMMON_DEPEND="${PYTHON_DEPS} |
61 |
+ >=app-text/poppler-0.57.0:=[cairo] |
62 |
+ >=dev-cpp/cairomm-1.12 |
63 |
+ >=dev-cpp/glibmm-2.54.1 |
64 |
+ dev-cpp/gtkmm:3.0 |
65 |
+ >=dev-cpp/pangomm-2.40 |
66 |
+ >=dev-libs/boehm-gc-7.1:= |
67 |
+ dev-libs/double-conversion:= |
68 |
+ >=dev-libs/glib-2.41 |
69 |
+ >=dev-libs/libsigc++-2.8 |
70 |
+ >=dev-libs/libxml2-2.7.4 |
71 |
+ >=dev-libs/libxslt-1.1.25 |
72 |
+ dev-libs/gdl:3 |
73 |
+ dev-libs/popt |
74 |
+ media-gfx/potrace |
75 |
+ media-libs/fontconfig |
76 |
+ media-libs/freetype:2 |
77 |
+ media-libs/libpng:0= |
78 |
+ net-libs/libsoup |
79 |
+ sci-libs/gsl:= |
80 |
+ x11-libs/libX11 |
81 |
+ >=x11-libs/pango-1.37.2 |
82 |
+ x11-libs/gtk+:3 |
83 |
+ $(python_gen_cond_dep ' |
84 |
+ dev-python/lxml[${PYTHON_MULTI_USEDEP}] |
85 |
+ media-gfx/scour[${PYTHON_MULTI_USEDEP}] |
86 |
+ ') |
87 |
+ cdr? ( |
88 |
+ app-text/libwpg:0.3 |
89 |
+ dev-libs/librevenge |
90 |
+ media-libs/libcdr |
91 |
+ ) |
92 |
+ dbus? ( dev-libs/dbus-glib ) |
93 |
+ exif? ( media-libs/libexif ) |
94 |
+ imagemagick? ( |
95 |
+ !graphicsmagick? ( media-gfx/imagemagick:=[cxx] ) |
96 |
+ graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] ) |
97 |
+ ) |
98 |
+ jemalloc? ( dev-libs/jemalloc ) |
99 |
+ jpeg? ( virtual/jpeg:0 ) |
100 |
+ lcms? ( media-libs/lcms:2 ) |
101 |
+ spell? ( |
102 |
+ app-text/aspell |
103 |
+ app-text/gtkspell:3 |
104 |
+ ) |
105 |
+ visio? ( |
106 |
+ app-text/libwpg:0.3 |
107 |
+ dev-libs/librevenge |
108 |
+ media-libs/libvisio |
109 |
+ ) |
110 |
+ wpg? ( |
111 |
+ app-text/libwpg:0.3 |
112 |
+ dev-libs/librevenge |
113 |
+ ) |
114 |
+" |
115 |
+# These only use executables provided by these packages |
116 |
+# See share/extensions for more details. inkscape can tell you to |
117 |
+# install these so we could of course just not depend on those and rely |
118 |
+# on that. |
119 |
+RDEPEND="${COMMON_DEPEND} |
120 |
+ $(python_gen_cond_dep ' |
121 |
+ dev-python/numpy[${PYTHON_MULTI_USEDEP}] |
122 |
+ ') |
123 |
+ dia? ( app-office/dia ) |
124 |
+ postscript? ( app-text/ghostscript-gpl ) |
125 |
+" |
126 |
+DEPEND="${COMMON_DEPEND} |
127 |
+ >=dev-libs/boost-1.65 |
128 |
+" |
129 |
+ |
130 |
+RESTRICT="test" |
131 |
+ |
132 |
+S="${WORKDIR}"/${P}_2021-01-15_e86c870879 |
133 |
+ |
134 |
+pkg_pretend() { |
135 |
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
136 |
+ tc-has-openmp || die "Please switch to an openmp compatible compiler" |
137 |
+ fi |
138 |
+} |
139 |
+ |
140 |
+src_prepare() { |
141 |
+ cmake_src_prepare |
142 |
+ sed -i "/install.*COPYING/d" CMakeScripts/ConfigCPack.cmake || die |
143 |
+} |
144 |
+ |
145 |
+src_configure() { |
146 |
+ # aliasing unsafe wrt #310393 |
147 |
+ append-flags -fno-strict-aliasing |
148 |
+ |
149 |
+ local mycmakeargs=( |
150 |
+ # -DWITH_LPETOOL # Compile with LPE Tool and experimental LPEs enabled |
151 |
+ -DENABLE_POPPLER=ON |
152 |
+ -DWITH_NLS=ON |
153 |
+ -DENABLE_POPPLER_CAIRO=ON |
154 |
+ -DWITH_PROFILING=OFF |
155 |
+ -DWITH_LIBCDR=$(usex cdr) |
156 |
+ -DWITH_DBUS=$(usex dbus) |
157 |
+ -DWITH_IMAGE_MAGICK=$(usex imagemagick $(usex !graphicsmagick)) # requires ImageMagick 6, only IM must be enabled |
158 |
+ -DWITH_GRAPHICS_MAGICK=$(usex graphicsmagick $(usex imagemagick)) # both must be enabled to use GraphicsMagick |
159 |
+ -DWITH_JEMALLOC=$(usex jemalloc) |
160 |
+ -DENABLE_LCMS=$(usex lcms) |
161 |
+ -DWITH_OPENMP=$(usex openmp) |
162 |
+ -DBUILD_SHARED_LIBS=$(usex !static-libs) |
163 |
+ -DWITH_SVG2=$(usex svg2) |
164 |
+ -DWITH_LIBVISIO=$(usex visio) |
165 |
+ -DWITH_LIBWPG=$(usex wpg) |
166 |
+ ) |
167 |
+ |
168 |
+ cmake_src_configure |
169 |
+} |
170 |
+ |
171 |
+src_install() { |
172 |
+ cmake_src_install |
173 |
+ |
174 |
+ find "${ED}" -type f -name "*.la" -delete || die |
175 |
+ |
176 |
+ find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.bz2' -exec bzip2 -d {} \; || die |
177 |
+ |
178 |
+ find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.gz' -exec gzip -d {} \; || die |
179 |
+ |
180 |
+ local extdir="${ED}"/usr/share/${PN}/extensions |
181 |
+ |
182 |
+ if [[ -e "${extdir}" ]] && [[ -n $(find "${extdir}" -mindepth 1) ]]; then |
183 |
+ python_optimize "${ED}"/usr/share/${PN}/extensions |
184 |
+ fi |
185 |
+ |
186 |
+ # Empty directory causes sandbox issues, see bug #761915 |
187 |
+ rm -r "${ED}/usr/share/inkscape/fonts" || die "Failed to remove fonts directory." |
188 |
+} |