1 |
commit: 3473013a4354c9485032d7d12665f533d2d867cd |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 31 05:03:16 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 31 05:11:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3473013a |
7 |
|
8 |
media-gfx/inkscape: version bump to 0.92.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/651500 |
11 |
|
12 |
media-gfx/inkscape/Manifest | 1 + |
13 |
media-gfx/inkscape/inkscape-0.92.3.ebuild | 175 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 176 insertions(+) |
15 |
|
16 |
diff --git a/media-gfx/inkscape/Manifest b/media-gfx/inkscape/Manifest |
17 |
index e46b9f48433..f44a0ae2f97 100644 |
18 |
--- a/media-gfx/inkscape/Manifest |
19 |
+++ b/media-gfx/inkscape/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST inkscape-0.91.tar.bz2 25858909 BLAKE2B 9ca69a10a043efa64d7327ca6ba28d04a650 |
21 |
DIST inkscape-0.92.1-poppler.patch 44142 BLAKE2B 4431a4185cfeb6c41f08da656db4335017fc08a62e154f75ef4ef1a2ae92dd510f22a4f9cd1cf8bb1fae09770f47a398b7b789c8bad4e47bc4941b9e8f79c1f0 SHA512 4a0504c236c816f413b3bf055754513bb53b52eb5f0323faa28ab445ce3fb83b6f41de5bc6e3865909e50fc9be937e3f99282e8414f4cdc954e04b974d7f15ab |
22 |
DIST inkscape-0.92.1.tar.bz2 31222684 BLAKE2B 26364e3ccf447d22d15291b132b44b1abd5ca4efc1df8e5eb4ca494ac9340ed8aa5e2d57d2e14c1859fc202532cf722b4c9c89defa92c630e462b07ce29ec774 SHA512 f8f3bfb812a214216c3ffac7064a4619f847cf9810417c782481dba12e6c6a44123c8b8a9289fbf5287f2e6b6df39a641d94a000d842faee5ff808eec86187a0 |
23 |
DIST inkscape-0.92.2.tar.bz2 31224100 BLAKE2B c0a7b01220d1b0b0863f71f3e1c8ba7bdb58bd86e79c2d3f214831a344c992a1084d64813de00e6f88d77b1b1f1b8562c7a0ee98824149cb867eba586314d27d SHA512 e790cafb7cc2be2eb75f04ac4c18ae8558ae997f4261c38dac9c2a3383c7a12a0f4a090956770d1341b212fc9698d31d212f2c1609421907255f8af650569b30 |
24 |
+DIST inkscape-0.92.3.tar.bz2 31606442 BLAKE2B bc90dc160ca059395a2951b7b2daeb8730753c551f78e6af88b51b41322a438256499f754fb6b07946d77b80e1ddfe5514944f9b5cbb19d2bfdecb8625328db0 SHA512 af3c0f672a108e583f3c92cde1451b3f1f5319c1669891005c230e73b3485aa8951af6d7b21c7ccd9e4acbca8eaa5a3bb61ae1d828e81885bc7b61a8ae933687 |
25 |
|
26 |
diff --git a/media-gfx/inkscape/inkscape-0.92.3.ebuild b/media-gfx/inkscape/inkscape-0.92.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..69b0c27405f |
29 |
--- /dev/null |
30 |
+++ b/media-gfx/inkscape/inkscape-0.92.3.ebuild |
31 |
@@ -0,0 +1,175 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+PYTHON_COMPAT=( python2_7 ) |
37 |
+PYTHON_REQ_USE="xml" |
38 |
+ |
39 |
+inherit autotools flag-o-matic gnome2-utils xdg toolchain-funcs python-single-r1 |
40 |
+ |
41 |
+MY_P=${P/_/} |
42 |
+ |
43 |
+DESCRIPTION="A SVG based generic vector-drawing program" |
44 |
+HOMEPAGE="https://inkscape.org/" |
45 |
+SRC_URI="https://inkscape.global.ssl.fastly.net/media/resources/file/${P}.tar.bz2 |
46 |
+https://dev.gentoo.org/~jstein/dist/inkscape-0.92.1-poppler.patch" |
47 |
+ |
48 |
+LICENSE="GPL-2 LGPL-2.1" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" |
51 |
+IUSE="cdr dia dbus exif gnome imagemagick openmp postscript inkjar jpeg latex" |
52 |
+IUSE+=" lcms nls spell static-libs visio wpg" |
53 |
+ |
54 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
55 |
+ |
56 |
+COMMON_DEPEND=" |
57 |
+ ${PYTHON_DEPS} |
58 |
+ >=app-text/poppler-0.26.0:=[cairo] |
59 |
+ >=dev-cpp/glibmm-2.48 |
60 |
+ >=dev-cpp/gtkmm-2.18.0:2.4 |
61 |
+ >=dev-cpp/cairomm-1.9.8 |
62 |
+ >=dev-libs/boehm-gc-7.1:= |
63 |
+ >=dev-libs/glib-2.28 |
64 |
+ >=dev-libs/libsigc++-2.0.12 |
65 |
+ >=dev-libs/libxml2-2.6.20 |
66 |
+ >=dev-libs/libxslt-1.0.15 |
67 |
+ dev-libs/popt |
68 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
69 |
+ media-gfx/potrace |
70 |
+ media-gfx/scour[${PYTHON_USEDEP}] |
71 |
+ media-libs/fontconfig |
72 |
+ media-libs/freetype:2 |
73 |
+ media-libs/libpng:0 |
74 |
+ sci-libs/gsl:= |
75 |
+ x11-libs/libX11 |
76 |
+ >=x11-libs/gtk+-2.10.7:2 |
77 |
+ >=x11-libs/pango-1.24 |
78 |
+ cdr? ( |
79 |
+ media-libs/libcdr |
80 |
+ app-text/libwpg:0.3 |
81 |
+ dev-libs/librevenge |
82 |
+ ) |
83 |
+ dbus? ( dev-libs/dbus-glib ) |
84 |
+ exif? ( media-libs/libexif ) |
85 |
+ gnome? ( >=gnome-base/gnome-vfs-2.0 ) |
86 |
+ imagemagick? ( media-gfx/imagemagick:=[cxx] ) |
87 |
+ jpeg? ( virtual/jpeg:0 ) |
88 |
+ lcms? ( media-libs/lcms:2 ) |
89 |
+ spell? ( |
90 |
+ app-text/aspell |
91 |
+ app-text/gtkspell:2 |
92 |
+ ) |
93 |
+ visio? ( |
94 |
+ media-libs/libvisio |
95 |
+ app-text/libwpg:0.3 |
96 |
+ dev-libs/librevenge |
97 |
+ ) |
98 |
+ wpg? ( |
99 |
+ app-text/libwpg:0.3 |
100 |
+ dev-libs/librevenge |
101 |
+ ) |
102 |
+" |
103 |
+ |
104 |
+# These only use executables provided by these packages |
105 |
+# See share/extensions for more details. inkscape can tell you to |
106 |
+# install these so we could of course just not depend on those and rely |
107 |
+# on that. |
108 |
+RDEPEND="${COMMON_DEPEND} |
109 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
110 |
+ media-gfx/uniconvertor |
111 |
+ dia? ( app-office/dia ) |
112 |
+ latex? ( |
113 |
+ media-gfx/pstoedit[plotutils] |
114 |
+ app-text/dvipsk |
115 |
+ app-text/texlive-core |
116 |
+ ) |
117 |
+ postscript? ( app-text/ghostscript-gpl ) |
118 |
+" |
119 |
+ |
120 |
+DEPEND="${COMMON_DEPEND} |
121 |
+ >=dev-libs/boost-1.36 |
122 |
+ >=dev-util/intltool-0.40 |
123 |
+ >=sys-devel/gettext-0.17 |
124 |
+ virtual/pkgconfig |
125 |
+" |
126 |
+ |
127 |
+PATCHES=( |
128 |
+ "${FILESDIR}/${PN}-0.92.1-automagic.patch" |
129 |
+ "${FILESDIR}/${PN}-0.91_pre3-cppflags.patch" |
130 |
+ "${FILESDIR}/${PN}-0.92.1-desktop.patch" |
131 |
+ "${FILESDIR}/${PN}-0.91_pre3-exif.patch" |
132 |
+ "${FILESDIR}/${PN}-0.91_pre3-sk-man.patch" |
133 |
+ "${FILESDIR}/${PN}-0.48.4-epython.patch" |
134 |
+) |
135 |
+ |
136 |
+S=${WORKDIR}/${MY_P} |
137 |
+ |
138 |
+RESTRICT="test" |
139 |
+ |
140 |
+pkg_pretend() { |
141 |
+ if use openmp; then |
142 |
+ tc-has-openmp || die "Please switch to an openmp compatible compiler" |
143 |
+ fi |
144 |
+} |
145 |
+ |
146 |
+src_prepare() { |
147 |
+ default |
148 |
+ |
149 |
+ sed -i "s#@EPYTHON@#${EPYTHON}#" \ |
150 |
+ src/extension/implementation/script.cpp || die |
151 |
+ |
152 |
+ eautoreconf |
153 |
+ |
154 |
+ # bug 421111 |
155 |
+ python_fix_shebang share/extensions |
156 |
+} |
157 |
+ |
158 |
+src_configure() { |
159 |
+ # aliasing unsafe wrt #310393 |
160 |
+ append-flags -fno-strict-aliasing |
161 |
+ |
162 |
+ econf \ |
163 |
+ $(use_enable static-libs static) \ |
164 |
+ $(use_enable nls) \ |
165 |
+ $(use_enable openmp) \ |
166 |
+ $(use_enable exif) \ |
167 |
+ $(use_enable jpeg) \ |
168 |
+ $(use_enable lcms) \ |
169 |
+ --enable-poppler-cairo \ |
170 |
+ $(use_enable wpg) \ |
171 |
+ $(use_enable visio) \ |
172 |
+ $(use_enable cdr) \ |
173 |
+ $(use_enable dbus dbusapi) \ |
174 |
+ $(use_enable imagemagick magick) \ |
175 |
+ $(use_with gnome gnome-vfs) \ |
176 |
+ $(use_with inkjar) \ |
177 |
+ $(use_with spell gtkspell) \ |
178 |
+ $(use_with spell aspell) |
179 |
+} |
180 |
+ |
181 |
+src_compile() { |
182 |
+ emake AR="$(tc-getAR)" |
183 |
+} |
184 |
+ |
185 |
+src_install() { |
186 |
+ default |
187 |
+ |
188 |
+ prune_libtool_files |
189 |
+ python_optimize "${ED}"/usr/share/${PN}/extensions |
190 |
+} |
191 |
+ |
192 |
+pkg_preinst() { |
193 |
+ gnome2_icon_savelist |
194 |
+} |
195 |
+ |
196 |
+pkg_postinst() { |
197 |
+ gnome2_icon_cache_update |
198 |
+ xdg_mimeinfo_database_update |
199 |
+ xdg_desktop_database_update |
200 |
+} |
201 |
+ |
202 |
+pkg_postrm() { |
203 |
+ gnome2_icon_cache_update |
204 |
+ xdg_mimeinfo_database_update |
205 |
+ xdg_desktop_database_update |
206 |
+} |