1 |
commit: cef53b6b037f5382b30dd2a8fb7a2f89d4a158d5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 6 20:19:08 2015 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 6 21:55:14 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cef53b6b |
7 |
|
8 |
media-gfx/inkscape: Enable c++11 due to new libsigc++, #566318 |
9 |
|
10 |
media-gfx/inkscape/inkscape-0.91-r1.ebuild | 166 +++++++++++++++++++++++++++++ |
11 |
1 file changed, 166 insertions(+) |
12 |
|
13 |
diff --git a/media-gfx/inkscape/inkscape-0.91-r1.ebuild b/media-gfx/inkscape/inkscape-0.91-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..b4bc140 |
16 |
--- /dev/null |
17 |
+++ b/media-gfx/inkscape/inkscape-0.91-r1.ebuild |
18 |
@@ -0,0 +1,166 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+PYTHON_COMPAT=( python2_7 ) |
25 |
+PYTHON_REQ_USE="xml" |
26 |
+ |
27 |
+inherit autotools eutils flag-o-matic gnome2-utils fdo-mime toolchain-funcs python-single-r1 |
28 |
+ |
29 |
+MY_P=${P/_/} |
30 |
+ |
31 |
+DESCRIPTION="A SVG based generic vector-drawing program" |
32 |
+HOMEPAGE="http://www.inkscape.org/" |
33 |
+SRC_URI="https://inkscape.global.ssl.fastly.net/media/resources/file/${P}.tar.bz2" |
34 |
+ |
35 |
+LICENSE="GPL-2 LGPL-2.1" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris" |
38 |
+IUSE="cdr dia dbus exif gnome imagemagick openmp postscript inkjar jpeg lcms nls spell static-libs visio wpg" |
39 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
40 |
+ |
41 |
+WPG_DEPS=" |
42 |
+ || ( |
43 |
+ ( app-text/libwpg:0.3 dev-libs/librevenge ) |
44 |
+ ( app-text/libwpd:0.9 app-text/libwpg:0.2 ) |
45 |
+ ) |
46 |
+" |
47 |
+COMMON_DEPEND=" |
48 |
+ ${PYTHON_DEPS} |
49 |
+ >=app-text/poppler-0.26.0:=[cairo] |
50 |
+ >=dev-cpp/glibmm-2.28 |
51 |
+ >=dev-cpp/gtkmm-2.18.0:2.4 |
52 |
+ >=dev-cpp/cairomm-1.9.8 |
53 |
+ >=dev-cpp/glibmm-2.32 |
54 |
+ >=dev-libs/boehm-gc-6.4 |
55 |
+ >=dev-libs/glib-2.28 |
56 |
+ >=dev-libs/libsigc++-2.0.12 |
57 |
+ >=dev-libs/libxml2-2.6.20 |
58 |
+ >=dev-libs/libxslt-1.0.15 |
59 |
+ dev-libs/popt |
60 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
61 |
+ media-libs/fontconfig |
62 |
+ media-libs/freetype:2 |
63 |
+ media-libs/libpng:0 |
64 |
+ sci-libs/gsl |
65 |
+ x11-libs/libX11 |
66 |
+ >=x11-libs/gtk+-2.10.7:2 |
67 |
+ >=x11-libs/pango-1.24 |
68 |
+ cdr? ( |
69 |
+ media-libs/libcdr |
70 |
+ ${WPG_DEPS} |
71 |
+ ) |
72 |
+ dbus? ( dev-libs/dbus-glib ) |
73 |
+ exif? ( media-libs/libexif ) |
74 |
+ gnome? ( >=gnome-base/gnome-vfs-2.0 ) |
75 |
+ imagemagick? ( media-gfx/imagemagick:=[cxx] ) |
76 |
+ jpeg? ( virtual/jpeg:0 ) |
77 |
+ lcms? ( media-libs/lcms:2 ) |
78 |
+ spell? ( |
79 |
+ app-text/aspell |
80 |
+ app-text/gtkspell:2 |
81 |
+ ) |
82 |
+ visio? ( |
83 |
+ media-libs/libvisio |
84 |
+ ${WPG_DEPS} |
85 |
+ ) |
86 |
+ wpg? ( ${WPG_DEPS} ) |
87 |
+" |
88 |
+ |
89 |
+# These only use executables provided by these packages |
90 |
+# See share/extensions for more details. inkscape can tell you to |
91 |
+# install these so we could of course just not depend on those and rely |
92 |
+# on that. |
93 |
+RDEPEND="${COMMON_DEPEND} |
94 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
95 |
+ media-gfx/uniconvertor |
96 |
+ dia? ( app-office/dia ) |
97 |
+ postscript? ( app-text/ghostscript-gpl ) |
98 |
+" |
99 |
+ |
100 |
+DEPEND="${COMMON_DEPEND} |
101 |
+ >=dev-libs/boost-1.36 |
102 |
+ >=dev-util/intltool-0.40 |
103 |
+ >=sys-devel/gettext-0.17 |
104 |
+ virtual/pkgconfig |
105 |
+" |
106 |
+ |
107 |
+S=${WORKDIR}/${MY_P} |
108 |
+ |
109 |
+RESTRICT="test" |
110 |
+ |
111 |
+pkg_pretend() { |
112 |
+ if use openmp; then |
113 |
+ tc-has-openmp || die "Please switch to an openmp compatible compiler" |
114 |
+ fi |
115 |
+} |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ epatch \ |
119 |
+ "${FILESDIR}"/${PN}-0.91_pre3-automagic.patch \ |
120 |
+ "${FILESDIR}"/${PN}-0.91_pre3-cppflags.patch \ |
121 |
+ "${FILESDIR}"/${PN}-0.91_pre3-desktop.patch \ |
122 |
+ "${FILESDIR}"/${PN}-0.91_pre3-exif.patch \ |
123 |
+ "${FILESDIR}"/${PN}-0.91_pre3-sk-man.patch \ |
124 |
+ "${FILESDIR}"/${PN}-0.48.4-epython.patch |
125 |
+ |
126 |
+ sed -i "s#@EPYTHON@#${EPYTHON}#" src/extension/implementation/script.cpp || die |
127 |
+ |
128 |
+ eautoreconf |
129 |
+ |
130 |
+ # bug 421111 |
131 |
+ python_fix_shebang share/extensions |
132 |
+} |
133 |
+ |
134 |
+src_configure() { |
135 |
+ # aliasing unsafe wrt #310393 |
136 |
+ append-flags -fno-strict-aliasing |
137 |
+ # enable c++11 as needed for sigc++-2.6, #566318 |
138 |
+ # remove it when upstream solves the issue |
139 |
+ # https://bugs.launchpad.net/inkscape/+bug/1488079 |
140 |
+ append-cxxflags -std=c++11 |
141 |
+ |
142 |
+ econf \ |
143 |
+ $(use_enable static-libs static) \ |
144 |
+ $(use_enable nls) \ |
145 |
+ $(use_enable openmp) \ |
146 |
+ $(use_enable exif) \ |
147 |
+ $(use_enable jpeg) \ |
148 |
+ $(use_enable lcms) \ |
149 |
+ --enable-poppler-cairo \ |
150 |
+ $(use_enable wpg) \ |
151 |
+ $(use_enable visio) \ |
152 |
+ $(use_enable cdr) \ |
153 |
+ $(use_enable dbus dbusapi) \ |
154 |
+ $(use_enable imagemagick magick) \ |
155 |
+ $(use_with gnome gnome-vfs) \ |
156 |
+ $(use_with inkjar) \ |
157 |
+ $(use_with spell gtkspell) \ |
158 |
+ $(use_with spell aspell) |
159 |
+} |
160 |
+ |
161 |
+src_compile() { |
162 |
+ emake AR="$(tc-getAR)" |
163 |
+} |
164 |
+ |
165 |
+src_install() { |
166 |
+ default |
167 |
+ |
168 |
+ prune_libtool_files |
169 |
+ python_optimize "${ED}"/usr/share/${PN}/extensions |
170 |
+} |
171 |
+ |
172 |
+pkg_preinst() { |
173 |
+ gnome2_icon_savelist |
174 |
+} |
175 |
+ |
176 |
+pkg_postinst() { |
177 |
+ gnome2_icon_cache_update |
178 |
+ fdo-mime_desktop_database_update |
179 |
+} |
180 |
+ |
181 |
+pkg_postrm() { |
182 |
+ gnome2_icon_cache_update |
183 |
+ fdo-mime_desktop_database_update |
184 |
+} |