summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Østergaard <kloeri@gentoo.org>2004-12-06 03:44:10 +0000
committerBryan Østergaard <kloeri@gentoo.org>2004-12-06 03:44:10 +0000
commita8eeba84e58a2d2a75ce3c8bb4630f2c2057e6cc (patch)
tree09b71da6e57391a36471834d4b9248630389ffc6 /media-libs/pdflib
parentadd TEMISC and FCMISC (diff)
downloadgentoo-2-a8eeba84e58a2d2a75ce3c8bb4630f2c2057e6cc.tar.gz
gentoo-2-a8eeba84e58a2d2a75ce3c8bb4630f2c2057e6cc.tar.bz2
gentoo-2-a8eeba84e58a2d2a75ce3c8bb4630f2c2057e6cc.zip
inherit eutils, bug 73139.
Diffstat (limited to 'media-libs/pdflib')
-rw-r--r--media-libs/pdflib/ChangeLog8
-rw-r--r--media-libs/pdflib/Manifest14
-rw-r--r--media-libs/pdflib/files/digest-pdflib-5.0.4_p1-r11
-rw-r--r--media-libs/pdflib/pdflib-5.0.4_p1-r1.ebuild104
4 files changed, 115 insertions, 12 deletions
diff --git a/media-libs/pdflib/ChangeLog b/media-libs/pdflib/ChangeLog
index 08062fe3e02d..01e13313a33c 100644
--- a/media-libs/pdflib/ChangeLog
+++ b/media-libs/pdflib/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/pdflib
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.49 2004/12/05 11:24:59 kloeri Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.50 2004/12/06 03:44:10 kloeri Exp $
+
+*pdflib-5.0.4_p1-r1 (06 Dec 2004)
+
+ 06 Dec 2004; Bryan Østergaard <kloeri@gentoo.org>
+ +pdflib-5.0.4_p1-r1.ebuild:
+ inherit eutils, bug 73139.
05 Dec 2004; Bryan Østergaard <kloeri@gentoo.org> pdflib-5.0.4_p1.ebuild:
Stable on alpha, bug 69043.
diff --git a/media-libs/pdflib/Manifest b/media-libs/pdflib/Manifest
index 426fdbc96b9f..dc34c83c4cce 100644
--- a/media-libs/pdflib/Manifest
+++ b/media-libs/pdflib/Manifest
@@ -1,15 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 f14293b06b2da1c06cc9dde7fa347370 ChangeLog 6970
+MD5 663e22700a7ded86f2748c3d780141de ChangeLog 7118
MD5 7da7cccc1b5e27637f6540ed09b0736f pdflib-5.0.4_p1.ebuild 3137
MD5 75452e1aedeee7f89170aafac2969be4 pdflib-5.0.2.ebuild 3071
+MD5 91ac2bdbea0ca577e80597e765d9932d pdflib-5.0.4_p1-r1.ebuild 3255
MD5 9892461f8babed0732b85ef46b5a163b files/digest-pdflib-5.0.2 79
+MD5 fefae1e15a7bef14346d8c73778d2717 files/digest-pdflib-5.0.4_p1-r1 81
MD5 fefae1e15a7bef14346d8c73778d2717 files/digest-pdflib-5.0.4_p1 81
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBsvAWugEuf3OQ0akRAjqSAJ9LflR+QcJrzurn3Q0fWOiRSWsarQCghyHK
-RpMmPygdXFHLD9qKGJH8ZN0=
-=9y6Z
------END PGP SIGNATURE-----
diff --git a/media-libs/pdflib/files/digest-pdflib-5.0.4_p1-r1 b/media-libs/pdflib/files/digest-pdflib-5.0.4_p1-r1
new file mode 100644
index 000000000000..4bd289be0a01
--- /dev/null
+++ b/media-libs/pdflib/files/digest-pdflib-5.0.4_p1-r1
@@ -0,0 +1 @@
+MD5 0bdafcbf7d1e732cf0abd376c6021637 PDFlib-Lite-5.0.4p1-Unix-src.tar.gz 2825309
diff --git a/media-libs/pdflib/pdflib-5.0.4_p1-r1.ebuild b/media-libs/pdflib/pdflib-5.0.4_p1-r1.ebuild
new file mode 100644
index 000000000000..3c691423ea1f
--- /dev/null
+++ b/media-libs/pdflib/pdflib-5.0.4_p1-r1.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-5.0.4_p1-r1.ebuild,v 1.1 2004/12/06 03:44:10 kloeri Exp $
+
+# eutils must be inherited since get_libdir() is only
+# globally available on baselayout-1.11 (still on ~arch)
+inherit eutils java-pkg
+
+MY_PN="${PN/pdf/PDF}-Lite"
+MY_PV="${PV/_p1/p1}"
+MY_P="${MY_PN}-${MY_PV}-Unix-src"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="A library for generating PDF on the fly"
+HOMEPAGE="http://www.pdflib.com/"
+SRC_URI="http://www.pdflib.com/products/pdflib/download/504src/${MY_P}.tar.gz"
+
+LICENSE="Aladdin"
+SLOT="5"
+KEYWORDS="x86 ppc sparc ~mips alpha arm hppa amd64 ia64 ppc64 s390"
+IUSE="tcltk perl python java"
+
+DEPEND=">=sys-apps/sed-4
+ tcltk? ( >=dev-lang/tk-8.2 )
+ perl? ( >=dev-lang/perl-5.1 )
+ python? ( >=dev-lang/python-2.2 )
+ java? ( >=virtual/jdk-1.3 )"
+
+src_compile() {
+ local myconf=
+
+ PYVER="$(/usr/bin/python -V 2>&1 | cut -d ' ' -f 2 | cut -d '.' -f 1,2)"
+ use tcltk || myconf="--with-tcl=no"
+ use perl || myconf="${myconf} --with-perl=no"
+ use python \
+ && myconf="${myconf} --with-py=/usr --with-pyincl=/usr/include/python${PYVER}" \
+ || myconf="${myconf} --with-py=no"
+ use java \
+ && myconf="${myconf} --with-java=${JAVA_HOME}" \
+ || myconf="${myconf} --with-java=no"
+
+ econf \
+ --enable-cxx \
+ ${myconf} || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ sed -i \
+ -e "s:^\(LANG_LIBDIR\).*= \(.*\):\1\t = ${D}/\2:" \
+ ${S}/bind/pdflib/perl/Makefile \
+ || die "sed bind/pdflib/perl/Makefile failed"
+
+ sed -i \
+ -e "s:^\(LANG_LIBDIR\).*= \(.*\):\1\t = ${D}/\2:" \
+ ${S}/bind/pdflib/python/Makefile \
+ || die "sed bind/pdflib/python/Makefile failed"
+
+ sed -i \
+ -e "s:^\(LANG_LIBDIR\).*= \(.*\):\1\t = ${D}/\2:" \
+ ${S}/bind/pdflib/tcl/Makefile \
+ || die "sed bind/pdflib/tcl/Makefile failed"
+
+ # ok, this should create the correct lib dirs for perl and python.
+ # yes, i know it is messy, but as i see it, a ebuild should be generic
+ # ... ie. you should be able to just use cp to update it
+ if use perl && [ -x /usr/bin/perl ] ; then
+ local perlmajver="`/usr/bin/perl -v |grep 'This is perl' \
+ |cut -d ' ' -f 4 |cut -d '.' -f 1`"
+ local perlver="`/usr/bin/perl -v |grep 'This is perl' \
+ |cut -d ' ' -f 4`"
+ local perlarch="`/usr/bin/perl -v |grep 'This is perl' \
+ |cut -d ' ' -f 7`"
+ dodir /usr/$(get_libdir)/perl${perlmajver/v/}/site_perl/${perlver/v/}/${perlarch}
+ fi
+ if use python && [ -x /usr/bin/python ] ; then
+ dodir /usr/$(get_libdir)/python${PYVER}/lib-dynload
+ fi
+ #next line required for proper install
+ dodir /usr/bin
+ einstall || die
+
+ dodoc readme.txt doc/*
+
+ # seemant: seems like the makefiles for pdflib generate the .jar file
+ # anyway
+ use java && java-pkg_dojar bind/pdflib/java/pdflib.jar
+
+ # karltk: This is definitely NOT how it should be done!
+ # we need this to create pdflib.jar (we will not have the source when
+ # this is a binary package ...)
+# if use java
+# then
+# insinto /usr/share/pdflib
+# doins ${S}/bind/pdflib/java/pdflib.java
+#
+# mkdir -p com/pdflib
+# mv ${S}/bind/pdflib/java/pdflib.java com/pdflib
+# javac com/pdflib/pdflib.java
+#
+# jar cf pdflib.jar com/pdflib/*.class
+#
+# java-pkg_dojar pdflib.jar
+# fi
+}