diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2013-03-24 17:39:03 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2013-03-24 17:39:03 +0000 |
commit | b007dbca466e8e7bab436a0c6f3d85ded522d2a9 (patch) | |
tree | 222b76840c196d4ff82a4defb1c15a645b1790fb /app-text | |
parent | Snapshot of upstream bug fixes (diff) | |
download | gentoo-2-b007dbca466e8e7bab436a0c6f3d85ded522d2a9.tar.gz gentoo-2-b007dbca466e8e7bab436a0c6f3d85ded522d2a9.tar.bz2 gentoo-2-b007dbca466e8e7bab436a0c6f3d85ded522d2a9.zip |
Version bump
(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 7887F787)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/pdftk/ChangeLog | 10 | ||||
-rw-r--r-- | app-text/pdftk/files/pdftk-1.45-flags.patch | 46 | ||||
-rw-r--r-- | app-text/pdftk/pdftk-1.45.ebuild | 38 |
3 files changed, 92 insertions, 2 deletions
diff --git a/app-text/pdftk/ChangeLog b/app-text/pdftk/ChangeLog index a8f73eddddd6..5ca751e2fefb 100644 --- a/app-text/pdftk/ChangeLog +++ b/app-text/pdftk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/pdftk -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/ChangeLog,v 1.39 2012/09/16 20:39:01 chithanh Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/ChangeLog,v 1.40 2013/03/24 17:39:03 dilfridge Exp $ + +*pdftk-1.45 (24 Mar 2013) + + 24 Mar 2013; Andreas K. Huettel <dilfridge@gentoo.org> +pdftk-1.45.ebuild, + +files/pdftk-1.45-flags.patch: + Version bump 16 Sep 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> pdftk-1.44.ebuild: diff --git a/app-text/pdftk/files/pdftk-1.45-flags.patch b/app-text/pdftk/files/pdftk-1.45-flags.patch new file mode 100644 index 000000000000..83bab9ae099e --- /dev/null +++ b/app-text/pdftk/files/pdftk-1.45-flags.patch @@ -0,0 +1,46 @@ +Based on Debian patch, see http://patch-tracker.debian.org/patch/series/view/pdftk/1.45-1/customise_build_parameters + +diff -ruN pdftk-1.45-dist.orig/pdftk/Makefile.Base pdftk-1.45-dist/pdftk/Makefile.Base +--- pdftk-1.45-dist.orig/pdftk/Makefile.Base 2012-12-06 19:57:36.000000000 +0100 ++++ pdftk-1.45-dist/pdftk/Makefile.Base 2013-03-24 18:32:52.669492230 +0100 +@@ -44,7 +44,7 @@ + $(CXX) $(CPPFLAGS) $(CXXFLAGS) -I$(JAVALIBPATH) pdftk.cc -c + + pdftk : pdftk.o attachments.o report.o $(JAVALIB) $(GCJ_LOCAL_LIB_FULL) +- $(CXX) $(CXXFLAGS) attachments.o report.o pdftk.o $(JAVALIB) $(GCJ_LOCAL_LIB_FULL) $(LDLIBS) -o pdftk ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) attachments.o report.o pdftk.o $(JAVALIB) $(GCJ_LOCAL_LIB_FULL) $(LDLIBS) -o pdftk + + install: + /usr/bin/install pdftk /usr/local/bin +diff -ruN pdftk-1.45-dist.orig/pdftk/Makefile.Debian pdftk-1.45-dist/pdftk/Makefile.Debian +--- pdftk-1.45-dist.orig/pdftk/Makefile.Debian 2012-12-06 19:58:44.000000000 +0100 ++++ pdftk-1.45-dist/pdftk/Makefile.Debian 2013-03-24 18:34:39.034540850 +0100 +@@ -29,7 +29,7 @@ + # tools + # need direct path to libgcj for gcjh (starting in gcj 4.1.2 per Aurélien GÉRÔME) + TOOLPATH= +-export VERSUFF=-4.6 ++export VERSUFF= + export CXX= $(TOOLPATH)g++$(VERSUFF) + export GCJ= $(TOOLPATH)gcj$(VERSUFF) + export GCJH= $(TOOLPATH)gcjh$(VERSUFF) +@@ -71,13 +71,13 @@ + # only effects libraries following option on the command line + # + # +-export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers +-export CXXFLAGS= -Wall -Wextra -Weffc++ -O2 +-export GCJFLAGS= -Wall -Wextra -fsource=1.3 -O2 +-export GCJHFLAGS= -force ++export CPPFLAGS+= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers ++export CXXFLAGS+= -Wall -Wextra -Weffc++ ++export GCJFLAGS+= -fsource=1.3 ++export GCJHFLAGS+= -force + export LDLIBS= -lgcj + + include Makefile.Base + + # required packages (xubuntu 12.04) +-# gcj-jdk, g++ +\ Kein Zeilenumbruch am Dateiende. ++# gcj-jdk, g++ diff --git a/app-text/pdftk/pdftk-1.45.ebuild b/app-text/pdftk/pdftk-1.45.ebuild new file mode 100644 index 000000000000..a808d69ad436 --- /dev/null +++ b/app-text/pdftk/pdftk-1.45.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-1.45.ebuild,v 1.1 2013/03/24 17:39:03 dilfridge Exp $ + +EAPI=5 + +inherit eutils + +DESCRIPTION="A tool for manipulating PDF documents" +HOMEPAGE="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/" +SRC_URI="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${P}-src.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="" +DEPEND="sys-devel/gcc[gcj]" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${P}-dist/${PN} + +src_prepare() { + epatch "${FILESDIR}/${P}-flags.patch" +} + +src_compile() { + # java-config settings break compilation by gcj. + unset CLASSPATH + unset JAVA_HOME + # parallel make fails + emake -j1 -f "${S}"/Makefile.Debian || die "Compilation failed." +} + +src_install() { + dobin pdftk || die + doman ../pdftk.1 || die + dohtml ../pdftk.1.html || die +} |