diff options
author | Daniel Gryniewicz <dang@gentoo.org> | 2006-01-03 21:20:40 +0000 |
---|---|---|
committer | Daniel Gryniewicz <dang@gentoo.org> | 2006-01-03 21:20:40 +0000 |
commit | e5b4e9d3c8f1f4cef91cf05b86b3f75419170003 (patch) | |
tree | 3dd143db8145b81a667e6e0feb53e1d2bcf69ee8 /app-text/poppler-bindings | |
parent | Add cairo flag for poppler-bindings (diff) | |
download | gentoo-2-e5b4e9d3c8f1f4cef91cf05b86b3f75419170003.tar.gz gentoo-2-e5b4e9d3c8f1f4cef91cf05b86b3f75419170003.tar.bz2 gentoo-2-e5b4e9d3c8f1f4cef91cf05b86b3f75419170003.zip |
New poppler-bindings with gtk/qt bindings for poppler
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'app-text/poppler-bindings')
7 files changed, 168 insertions, 0 deletions
diff --git a/app-text/poppler-bindings/ChangeLog b/app-text/poppler-bindings/ChangeLog new file mode 100644 index 000000000000..b2e80076da47 --- /dev/null +++ b/app-text/poppler-bindings/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-text/poppler-bindings +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/poppler-bindings/ChangeLog,v 1.1 2006/01/03 21:20:40 dang Exp $ + +*poppler-bindings-0.4.3-r2 (03 Jan 2006) + + 03 Jan 2006; <dang@gentoo.org> +files/poppler-0.4.1-cairo-ft.patch, + +files/poppler-0.4.3-bindings.patch, +poppler-bindings-0.4.3-r2.ebuild: + New package poppler-bindings to install GUI toolkit bindings for poppler + diff --git a/app-text/poppler-bindings/Manifest b/app-text/poppler-bindings/Manifest new file mode 100644 index 000000000000..bb3ad755235d --- /dev/null +++ b/app-text/poppler-bindings/Manifest @@ -0,0 +1,6 @@ +MD5 fb3000807157ba90472831a2d831f646 ChangeLog 388 +MD5 fd7bca7be5c5d5779b32f4c4e7fe9b4c files/digest-poppler-bindings-0.4.3-r2 65 +MD5 3342aad1175b4b522f84e453999fbb05 files/poppler-0.4.1-cairo-ft.patch 470 +MD5 73800d8735fd2813b3ef67ad511fc2b5 files/poppler-0.4.3-bindings.patch 2915 +MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161 +MD5 47474781db4bcc9f11eb20f193c9e680 poppler-bindings-0.4.3-r2.ebuild 1290 diff --git a/app-text/poppler-bindings/files/digest-poppler-bindings-0.4.3-r2 b/app-text/poppler-bindings/files/digest-poppler-bindings-0.4.3-r2 new file mode 100644 index 000000000000..737819686e59 --- /dev/null +++ b/app-text/poppler-bindings/files/digest-poppler-bindings-0.4.3-r2 @@ -0,0 +1 @@ +MD5 791dc78d8366eb05580183fe85174555 poppler-0.4.3.tar.gz 779582 diff --git a/app-text/poppler-bindings/files/poppler-0.4.1-cairo-ft.patch b/app-text/poppler-bindings/files/poppler-0.4.1-cairo-ft.patch new file mode 100644 index 000000000000..a484b646c148 --- /dev/null +++ b/app-text/poppler-bindings/files/poppler-0.4.1-cairo-ft.patch @@ -0,0 +1,11 @@ +diff --exclude-from=/home/dang/.diffrc -u -ruN poppler-0.4.1.orig/test/Makefile.am poppler-0.4.1/test/Makefile.am +--- poppler-0.4.1.orig/test/Makefile.am 2005-03-03 14:46:04.000000000 -0500 ++++ poppler-0.4.1/test/Makefile.am 2005-08-29 23:23:36.000000000 -0400 +@@ -28,6 +28,7 @@ + -I$(top_srcdir)/poppler \ + $(cairo_includes) \ + $(GTK_TEST_CFLAGS) \ ++ $(FREETYPE_CFLAGS) \ + -DDATADIR=\""$(datadir)"\" + + noinst_PROGRAMS = $(gtk_splash_test) $(gtk_cairo_test) diff --git a/app-text/poppler-bindings/files/poppler-0.4.3-bindings.patch b/app-text/poppler-bindings/files/poppler-0.4.3-bindings.patch new file mode 100644 index 000000000000..b41dae7fb132 --- /dev/null +++ b/app-text/poppler-bindings/files/poppler-0.4.3-bindings.patch @@ -0,0 +1,87 @@ +diff --exclude-from=/home/dang/.diffrc -u -ruN poppler-0.4.3.orig/glib/Makefile.am poppler-0.4.3/glib/Makefile.am +--- poppler-0.4.3.orig/glib/Makefile.am 2005-05-16 17:56:31.000000000 -0400 ++++ poppler-0.4.3/glib/Makefile.am 2006-01-03 12:27:24.000000000 -0500 +@@ -76,7 +76,7 @@ + poppler-private.h + + libpoppler_glib_la_LIBADD = \ +- $(top_builddir)/poppler/libpoppler.la \ ++ -lpoppler \ + $(POPPLER_GLIB_LIBS) \ + $(FREETYPE_LIBS) \ + $(cairo_libs) +@@ -87,7 +87,7 @@ + test-poppler-glib.c + + test_poppler_glib_LDADD = \ +- $(top_builddir)/poppler/libpoppler.la \ ++ -lpoppler \ + libpoppler-glib.la \ + $(POPPLER_GLIB_LIBS) \ + $(FREETYPE_LIBS) \ +diff --exclude-from=/home/dang/.diffrc -u -ruN poppler-0.4.3.orig/Makefile.am poppler-0.4.3/Makefile.am +--- poppler-0.4.3.orig/Makefile.am 2005-06-28 06:00:09.000000000 -0400 ++++ poppler-0.4.3/Makefile.am 2006-01-03 14:49:51.000000000 -0500 +@@ -22,7 +22,7 @@ + qt4_pc_file = poppler-qt4.pc + endif + +-SUBDIRS = goo fofi $(splash_subdir) poppler $(glib_subdir) $(qt_subdir) test $(qt4_subdir) ++SUBDIRS = $(glib_subdir) $(qt_subdir) $(qt4_subdir) + + EXTRA_DIST = \ + README-XPDF \ +@@ -33,9 +33,6 @@ + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = \ +- poppler.pc \ +- $(cairo_pc_file) \ +- $(splash_pc_file) \ + $(glib_pc_file) \ + $(qt_pc_file) \ + $(qt4_pc_file) +diff --exclude-from=/home/dang/.diffrc -u -ruN poppler-0.4.3.orig/qt/Makefile.am poppler-0.4.3/qt/Makefile.am +--- poppler-0.4.3.orig/qt/Makefile.am 2005-12-12 17:25:02.000000000 -0500 ++++ poppler-0.4.3/qt/Makefile.am 2006-01-03 12:27:39.000000000 -0500 +@@ -18,7 +18,7 @@ + poppler-private.h + + libpoppler_qt_la_LIBADD= \ +- $(top_builddir)/poppler/libpoppler.la \ ++ -lpoppler \ + $(POPPLER_QT_LIBS) \ + $(FREETYPE_LIBS) + +@@ -32,7 +32,7 @@ + test-poppler-qt.cpp + + test_poppler_qt_LDADD = \ +- $(top_builddir)/poppler/libpoppler.la \ ++ -lpoppler \ + libpoppler-qt.la \ + $(POPPLER_QT_LIBS) \ + $(FREETYPE_LIBS) +diff --exclude-from=/home/dang/.diffrc -u -ruN poppler-0.4.3.orig/qt4/src/Makefile.am poppler-0.4.3/qt4/src/Makefile.am +--- poppler-0.4.3.orig/qt4/src/Makefile.am 2005-06-28 06:00:09.000000000 -0400 ++++ poppler-0.4.3/qt4/src/Makefile.am 2006-01-03 12:28:08.000000000 -0500 +@@ -17,6 +17,6 @@ + poppler-private.h + + libpoppler_qt4_la_LIBADD= \ +- $(top_builddir)/poppler/libpoppler.la \ ++ -lpoppler \ + $(POPPLER_QT4_LIBS) + +diff --exclude-from=/home/dang/.diffrc -u -ruN poppler-0.4.3.orig/qt4/tests/Makefile.am poppler-0.4.3/qt4/tests/Makefile.am +--- poppler-0.4.3.orig/qt4/tests/Makefile.am 2005-07-07 17:15:09.000000000 -0400 ++++ poppler-0.4.3/qt4/tests/Makefile.am 2006-01-03 12:28:28.000000000 -0500 +@@ -5,7 +5,7 @@ + $(POPPLER_QT4_CXXFLAGS) + + LDADDS = \ +- $(top_builddir)/poppler/libpoppler.la \ ++ -lpoppler \ + $(top_builddir)/qt4/src/libpoppler-qt4.la \ + $(POPPLER_QT4_LIBS) + diff --git a/app-text/poppler-bindings/metadata.xml b/app-text/poppler-bindings/metadata.xml new file mode 100644 index 000000000000..1fa0ca569505 --- /dev/null +++ b/app-text/poppler-bindings/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>printing</herd> +</pkgmetadata> diff --git a/app-text/poppler-bindings/poppler-bindings-0.4.3-r2.ebuild b/app-text/poppler-bindings/poppler-bindings-0.4.3-r2.ebuild new file mode 100644 index 000000000000..5264f55f2197 --- /dev/null +++ b/app-text/poppler-bindings/poppler-bindings-0.4.3-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/poppler-bindings/poppler-bindings-0.4.3-r2.ebuild,v 1.1 2006/01/03 21:20:40 dang Exp $ + +inherit eutils autotools + +MY_P=${P/-bindings/} +DESCRIPTION="Poppler bindings are rendering bindings for GUI toolkits for poppler" +HOMEPAGE="http://poppler.freedesktop.org" +SRC_URI="http://poppler.freedesktop.org/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="gtk qt cairo" + +RDEPEND=">=app-text/poppler-0.4.3-r2 + cairo? ( >=x11-libs/cairo-0.5 ) + gtk? ( >=x11-libs/gtk+-2.4 ) + qt? ( =x11-libs/qt-3* )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + >=sys-devel/automake-1.9.6" + +S="${WORKDIR}/${MY_P}" + +src_unpack(){ + unpack ${A} + cd ${S} + epatch ${FILESDIR}/poppler-0.4.1-cairo-ft.patch + epatch ${FILESDIR}/poppler-0.4.3-bindings.patch + eautoreconf +} + +src_compile() { + econf --disable-poppler-qt4 --enable-opi \ + $(use_enable cairo cairo-output) \ + $(use_enable gtk poppler-glib) \ + $(use_enable qt poppler-qt) \ + || die "configuration failed" + emake || die "compilation failed" +} + +src_install() { + make DESTDIR=${D} install || die + dodoc README AUTHORS ChangeLog NEWS README-XPDF TODO +} |