summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-05-23 17:18:32 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-05-23 17:18:32 +0000
commit132985e77aaf2d3818676623bac70e60d9de3497 (patch)
tree8c8ff769c25f657952f0246ad7cd2b0a629b2737 /media-libs/libwmf
parentStable on amd64 wrt bug #368369 (diff)
downloadhistorical-132985e77aaf2d3818676623bac70e60d9de3497.tar.gz
historical-132985e77aaf2d3818676623bac70e60d9de3497.tar.bz2
historical-132985e77aaf2d3818676623bac70e60d9de3497.zip
Fixup building with png-1.5. Move to EAPI=4. Drop static libs.
Package-Manager: portage-2.2.0_alpha35/cvs/Linux x86_64
Diffstat (limited to 'media-libs/libwmf')
-rw-r--r--media-libs/libwmf/ChangeLog6
-rw-r--r--media-libs/libwmf/Manifest13
-rw-r--r--media-libs/libwmf/files/libwmf-0.2.8.4-libpng-1.5.patch12
-rw-r--r--media-libs/libwmf/libwmf-0.2.8.4-r3.ebuild35
4 files changed, 38 insertions, 28 deletions
diff --git a/media-libs/libwmf/ChangeLog b/media-libs/libwmf/ChangeLog
index 20c9952dfba0..85492899473e 100644
--- a/media-libs/libwmf/ChangeLog
+++ b/media-libs/libwmf/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/libwmf
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v 1.69 2011/03/28 16:51:26 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v 1.70 2011/05/23 17:18:32 scarabeus Exp $
+
+ 23 May 2011; Tomáš Chvátal <scarabeus@gentoo.org>
+ libwmf-0.2.8.4-r3.ebuild, +files/libwmf-0.2.8.4-libpng-1.5.patch:
+ Fixup building with png-1.5. Move to EAPI=4. Drop static libs.
28 Mar 2011; Christoph Mende <angelos@gentoo.org> libwmf-0.2.8.4-r3.ebuild:
Fixed gtk+ dep
diff --git a/media-libs/libwmf/Manifest b/media-libs/libwmf/Manifest
index 678da4e298bc..6722b19921cf 100644
--- a/media-libs/libwmf/Manifest
+++ b/media-libs/libwmf/Manifest
@@ -1,17 +1,18 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA1
AUX libwmf-0.2.8.4-build.patch 1340 RMD160 d0ee933b7bd3d3b299859c8c36e542298049343b SHA1 81e1f460c426c3db37606ec3cc8da66b52c11fa3 SHA256 e12d0cd079b70fc83f87f09d262eee901707f27fe5f509e65ff108aa8cdccadb
AUX libwmf-0.2.8.4-intoverflow.patch 971 RMD160 4b5c414021a2b663032aa90e9f40f05e1389b503 SHA1 6f130ea9f639ccf88fef0fda74cf9fa3956f81b5 SHA256 b19f80f742c22138beb6d1943f6cbedc0db2a8c72419bf8bf9216e1f806d4690
+AUX libwmf-0.2.8.4-libpng-1.5.patch 478 RMD160 402a268f8b94218b19c131846a4d571dcd22b3fa SHA1 42aa4c2a82e4e14044c875a7f439baea732a355a SHA256 ffad4b3657725028bf3250f3555275373b800eacd6b6be5512ef3e5f76563181
AUX libwmf-0.2.8.4-pngfix.patch 582 RMD160 1a723c2e0d1dd16b6788f0ead2277e8996ab8ea1 SHA1 f392fd1a1053b84336bfb72e27aebbb78826239a SHA256 39a47d2d12720cc98ee4669e44c012e855df5de0dcec0636f1fb12918c2d8006
DIST libwmf-0.2.8.4.tar.gz 2169375 RMD160 98cd631adb5bb332d9224d04bc8a265c105435f2 SHA1 822ab3bd0f5e8f39ad732f2774a8e9f18fc91e89 SHA256 5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
-EBUILD libwmf-0.2.8.4-r3.ebuild 3035 RMD160 5e32c9503ef4fe0687d9e75f5722582ac03f0af1 SHA1 b1c068e81236b0902fd2dd3bf08ad3413332a4de SHA256 38480a3df8983347b320490aad7011e211a3aaa6b70dbf4f92cd97ebc13645b7
-MISC ChangeLog 9860 RMD160 1e076725c3bf9708b1287a83a751ace4a64a44b4 SHA1 daf25fcdfd025eb25d49563d1462f738f23f571f SHA256 31b0d0729a654e8fa02fe8cda093ddd15f24e2e9ce05a0249424a15712bd6dcc
+EBUILD libwmf-0.2.8.4-r3.ebuild 2726 RMD160 ad8ef0107be4257d80ea3ab439bd4a1d8d73f42a SHA1 086381cc2f53e3a221897b90d3d2fdacc6e47529 SHA256 e9701604e1774d87560ace7a9f30885f51c061ca878f368da49f35baad46b572
+MISC ChangeLog 10051 RMD160 ce06cbf6439728deef60b9f917899e2b2e71afe1 SHA1 36202f178eb89061eba007ff9cf102d1d3a8abc3 SHA256 591331e41e5407c989fa292e66d04f7f4eb74757e7208b41b34ac5091658dbad
MISC metadata.xml 231 RMD160 c13056229989c3d4f448a7c7abcff3f4ee7ce13c SHA1 2d63dfb700b223f8f37c078692a81b2237896bce SHA256 4595c2615fd7c9095517949b1a920d4457f92801eb9d46307b18aafe58ec2a8a
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iF4EAREIAAYFAk2Qrl8ACgkQmWq1bYTyC0NArQD9HZHDl4i9gB/E/pKs4f7Dk6ct
-2L9Cn6KKJO/nXc3bw6IA/1AYYdfeBgbcKtblbqrFOzdiexM7+jNUWyXadRYgMrpx
-=slt3
+iEYEARECAAYFAk3altQACgkQHB6c3gNBRYfgVwCfUGo5y9wtL4Vpt9n1cPZOyGDd
+Ty8AoJwlUGyHaRAunGaecBENYdz7N0qV
+=rJxI
-----END PGP SIGNATURE-----
diff --git a/media-libs/libwmf/files/libwmf-0.2.8.4-libpng-1.5.patch b/media-libs/libwmf/files/libwmf-0.2.8.4-libpng-1.5.patch
new file mode 100644
index 000000000000..3528c74ebd8d
--- /dev/null
+++ b/media-libs/libwmf/files/libwmf-0.2.8.4-libpng-1.5.patch
@@ -0,0 +1,12 @@
+diff -urN libwmf-0.2.8.4.old/src/ipa/ipa/bmp.h libwmf-0.2.8.4/src/ipa/ipa/bmp.h
+--- libwmf-0.2.8.4.old/src/ipa/ipa/bmp.h 2011-05-23 19:14:23.000000000 +0200
++++ libwmf-0.2.8.4/src/ipa/ipa/bmp.h 2011-05-23 19:15:11.000000000 +0200
+@@ -66,7 +66,7 @@
+ return;
+ }
+
+- if (setjmp (png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ { WMF_DEBUG (API,"Failed to write bitmap as PNG! (setjmp failed)");
+ png_destroy_write_struct (&png_ptr,&info_ptr);
+ wmf_free (API,buffer);
diff --git a/media-libs/libwmf/libwmf-0.2.8.4-r3.ebuild b/media-libs/libwmf/libwmf-0.2.8.4-r3.ebuild
index 4a29f1bfed6b..3bf82488e09f 100644
--- a/media-libs/libwmf/libwmf-0.2.8.4-r3.ebuild
+++ b/media-libs/libwmf/libwmf-0.2.8.4-r3.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/libwmf-0.2.8.4-r3.ebuild,v 1.12 2011/03/28 16:51:26 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/libwmf-0.2.8.4-r3.ebuild,v 1.13 2011/05/23 17:18:32 scarabeus Exp $
-EAPI="3"
+EAPI=4
inherit eutils autotools
@@ -20,7 +20,7 @@ KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd
IUSE="X expat xml debug doc gtk"
RDEPEND="app-text/ghostscript-gpl
- xml? ( !expat? ( dev-libs/libxml2 ) )
+ xml? ( dev-libs/libxml2 )
expat? ( dev-libs/expat )
>=media-libs/freetype-2.0.1
sys-libs/zlib
@@ -40,40 +40,33 @@ DEPEND="${RDEPEND}
)"
# plotutils are not really supported yet, so looks like that's it
+REQUIRED_USE="xml? ( !expat ) expat? ( !xml )"
+
src_prepare() {
if ! use doc ; then
- sed -e 's:doc::' -i Makefile.am
- fi
- if ! use gtk ; then
- sed -e 's:@LIBWMF_GDK_PIXBUF_TRUE@:#:' -i src/Makefile.in
+ sed -e 's:doc::' -i Makefile.am || die
fi
- epatch "${FILESDIR}"/${P}-intoverflow.patch \
+ epatch \
+ "${FILESDIR}"/${P}-intoverflow.patch \
"${FILESDIR}"/${P}-build.patch \
- "${FILESDIR}"/${P}-pngfix.patch
+ "${FILESDIR}"/${P}-pngfix.patch \
+ "${FILESDIR}"/${P}-libpng-1.5.patch
eautoreconf
}
src_configure() {
- if use expat && use xml ; then
- elog "You can specify only one USE flag from expat and xml, to use expat"
- elog "or libxml2, respectively."
- elog
- elog "You have both flags enabled, we will default to expat (like autocheck does)."
- myconf="${myconf} --with-expat --without-libxml2"
- else
- myconf="${myconf} $(use_with expat) $(use_with xml libxml2)"
- fi
-
# NOTE: The gd that is included is gd-2.0.0. Even with --with-sys-gd, that gd is built
# and included in libwmf. Since nothing in-tree seems to use media-libs/libwmf[gd],
# we're explicitly disabling gd use w.r.t. bug 268161
econf \
+ --disable-static \
$(use_enable debug) \
$(use_with X x) \
+ $(use_with expat) \
+ $(use_with xml libxml2) \
--disable-gd \
--with-sys-gd \
- ${myconf} \
--with-gsfontdir="${EPREFIX}"/usr/share/ghostscript/fonts \
--with-fontdir="${EPREFIX}"/usr/share/libwmf/fonts/ \
--with-docdir="${EPREFIX}"/usr/share/doc/${PF}
@@ -81,7 +74,7 @@ src_configure() {
src_install() {
# bug #298596
- emake -j1 install DESTDIR="${D}" || die
+ emake -j1 install DESTDIR="${D}"
dodoc README AUTHORS CREDITS ChangeLog NEWS TODO
find "${ED}" -name '*.la' -exec rm -f '{}' +