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