diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2011-07-01 21:03:48 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2011-07-01 21:03:48 +0000 |
commit | 13fa99bc786b9931d7b406d46306324f972c481f (patch) | |
tree | bdc198fc27c7154b140ec4b1cf5f88e87558cee1 /media-libs | |
parent | Simplify install - docs and examples are installed based on use_with() parame... (diff) | |
download | gentoo-2-13fa99bc786b9931d7b406d46306324f972c481f.tar.gz gentoo-2-13fa99bc786b9931d7b406d46306324f972c481f.tar.bz2 gentoo-2-13fa99bc786b9931d7b406d46306324f972c481f.zip |
Revision bump in order to fix gdk-pixbuf split and use system fonts. Fixes bugs #256087 and #368485.
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libwmf/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/libwmf/files/libwmf-0.2.8.4-gdk-pixbuf.patch | 25 | ||||
-rw-r--r-- | media-libs/libwmf/files/libwmf-0.2.8.4-use-system-fonts.patch | 39 | ||||
-rw-r--r-- | media-libs/libwmf/libwmf-0.2.8.4-r4.ebuild | 84 |
4 files changed, 157 insertions, 1 deletions
diff --git a/media-libs/libwmf/ChangeLog b/media-libs/libwmf/ChangeLog index 85492899473e..999cafd7123f 100644 --- a/media-libs/libwmf/ChangeLog +++ b/media-libs/libwmf/ChangeLog @@ -1,6 +1,14 @@ # 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.70 2011/05/23 17:18:32 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libwmf/ChangeLog,v 1.71 2011/07/01 21:03:48 scarabeus Exp $ + +*libwmf-0.2.8.4-r4 (01 Jul 2011) + + 01 Jul 2011; Tomáš Chvátal <scarabeus@gentoo.org> + +libwmf-0.2.8.4-r4.ebuild, +files/libwmf-0.2.8.4-gdk-pixbuf.patch, + +files/libwmf-0.2.8.4-use-system-fonts.patch: + Revision bump in order to fix gdk-pixbuf split and use system fonts. Fixes + bugs #256087 and #368485. 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: diff --git a/media-libs/libwmf/files/libwmf-0.2.8.4-gdk-pixbuf.patch b/media-libs/libwmf/files/libwmf-0.2.8.4-gdk-pixbuf.patch new file mode 100644 index 000000000000..83a9ce7f3635 --- /dev/null +++ b/media-libs/libwmf/files/libwmf-0.2.8.4-gdk-pixbuf.patch @@ -0,0 +1,25 @@ +diff -urN libwmf-0.2.8.4.old/configure.ac libwmf-0.2.8.4/configure.ac +--- libwmf-0.2.8.4.old/configure.ac 2011-07-01 22:37:57.000000000 +0200 ++++ libwmf-0.2.8.4/configure.ac 2011-07-01 22:41:38.000000000 +0200 +@@ -744,8 +744,7 @@ + + if test $LIBWMF_BUILDSTYLE != lite; then + PKG_CHECK_MODULES(GDK_PIXBUF,gdk-pixbuf-2.0 >= 2.1.2,[ +- GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` +- GDK_PIXBUF_DIR="gtk-2.0/$GTK_VERSION/loaders" ++ GDK_PIXBUF_DIR=`$PKG_CONFIG --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0` + wmf_gdk_pixbuf=yes + ],[ wmf_gdk_pixbuf=no + ]) +diff -urN libwmf-0.2.8.4.old/src/Makefile.am libwmf-0.2.8.4/src/Makefile.am +--- libwmf-0.2.8.4.old/src/Makefile.am 2011-07-01 22:37:57.000000000 +0200 ++++ libwmf-0.2.8.4/src/Makefile.am 2011-07-01 22:40:41.000000000 +0200 +@@ -63,7 +63,7 @@ + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ + -release $(LT_RELEASE) -export-dynamic + +-loaderdir = $(libdir)/$(GDK_PIXBUF_DIR) ++loaderdir = $(GDK_PIXBUF_DIR) + + loader_LTLIBRARIES = $(GDK_PIXBUF_PLUGIN) + diff --git a/media-libs/libwmf/files/libwmf-0.2.8.4-use-system-fonts.patch b/media-libs/libwmf/files/libwmf-0.2.8.4-use-system-fonts.patch new file mode 100644 index 000000000000..2f7465c33cd0 --- /dev/null +++ b/media-libs/libwmf/files/libwmf-0.2.8.4-use-system-fonts.patch @@ -0,0 +1,39 @@ +diff -urN libwmf-0.2.8.4.old/fonts/Makefile.am libwmf-0.2.8.4/fonts/Makefile.am +--- libwmf-0.2.8.4.old/fonts/Makefile.am 2011-07-01 22:37:57.000000000 +0200 ++++ libwmf-0.2.8.4/fonts/Makefile.am 2011-07-01 22:38:37.000000000 +0200 +@@ -1,35 +1,3 @@ + fontdir = @WMF_FONTDIR@ + + bin_SCRIPTS = libwmf-fontmap +- +-FONTS = \ +- n019003l.afm \ +- n019003l.pfb \ +- n019004l.afm \ +- n019004l.pfb \ +- n019023l.afm \ +- n019023l.pfb \ +- n019024l.afm \ +- n019024l.pfb \ +- n021003l.afm \ +- n021003l.pfb \ +- n021004l.afm \ +- n021004l.pfb \ +- n021023l.afm \ +- n021023l.pfb \ +- n021024l.afm \ +- n021024l.pfb \ +- n022003l.afm \ +- n022003l.pfb \ +- n022004l.afm \ +- n022004l.pfb \ +- n022023l.afm \ +- n022023l.pfb \ +- n022024l.afm \ +- n022024l.pfb \ +- s050000l.afm \ +- s050000l.pfb +- +-font_DATA = $(FONTS) fontmap +- +-EXTRA_DIST = libwmf-fontmap.in LICENSE $(FONTS) diff --git a/media-libs/libwmf/libwmf-0.2.8.4-r4.ebuild b/media-libs/libwmf/libwmf-0.2.8.4-r4.ebuild new file mode 100644 index 000000000000..9b426a0872dc --- /dev/null +++ b/media-libs/libwmf/libwmf-0.2.8.4-r4.ebuild @@ -0,0 +1,84 @@ +# 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-r4.ebuild,v 1.1 2011/07/01 21:03:48 scarabeus Exp $ + +EAPI=4 + +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 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris" +IUSE="X debug doc expat xml" + +RDEPEND="app-text/ghostscript-gpl + media-fonts/urw-fonts + >=media-libs/freetype-2.0.1 + >=media-libs/libpng-1.4 + sys-libs/zlib + x11-libs/gdk-pixbuf:2[X?] + virtual/jpeg + expat? ( dev-libs/expat ) + xml? ( dev-libs/libxml2 ) + X? ( + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + ) +" +DEPEND="${RDEPEND} + dev-util/pkgconfig + X? ( + x11-libs/libXt + x11-libs/libXpm + )" +# plotutils are not really supported yet, so looks like that's it + +REQUIRED_USE="xml? ( !expat ) expat? ( !xml )" + +DOCS=( README AUTHORS CREDITS ChangeLog NEWS TODO ) + +src_prepare() { + if ! use doc ; then + sed -e 's:doc::' -i Makefile.am || die + fi + epatch \ + "${FILESDIR}"/${P}-intoverflow.patch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-pngfix.patch \ + "${FILESDIR}"/${P}-libpng-1.5.patch \ + "${FILESDIR}"/${P}-use-system-fonts.patch \ + "${FILESDIR}"/${P}-gdk-pixbuf.patch + + eautoreconf +} + +src_configure() { + # 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 \ + --with-gsfontdir="${EPREFIX}"/usr/share/ghostscript/fonts \ + --with-fontdir="${EPREFIX}"/usr/share/fonts/urw-fonts/ \ + --with-docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + MAKEOPTS+=" -j1" default + find "${ED}" -name '*.la' -exec rm -f '{}' + +}
\ No newline at end of file |