summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-02-23 19:14:29 +0000
committerTim Harder <radhermit@gentoo.org>2011-02-23 19:14:29 +0000
commitcf1833070d4bc30520cd6041795c9c9d26ccb148 (patch)
tree4e0ca0e37ac02342e34f6214f7f6afc9a030a25d /media-gfx
parentMasked net-dns/bind-9.4* and net-dns/bind-tools-9.4* for removal in 30 days. ... (diff)
downloadgentoo-2-cf1833070d4bc30520cd6041795c9c9d26ccb148.tar.gz
gentoo-2-cf1833070d4bc30520cd6041795c9c9d26ccb148.tar.bz2
gentoo-2-cf1833070d4bc30520cd6041795c9c9d26ccb148.zip
Version bump (bug #354721). Use bz2 tarball, add RDEPEND on uniconvertor (bug #345393), use slot dependencies for freetype and lcms, fix compile with libpng-1.5 (bug #355845), and remove old post-install message.
(Portage version: 2.2.0_alpha24/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/inkscape/ChangeLog10
-rw-r--r--media-gfx/inkscape/files/inkscape-0.48.1-libpng15.patch40
-rw-r--r--media-gfx/inkscape/inkscape-0.48.1.ebuild93
3 files changed, 142 insertions, 1 deletions
diff --git a/media-gfx/inkscape/ChangeLog b/media-gfx/inkscape/ChangeLog
index dcc7ab1ad45c..f46c436bb9fd 100644
--- a/media-gfx/inkscape/ChangeLog
+++ b/media-gfx/inkscape/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-gfx/inkscape
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/inkscape/ChangeLog,v 1.153 2011/02/22 11:33:12 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/inkscape/ChangeLog,v 1.154 2011/02/23 19:14:28 radhermit Exp $
+
+*inkscape-0.48.1 (23 Feb 2011)
+
+ 23 Feb 2011; Tim Harder <radhermit@gentoo.org> +inkscape-0.48.1.ebuild,
+ +files/inkscape-0.48.1-libpng15.patch:
+ Version bump (bug #354721). Use bz2 tarball, add RDEPEND on uniconvertor (bug
+ #345393), use slot dependencies for freetype and lcms, fix compile with
+ libpng-1.5 (bug #355845), and remove old post-install message.
22 Feb 2011; Tim Harder <radhermit@gentoo.org> inkscape-0.47.ebuild,
inkscape-0.48.0.ebuild:
diff --git a/media-gfx/inkscape/files/inkscape-0.48.1-libpng15.patch b/media-gfx/inkscape/files/inkscape-0.48.1-libpng15.patch
new file mode 100644
index 000000000000..e24913ed627d
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.48.1-libpng15.patch
@@ -0,0 +1,40 @@
+--- inkscape-0.48.1/src/extension/internal/pdfinput/svg-builder.cpp
++++ inkscape-0.48.1-mod//src/extension/internal/pdfinput/svg-builder.cpp
+@@ -1443,7 +1443,7 @@
+ return NULL;
+ }
+ // Set error handler
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+ return NULL;
+ }
+--- inkscape-0.48.1/src/helper/png-write.cpp
++++ inkscape-0.48.1-mod//src/helper/png-write.cpp
+@@ -165,7 +165,7 @@
+ /* Set error handling. REQUIRED if you aren't supplying your own
+ * error hadnling functions in the png_create_write_struct() call.
+ */
+- if (setjmp(png_ptr->jmpbuf)) {
++ if (setjmp(png_jmpbuf(png_ptr))) {
+ /* If we get here, we had a problem reading the file */
+ fclose(fp);
+ png_destroy_write_struct(&png_ptr, &info_ptr);
+--- inkscape-0.48.1/src/sp-image.cpp
++++ inkscape-0.48.1-mod//src/sp-image.cpp
+@@ -386,9 +386,13 @@
+
+ #if defined(PNG_iCCP_SUPPORTED)
+ {
+- char* name = 0;
++ png_charp name = 0;
+ int compression_type = 0;
+- char* profile = 0;
++#if (PNG_LIBPNG_VER < 10500)
++ png_charp profile = 0;
++#else
++ png_bytep profile = 0;
++#endif
+ png_uint_32 proflen = 0;
+ if ( png_get_iCCP(pngPtr, infoPtr, &name, &compression_type, &profile, &proflen) ) {
+ // g_message("Found an iCCP chunk named [%s] with %d bytes and comp %d", name, proflen, compression_type);
diff --git a/media-gfx/inkscape/inkscape-0.48.1.ebuild b/media-gfx/inkscape/inkscape-0.48.1.ebuild
new file mode 100644
index 000000000000..cc75c315dc6d
--- /dev/null
+++ b/media-gfx/inkscape/inkscape-0.48.1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/inkscape/inkscape-0.48.1.ebuild,v 1.1 2011/02/23 19:14:29 radhermit Exp $
+
+EAPI=2
+inherit eutils flag-o-matic autotools gnome2
+
+MY_P="${P/_/}"
+S="${WORKDIR}/${MY_P}"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+
+DESCRIPTION="A SVG based generic vector-drawing program"
+HOMEPAGE="http://www.inkscape.org/"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dia gnome gs inkjar lcms nls spell wmf"
+
+RESTRICT="test"
+
+COMMON_DEPEND="
+ >=app-text/poppler-0.12.3-r3[cairo,xpdf-headers]
+ dev-cpp/glibmm
+ >=dev-cpp/gtkmm-2.18.0:2.4
+ >=dev-libs/boehm-gc-6.4
+ >=dev-libs/glib-2.6.5
+ >=dev-libs/libsigc++-2.0.12
+ >=dev-libs/libxml2-2.6.20
+ >=dev-libs/libxslt-1.0.15
+ dev-libs/popt
+ dev-python/lxml
+ media-gfx/imagemagick
+ media-libs/fontconfig
+ media-libs/freetype:2
+ >=media-libs/libpng-1.2
+ >=media-libs/libwpg-0.1
+ sci-libs/gsl
+ x11-libs/libXft
+ >=x11-libs/gtk+-2.10.7:2
+ >=x11-libs/pango-1.4.0
+ || ( dev-lang/python[xml] dev-python/pyxml )
+ gnome? ( >=gnome-base/gnome-vfs-2.0 )
+ lcms? ( media-libs/lcms:0 )
+ spell? (
+ app-text/aspell
+ app-text/gtkspell
+ )"
+
+# These only use executables provided by these packages
+# See share/extensions for more details. inkscape can tell you to
+# install these so we could of course just not depend on those and rely
+# on that.
+RDEPEND="
+ ${COMMON_DEPEND}
+ dev-python/numpy
+ media-gfx/uniconvertor
+ dia? ( app-office/dia )
+ gs? ( app-text/ghostscript-gpl )
+ wmf? ( media-libs/libwmf )"
+
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ sys-devel/gettext
+ dev-util/pkgconfig
+ x11-libs/libX11
+ >=dev-util/intltool-0.29"
+
+pkg_setup() {
+ G2CONF="${G2CONF} --without-perl"
+ G2CONF="${G2CONF} --enable-poppler-cairo"
+ G2CONF="${G2CONF} --with-xft"
+ G2CONF="${G2CONF} $(use_with gnome gnome-vfs)"
+ G2CONF="${G2CONF} $(use_with inkjar)"
+ G2CONF="${G2CONF} $(use_enable lcms)"
+ G2CONF="${G2CONF} $(use_enable nls)"
+ G2CONF="${G2CONF} $(use_with spell aspell)"
+ G2CONF="${G2CONF} $(use_with spell gtkspell)"
+ DOCS="AUTHORS ChangeLog NEWS README*"
+}
+
+src_prepare() {
+ gnome2_src_prepare
+ epatch "${FILESDIR}"/${PN}-0.48.0-spell.patch
+ epatch "${FILESDIR}"/${P}-libpng15.patch
+ eautoreconf
+}
+
+src_configure() {
+ # aliasing unsafe wrt #310393
+ append-flags -fno-strict-aliasing
+ gnome2_src_configure
+}