app-text/pdfsam: Bump to beta

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1175 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-04-27 21:12:42 +00:00
parent 4ad6e009e1
commit eea0605cca
3 changed files with 154 additions and 1 deletions

View File

@ -2,6 +2,11 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
* pdfsam-2.0.0e (27 Apr 2009)
27 Apr 2009; Mario Fetka <mario.fetka@gmail.com> pdfsam-2.0.0e:
Bump to beta
17 Apr 2009; Mario Fetka <mario.fetka@gmail.com> pdfsam-1.5.2e.ebuild:
wrap to long line

View File

@ -17,5 +17,5 @@ EBUILD pdfsam-1.5.0e.ebuild 4854 RMD160 da081ffa153648985121dcc09bd6c19c2fd5c0ba
EBUILD pdfsam-1.5.1e.ebuild 4798 RMD160 34f88d05194483218001385f09c37e95c05039ec SHA1 86cfa5b9fbbf8af8baa46951f3a75e2e24e1b25d SHA256 6f4e1e6a3321cdddf28f383a393c85ed69d67ba7eb45a733041f51299d289a02
EBUILD pdfsam-1.5.2e.ebuild 4977 RMD160 b403fcbbd57a6503074afcc85b902e29b92143d8 SHA1 60095a2931e66e00b1d2f7aba777e70bd5c14706 SHA256 a0d5fa17f6824916c29b0f0041fcfec77b0b987579bb85e31ddc3778e0b81996
EBUILD pdfsam-2.0.0e.ebuild 6433 RMD160 11b5d8865920229fb1cfd03c063909256e2e4ec7 SHA1 02c9d3d4a1437763fb95cc4ad2089f9d88426a04 SHA256 0711f244574fee4569e7ef98cb277641afde6a49810af6e80807ae2203d3979e
MISC ChangeLog 2309 RMD160 fd8f19863881b33eb36b66bfaefb40e2eff0e1c3 SHA1 e6f37380e7113c2da52deb94e372b4a613d6ee69 SHA256 e04050b3e056836eac35886be088068845da6568b01fd1f32e5b948db9be9f8c
MISC ChangeLog 2422 RMD160 f4c92cc2c48917b5b4cd0574d5d6851ebcd6325f SHA1 51d6aaa8cd8fe3c058263ece492e316ff42c6748 SHA256 a5594b05996483195d943d310b685e97b3af1104aa8dda716bf276d1ff1fcb67
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42

View File

@ -0,0 +1,148 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=1
JAVA_PKG_IUSE="doc"
inherit java-pkg-2 eutils java-ant-2
DESCRIPTION="A free open source tool to split and merge pdf documents"
HOMEPAGE="http://www.pdfsam.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}-alpha-out-src.zip"
LICENSE="GPL-2"
SLOT="2.0"
KEYWORDS="~amd64 ~x86"
IUSE=""
S="${WORKDIR}/pdfsam"
COMMON_DEP="dev-java/dom4j:1
dev-java/log4j
dev-java/itext
dev-java/jaxen:1.1
dev-java/bcmail
dev-java/bcprov
dev-java/jgoodies-looks:2.0
dev-java/iscwt
dev-java/isfreetype
dev-java/isnativec
dev-java/isrt
dev-java/jPod
dev-java/jPodRenderer
dev-java/sun-jai-bin
dev-java/sun-jai-imageio
dev-java/jbig2
dev-java/jna
dev-java/swt:3.4"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.5
sys-devel/gettext
app-arch/unzip
${COMMON_DEP}"
src_unpack() {
unpack ${A} || die "unpack failed"
mkdir "${S}"
cd "${S}"
for zip in "${WORKDIR}"/*.zip
do
unzip -oq ${zip} || die "unpacking ${zip} failed"
done
for bldprop in emp4j jcmdline pdfsam-console pdfsam-decrypt pdfsam-encrypt pdfsam-merge \
pdfsam-unpack pdfsam-split pdfsam-setviewer pdfsam-cover pdfsam-langpack \
pdfsam-maine pdfsam-mix pdfsam-vcomposer pdfsam-vpagereorder
do
echo > ${S}/${bldprop}/ant/build.properties
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
echo "template.dir=${S}/template-enhanced-2" >> ${S}/${bldprop}/ant/build.properties
echo "workspace.dir=${S}" >> ${S}/${bldprop}/ant/build.properties
echo "build.dir=${S}/build" >> ${S}/${bldprop}/ant/build.properties
echo "libs.dir=${S}" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam.version=enhanced" >> ${S}/${bldprop}/ant/build.properties
echo "itext.jar.name=iText" >> ${S}/${bldprop}/ant/build.properties
echo "log4j.jar.name=log4j" >> ${S}/${bldprop}/ant/build.properties
echo "dom4j.jar.name=dom4j" >> ${S}/${bldprop}/ant/build.properties
echo "jaxen.jar.name=jaxen" >> ${S}/${bldprop}/ant/build.properties
echo "bcmail.jar.name=bcmail" >> ${S}/${bldprop}/ant/build.properties
echo "bcprov.jar.name=bcprov" >> ${S}/${bldprop}/ant/build.properties
echo "looks.jar.name=looks" >> ${S}/${bldprop}/ant/build.properties
echo "iscwt.jar.name=iscwt" >> ${S}/${bldprop}/ant/build.properties
echo "isfreetype.jar.name=isfreetype" >> ${S}/${bldprop}/ant/build.properties
echo "isnativec.jar.name=isnativec" >> ${S}/${bldprop}/ant/build.properties
echo "isrt.jar.name=isrt" >> ${S}/${bldprop}/ant/build.properties
echo "jPod.jar.name=jPod" >> ${S}/${bldprop}/ant/build.properties
echo "jPodFonts.jar.name=jPodFonts" >> ${S}/${bldprop}/ant/build.properties
echo "jPodRenderer.jar.name=jPodRenderer" >> ${S}/${bldprop}/ant/build.properties
echo "jai_codec.jar.name=jai_codec" >> ${S}/${bldprop}/ant/build.properties
echo "jai_core.jar.name=jai_core" >> ${S}/${bldprop}/ant/build.properties
echo "jai_imageio.jar.name=jai_imageio" >> ${S}/${bldprop}/ant/build.properties
echo "jcmdline.jar.name=pdfsam-jcmdline" >> ${S}/${bldprop}/ant/build.properties
echo "emp4j.jar.name=emp4j" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam.jar.name=pdfsam" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-console.jar.name=pdfsam-console" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-split.jar.name=pdfsam-split" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-merge.jar.name=pdfsam-merge" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-cover.jar.name=pdfsam-cover" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-encrypt.jar.name=pdfsam-encrypt" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-decrypt.jar.name=pdfsam-decrypt" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-mix.jar.name=pdfsam-mix" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-unpack.jar.name=pdfsam-unpack" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-langpack.jar.name=pdfsam-langpack" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-setviewer.jar.name=pdfsam-setviewer" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-vpagereorder.jar.name=pdfsam-vpagereorder" >> ${S}/${bldprop}/ant/build.properties
echo "pdfsam-vcomposer.jar.name=pdfsam-vcomposer" >> ${S}/${bldprop}/ant/build.properties
done
java-pkg_jarfrom itext
java-pkg_jarfrom dom4j-1
java-pkg_jarfrom log4j
java-pkg_jarfrom jaxen-1.1
java-pkg_jarfrom bcmail
java-pkg_jarfrom bcprov
java-pkg_jarfrom jgoodies-looks-2.0
java-pkg_jarfrom isrt
java-pkg_jarfrom isnativec
java-pkg_jarfrom isfreetype
java-pkg_jarfrom iscwt
java-pkg_jarfrom jPod
java-pkg_jarfrom jPodRenderer
java-pkg_jarfrom sun-jai-bin
java-pkg_jarfrom sun-jai-imageio
java-pkg_jarfrom swt-3.4
}
src_compile() {
eant ${antflags} -buildfile pdfsam-maine/ant/build.xml || die "build failed"
use doc && eant ${antflags} -buildfile pdfsam-maine/ant/build.xml javadoc || die "doc build failed"
}
src_install() {
insinto /usr/share/${PN}-${SLOT}/lib
doins build/pdfsam-maine/release/dist/pdfsam-enhanced/*.xml || die "config install failed"
java-pkg_dojar build/pdfsam-maine/release/dist/pdfsam-enhanced/pdfsam.jar
java-pkg_dojar build/pdfsam-maine/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
java-pkg_dojar build/pdfsam-maine/release/dist/pdfsam-enhanced/lib/emp4j.jar
for plugins in decrypt encrypt merge unpack split setviewer cover mix vcomposer vpagereorder
do
java-pkg_jarinto /usr/share/${PN}-${SLOT}/lib/plugins/${plugins}
insinto /usr/share/${PN}-${SLOT}/lib/plugins/${plugins}
java-pkg_dojar build/pdfsam-maine/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
doins build/pdfsam-maine/release/dist/pdfsam-enhanced/plugins/${plugins}/*.xml || die "config install failed"
done
java-pkg_dolauncher ${PN}-${SLOT} --main org.pdfsam.guiclient.GuiClient --pwd "/usr/share/${PN}-${SLOT}/lib"
java-pkg_dolauncher ${PN}-console-${SLOT} --main org.pdfsam.console.ConsoleClient --pwd "/usr/share/${PN}-${SLOT}/lib"
newicon pdfsam-maine/images/pdf.png pdfsam-${SLOT}.png
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
use doc && dodoc pdfsam-maine/doc/enhanced/* || die "doc install failed"
use doc && java-pkg_dojavadoc build/pdfsam-maine/apidocs
}