summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2008-06-29 04:06:58 +0000
committerJeremy Olexa <darkside@gentoo.org>2008-06-29 04:06:58 +0000
commit5b6a2b3b43979f23eb532250176d472f62c56cea (patch)
treec81e82f330443147e2563fe4f3d6e3aeb0e10fd7
parentp.mask <app-pda/synce-rra-0.9.1-r1 for removal in 30 days. bug #224911 (diff)
downloadhistorical-5b6a2b3b43979f23eb532250176d472f62c56cea.tar.gz
historical-5b6a2b3b43979f23eb532250176d472f62c56cea.tar.bz2
historical-5b6a2b3b43979f23eb532250176d472f62c56cea.zip
Add code to to update /etc/gtk-2.0/gdk-pixbuf.loaders, copied from librsvg ebuild. Bug #221919, thanks to Maciej Grela <thermal@o2.pl> for reporting
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.22-gentoo-r2 i686
-rw-r--r--media-libs/libwmf/ChangeLog8
-rw-r--r--media-libs/libwmf/Manifest3
-rw-r--r--media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild102
3 files changed, 111 insertions, 2 deletions
diff --git a/media-libs/libwmf/ChangeLog b/media-libs/libwmf/ChangeLog
index dce98bea4be1..742cc50b87cf 100644
--- a/media-libs/libwmf/ChangeLog
+++ b/media-libs/libwmf/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/libwmf
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v 1.55 2008/02/11 20:00:04 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v 1.56 2008/06/29 04:06:58 darkside Exp $
+
+*libwmf-0.2.8.4-r1 (29 Jun 2008)
+
+ 29 Jun 2008; Jeremy Olexa <darkside@gentoo.org> +libwmf-0.2.8.4-r1.ebuild:
+ Add code to to update /etc/gtk-2.0/gdk-pixbuf.loaders, copied from librsvg
+ ebuild. Bug #221919, thanks to Maciej Grela <thermal@o2.pl> for reporting
11 Feb 2008; Raúl Porcel <armin76@gentoo.org> libwmf-0.2.8.4.ebuild:
Remove jpeg USE-flag since it's not supposed to build without it, bug #146680
diff --git a/media-libs/libwmf/Manifest b/media-libs/libwmf/Manifest
index 23c74bac5e43..e6bffb5741e0 100644
--- a/media-libs/libwmf/Manifest
+++ b/media-libs/libwmf/Manifest
@@ -1,6 +1,7 @@
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
DIST libwmf-0.2.8.4.tar.gz 2169375 RMD160 98cd631adb5bb332d9224d04bc8a265c105435f2 SHA1 822ab3bd0f5e8f39ad732f2774a8e9f18fc91e89 SHA256 5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
+EBUILD libwmf-0.2.8.4-r1.ebuild 2655 RMD160 1eaa5060265660af7fe9dc9710782792ebd3453a SHA1 699cc27812a1912577cd30b052bcd80f01f7b306 SHA256 677529217a480248a3e1f4cbe5f5de00257c6c4c66dcd62c64734844e4f34a6a
EBUILD libwmf-0.2.8.4.ebuild 2235 RMD160 b8cac970ba9d5876717f92cc2de2f4e00b4d0743 SHA1 72a4837ce48c434ebcb386b03bd7fb53fe315eb9 SHA256 9661600fdd68278bd7e81f85ba68cbec0c8cae480ed33027966925c53a7ae964
-MISC ChangeLog 7662 RMD160 9a2268d372b7a7d38dbbfd6e98c859fe560491cc SHA1 dd2219dec05d94aebb098e4f498aedc890dd1780 SHA256 bc7b6a4941f731d318aa63833b759e811584f2272d1a0b00d3d0ae7703849ab5
+MISC ChangeLog 7928 RMD160 11566c40fb94fb610e763a31e9c80c34075699cb SHA1 724d4935b6f55cc58fc717c3917e84ed836b20eb SHA256 a47fca33f4fe0d4834bbc118038b3f3e3ea3bb83dd20e2b71ea2f94f18127e11
MISC metadata.xml 198 RMD160 ecb3dd5b9b5c15998184dfda3dd755184141cac2 SHA1 2f9abf78f7ff06b358d4462b4aecfce8774ac7a3 SHA256 0ada8d2cad084a20adb963bc7d24f6d332fc599e8ef2d25bf053561ad2b98c07
diff --git a/media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild b/media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild
new file mode 100644
index 000000000000..95d7fa6d9b82
--- /dev/null
+++ b/media-libs/libwmf/libwmf-0.2.8.4-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2008 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-r1.ebuild,v 1.1 2008/06/29 04:06:58 darkside Exp $
+
+inherit eutils autotools
+
+#The configure script finds the 5.50 ghostscript Fontmap file while run.
+#This will probably work, especially since the real one (6.50) in this case
+#is empty. However beware in case there is any trouble
+
+DESCRIPTION="library for converting WMF files"
+HOMEPAGE="http://wvware.sourceforge.net/"
+SRC_URI="mirror://sourceforge/wvware/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="X expat xml debug doc gtk gd"
+
+RDEPEND="virtual/ghostscript
+ xml? ( !expat? ( dev-libs/libxml2 ) )
+ expat? ( dev-libs/expat )
+ gd? ( media-libs/gd )
+ >=media-libs/freetype-2.0.1
+ sys-libs/zlib
+ media-libs/libpng
+ media-libs/jpeg
+ X? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ )
+ gtk? ( >=x11-libs/gtk+-2.1.2 ) "
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ X? (
+ x11-libs/libXt
+ x11-libs/libXpm
+ )"
+# plotutils are not really supported yet, so looks like that's it
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ 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
+ fi
+ epatch "${FILESDIR}"/${P}-intoverflow.patch
+ epatch "${FILESDIR}"/${P}-build.patch
+
+ eautoreconf
+}
+
+src_compile() {
+ 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
+
+ econf \
+ $(use_enable debug) \
+ $(use_with X x) \
+ $(use_enable gd) \
+ --with-sys-gd \
+ ${myconf} \
+ --with-gsfontdir=/usr/share/ghostscript/fonts \
+ --with-fontdir=/usr/share/libwmf/fonts/ \
+ --with-docdir=/usr/share/doc/${PF} \
+ || die "./configure failed"
+
+ emake || die
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ dodoc README AUTHORS CREDITS ChangeLog NEWS TODO
+}
+
+set_gtk_confdir() {
+ # An arch specific config directory is used on multilib systems
+ has_multilib_profile && GTK2_CONFDIR="${ROOT}etc/gtk-2.0/${CHOST}"
+ GTK2_CONFDIR="${GTK2_CONFDIR:-/etc/gtk-2.0}"
+}
+
+pkg_postinst() {
+ set_gtk_confdir
+ gdk-pixbuf-query-loaders > "${GTK2_CONFDIR}/gdk-pixbuf.loaders"
+}
+
+pkg_postrm() {
+ set_gtk_confdir
+ gdk-pixbuf-query-loaders > "${GTK2_CONFDIR}/gdk-pixbuf.loaders"
+}
+