1 |
commit: 628f97b8ed238770a787c3d0824cf9efb33dd8e1 |
2 |
Author: Jonas Stein <jstein <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 31 01:10:02 2020 +0000 |
4 |
Commit: Jonas Stein <jstein <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 31 01:11:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=628f97b8 |
7 |
|
8 |
media-gfx/inkscape: make uniconvertor optional |
9 |
|
10 |
media-gfx/uniconvertor supports only Python 2. |
11 |
The dependency on uniconvertor is now optional to support the transition |
12 |
to Python 3. |
13 |
Bug: https://bugs.gentoo.org/448670 |
14 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
15 |
Signed-off-by: Jonas Stein <jstein <AT> gentoo.org> |
16 |
|
17 |
media-gfx/inkscape/inkscape-0.92.4-r3.ebuild | 165 +++++++++++++++++++++++++++ |
18 |
media-gfx/inkscape/metadata.xml | 11 +- |
19 |
2 files changed, 171 insertions(+), 5 deletions(-) |
20 |
|
21 |
diff --git a/media-gfx/inkscape/inkscape-0.92.4-r3.ebuild b/media-gfx/inkscape/inkscape-0.92.4-r3.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..912e7bba247 |
24 |
--- /dev/null |
25 |
+++ b/media-gfx/inkscape/inkscape-0.92.4-r3.ebuild |
26 |
@@ -0,0 +1,165 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=6 |
31 |
+ |
32 |
+PYTHON_COMPAT=( python2_7 ) |
33 |
+PYTHON_REQ_USE="xml" |
34 |
+inherit autotools flag-o-matic gnome2-utils xdg toolchain-funcs python-single-r1 |
35 |
+ |
36 |
+MY_P="${P/_/}" |
37 |
+ |
38 |
+DESCRIPTION="SVG based generic vector-drawing program" |
39 |
+HOMEPAGE="https://inkscape.org/" |
40 |
+SRC_URI="https://inkscape.global.ssl.fastly.net/media/resources/file/${P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="GPL-2 LGPL-2.1" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
45 |
+IUSE="cdr dia dbus exif gnome imagemagick openmp postscript inkjar jpeg latex" |
46 |
+IUSE+=" lcms nls spell static-libs visio wpg uniconvertor" |
47 |
+ |
48 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
49 |
+ |
50 |
+COMMON_DEPEND="${PYTHON_DEPS} |
51 |
+ >=app-text/poppler-0.26.0:=[cairo] |
52 |
+ >=dev-cpp/glibmm-2.54.1 |
53 |
+ >=dev-cpp/gtkmm-2.18.0:2.4 |
54 |
+ >=dev-cpp/cairomm-1.9.8 |
55 |
+ >=dev-libs/boehm-gc-7.1:= |
56 |
+ >=dev-libs/glib-2.28 |
57 |
+ >=dev-libs/libsigc++-2.0.12 |
58 |
+ >=dev-libs/libxml2-2.6.20 |
59 |
+ >=dev-libs/libxslt-1.0.15 |
60 |
+ dev-libs/popt |
61 |
+ media-gfx/potrace |
62 |
+ media-libs/fontconfig |
63 |
+ media-libs/freetype:2 |
64 |
+ media-libs/libpng:0= |
65 |
+ sci-libs/gsl:= |
66 |
+ x11-libs/libX11 |
67 |
+ >=x11-libs/gtk+-2.10.7:2 |
68 |
+ >=x11-libs/pango-1.24 |
69 |
+ cdr? ( |
70 |
+ app-text/libwpg:0.3 |
71 |
+ dev-libs/librevenge |
72 |
+ media-libs/libcdr |
73 |
+ ) |
74 |
+ dbus? ( dev-libs/dbus-glib ) |
75 |
+ exif? ( media-libs/libexif ) |
76 |
+ gnome? ( >=gnome-base/gnome-vfs-2.0 ) |
77 |
+ imagemagick? ( <media-gfx/imagemagick-7:=[cxx] ) |
78 |
+ jpeg? ( virtual/jpeg:0 ) |
79 |
+ lcms? ( media-libs/lcms:2 ) |
80 |
+ spell? ( |
81 |
+ app-text/aspell |
82 |
+ app-text/gtkspell:2 |
83 |
+ ) |
84 |
+ visio? ( |
85 |
+ app-text/libwpg:0.3 |
86 |
+ dev-libs/librevenge |
87 |
+ media-libs/libvisio |
88 |
+ ) |
89 |
+ wpg? ( |
90 |
+ app-text/libwpg:0.3 |
91 |
+ dev-libs/librevenge |
92 |
+ ) |
93 |
+" |
94 |
+# These only use executables provided by these packages |
95 |
+# See share/extensions for more details. inkscape can tell you to |
96 |
+# install these so we could of course just not depend on those and rely |
97 |
+# on that. |
98 |
+RDEPEND="${COMMON_DEPEND} |
99 |
+ $(python_gen_cond_dep ' |
100 |
+ || ( |
101 |
+ dev-python/numpy-python2[${PYTHON_MULTI_USEDEP}] |
102 |
+ dev-python/numpy[${PYTHON_MULTI_USEDEP}] |
103 |
+ ) |
104 |
+ ') |
105 |
+ uniconvertor? ( media-gfx/uniconvertor ) |
106 |
+ dia? ( app-office/dia ) |
107 |
+ latex? ( |
108 |
+ media-gfx/pstoedit[plotutils] |
109 |
+ app-text/dvipsk |
110 |
+ app-text/texlive-core |
111 |
+ ) |
112 |
+ postscript? ( app-text/ghostscript-gpl ) |
113 |
+" |
114 |
+DEPEND="${COMMON_DEPEND} |
115 |
+ >=dev-libs/boost-1.36 |
116 |
+ dev-util/glib-utils |
117 |
+ >=dev-util/intltool-0.40 |
118 |
+ >=sys-devel/gettext-0.17 |
119 |
+ virtual/pkgconfig |
120 |
+" |
121 |
+ |
122 |
+PATCHES=( |
123 |
+ "${FILESDIR}/${PN}-0.92.1-automagic.patch" |
124 |
+ "${FILESDIR}/${PN}-0.91_pre3-cppflags.patch" |
125 |
+ "${FILESDIR}/${PN}-0.92.1-desktop.patch" |
126 |
+ "${FILESDIR}/${PN}-0.91_pre3-exif.patch" |
127 |
+ "${FILESDIR}/${PN}-0.91_pre3-sk-man.patch" |
128 |
+ "${FILESDIR}/${PN}-0.48.4-epython.patch" |
129 |
+ "${FILESDIR}/${PN}-0.92.4-poppler-0.76.0.patch" #684246 |
130 |
+ "${FILESDIR}/${PN}-0.92.4-poppler-0.82.0.patch" |
131 |
+ "${FILESDIR}/${PN}-0.92.4-poppler-0.83.0.patch" |
132 |
+) |
133 |
+ |
134 |
+S="${WORKDIR}/${MY_P}" |
135 |
+ |
136 |
+RESTRICT="test" |
137 |
+ |
138 |
+pkg_pretend() { |
139 |
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
140 |
+ tc-has-openmp || die "Please switch to an openmp compatible compiler" |
141 |
+ fi |
142 |
+} |
143 |
+ |
144 |
+src_prepare() { |
145 |
+ default |
146 |
+ |
147 |
+ sed -i "s#@EPYTHON@#${EPYTHON}#" \ |
148 |
+ src/extension/implementation/script.cpp || die |
149 |
+ |
150 |
+ eautoreconf |
151 |
+ |
152 |
+ # bug 421111 |
153 |
+ python_fix_shebang share/extensions |
154 |
+} |
155 |
+ |
156 |
+src_configure() { |
157 |
+ # aliasing unsafe wrt #310393 |
158 |
+ append-flags -fno-strict-aliasing |
159 |
+ |
160 |
+ local myeconfargs=( |
161 |
+ $(use_enable static-libs static) |
162 |
+ $(use_enable nls) |
163 |
+ $(use_enable openmp) |
164 |
+ $(use_enable exif) |
165 |
+ $(use_enable jpeg) |
166 |
+ $(use_enable lcms) |
167 |
+ --enable-poppler-cairo |
168 |
+ $(use_enable wpg) |
169 |
+ $(use_enable visio) |
170 |
+ $(use_enable cdr) |
171 |
+ $(use_enable dbus dbusapi) |
172 |
+ $(use_enable imagemagick magick) |
173 |
+ $(use_with gnome gnome-vfs) |
174 |
+ $(use_with inkjar) |
175 |
+ $(use_with spell gtkspell) |
176 |
+ $(use_with spell aspell) |
177 |
+ ) |
178 |
+ econf "${myeconfargs[@]}" |
179 |
+} |
180 |
+ |
181 |
+src_compile() { |
182 |
+ emake -C src helper/sp-marshal.h #686304 |
183 |
+ emake AR="$(tc-getAR)" |
184 |
+} |
185 |
+ |
186 |
+src_install() { |
187 |
+ default |
188 |
+ |
189 |
+ find "${ED}" -name "*.la" -delete || die |
190 |
+ python_optimize "${ED%/}"/usr/share/${PN}/extensions |
191 |
+} |
192 |
|
193 |
diff --git a/media-gfx/inkscape/metadata.xml b/media-gfx/inkscape/metadata.xml |
194 |
index 49c45680f5f..8bfffeae53d 100644 |
195 |
--- a/media-gfx/inkscape/metadata.xml |
196 |
+++ b/media-gfx/inkscape/metadata.xml |
197 |
@@ -6,13 +6,14 @@ |
198 |
<name>Gentoo Graphics Project</name> |
199 |
</maintainer> |
200 |
<use> |
201 |
- <flag name="cdr">Enable support for CorelDRAW Diagrams via <pkg>media-libs/libcdr</pkg></flag> |
202 |
- <flag name="dia">pull in <pkg>app-office/dia</pkg> for dia import extension</flag> |
203 |
+ <flag name="cdr">Enable support for CorelDRAW files via <pkg>media-libs/libcdr</pkg></flag> |
204 |
+ <flag name="dia">Enable DIA flow chart import via <pkg>app-office/dia</pkg></flag> |
205 |
<flag name="inkjar">Enable support for OpenOffice.org SVG jar files</flag> |
206 |
- <flag name="latex">pull in dependencies for LaTeX formulas</flag> |
207 |
+ <flag name="latex">Enable rendering of LaTeX formulas</flag> |
208 |
<flag name="svg2">Enable support for new SVG2 features</flag> |
209 |
- <flag name="visio">Enable support for Microsoft Visio Diagrams via <pkg>media-libs/libvisio</pkg></flag> |
210 |
- <flag name="wpg">Enable support for WordPerfect Graphics via <pkg>app-text/libwpg</pkg></flag> |
211 |
+ <flag name="visio">Enable support for Microsoft Visio diagrams via <pkg>media-libs/libvisio</pkg></flag> |
212 |
+ <flag name="wpg">Enable support for WordPerfect graphics via <pkg>app-text/libwpg</pkg></flag> |
213 |
+ <flag name="uniconvertor">Enable conversion of vector graphic files via <pkg>media-gfx/uniconvertor</pkg> (needs Python 2)</flag> |
214 |
</use> |
215 |
<upstream> |
216 |
<remote-id type="gitlab">inkscape/inkscape</remote-id> |