1 |
commit: a91e615e2a2a73eb3d0ab06e25cd00d44c3efdd1 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 5 12:37:09 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 5 12:38:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a91e615e |
7 |
|
8 |
media-gfx/inkscape: Version bump (v1.0) |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
media-gfx/inkscape/Manifest | 1 + |
14 |
media-gfx/inkscape/inkscape-1.0.ebuild | 162 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 163 insertions(+) |
16 |
|
17 |
diff --git a/media-gfx/inkscape/Manifest b/media-gfx/inkscape/Manifest |
18 |
index 6896b0893a6..87355bad960 100644 |
19 |
--- a/media-gfx/inkscape/Manifest |
20 |
+++ b/media-gfx/inkscape/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST inkscape-0.92.4.tar.bz2 31929728 BLAKE2B 892bf4ed913019b27a9b8897e3ae32c44152163ded0eb345d59915ffdc9818d29f210de3294ef1b05601141185b5e3b10779778551b860f31e7df5c659492c77 SHA512 b9034605a79cd8aea808edf42e284819951ae1ea67778f0922f4c10224e94aca6c844acbc2294625773f0a7047d4e32ccdada876238a792a2c17db172c88e120 |
23 |
DIST inkscape-1.0_rc1.tar.xz 31984596 BLAKE2B 7e4a3618522c7bc9bedba8bb2a846e1cbf40e23868f04548e67fa41b9f8f1e8f696af386c0698a43ae6f7033937e1a3d4e772518162f712468b614a5b4d3b4ad SHA512 13e14a6dad1e89e6edf7c0197c43506d127b2e5136a2d8d931ad5ea0671b65b3feed5baf2f631b1a4b8095f285c19ffe5170904c9ce5e3e484d00ca2f0800b89 |
24 |
+DIST inkscape-INKSCAPE_1_0.tar.gz 64306274 BLAKE2B 8bc4e2d156fad99b2b2a700bde29372dd56db6a1a9a8e825d46d214bbd18a1d29365510c16d51dbb2cad88f88fb10232f1bab403da4900beaa72de5d0f8726df SHA512 214c04c7f1d23dd0d296f4262743b2a206fe3b3df7abdb4bc4a4604a7f0caab2d7970d04b5795f121417d0e015e2d42d14be0b67438d752a81c4ad079b486f06 |
25 |
|
26 |
diff --git a/media-gfx/inkscape/inkscape-1.0.ebuild b/media-gfx/inkscape/inkscape-1.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..3af00fe145c |
29 |
--- /dev/null |
30 |
+++ b/media-gfx/inkscape/inkscape-1.0.ebuild |
31 |
@@ -0,0 +1,162 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
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://gitlab.com/inkscape/inkscape/-/archive/${PN^^}_$(ver_rs 1-2 "_")/${PN}-${PN^^}_$(ver_rs 1-2 "_").tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2 LGPL-2.1" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" |
49 |
+IUSE="cdr dbus dia exif graphicsmagick imagemagick inkjar jemalloc jpeg lcms nls |
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}"/${PN}-${PN^^}_$(ver_rs 1-2 "_") |
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 |
+ -DENABLE_POPPLER_CAIRO=ON |
153 |
+ -DWITH_PROFILING=OFF |
154 |
+ -DWITH_LIBCDR=$(usex cdr) |
155 |
+ -DWITH_DBUS=$(usex dbus) |
156 |
+ -DWITH_IMAGE_MAGICK=$(usex imagemagick $(usex !graphicsmagick)) # requires ImageMagick 6, only IM must be enabled |
157 |
+ -DWITH_GRAPHICS_MAGICK=$(usex graphicsmagick $(usex imagemagick)) # both must be enabled to use GraphicsMagick |
158 |
+ -DWITH_JEMALLOC=$(usex jemalloc) |
159 |
+ -DENABLE_LCMS=$(usex lcms) |
160 |
+ -DWITH_OPENMP=$(usex openmp) |
161 |
+ -DBUILD_SHARED_LIBS=$(usex !static-libs) |
162 |
+ -DWITH_SVG2=$(usex svg2) |
163 |
+ -DWITH_LIBVISIO=$(usex visio) |
164 |
+ -DWITH_LIBWPG=$(usex wpg) |
165 |
+ ) |
166 |
+ # We should also have, |
167 |
+ # |
168 |
+ # -DWITH_NLS=$(usex nls) |
169 |
+ # |
170 |
+ # in this list, but it's broken upstream at the moment: |
171 |
+ # |
172 |
+ # * https://bugs.gentoo.org/699658 |
173 |
+ # * https://gitlab.com/inkscape/inkscape/issues/168 |
174 |
+ |
175 |
+ cmake_src_configure |
176 |
+} |
177 |
+ |
178 |
+src_install() { |
179 |
+ cmake_src_install |
180 |
+ |
181 |
+ find "${ED}" -type f -name "*.la" -delete || die |
182 |
+ |
183 |
+ find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.bz2' -exec bzip2 -d {} \; || die |
184 |
+ |
185 |
+ find "${ED}"/usr/share/man -type f -maxdepth 3 -name '*.gz' -exec gzip -d {} \; || die |
186 |
+ |
187 |
+ # No extensions are present in beta1 |
188 |
+ local extdir="${ED}"/usr/share/${PN}/extensions |
189 |
+ |
190 |
+ if [[ -e "${extdir}" ]] && [[ -n $(find "${extdir}" -mindepth 1) ]]; then |
191 |
+ python_optimize "${ED}"/usr/share/${PN}/extensions |
192 |
+ fi |
193 |
+} |