add pdfsam

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@248 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2007-10-20 13:27:19 +00:00
parent e7f03b7d38
commit 6fd2954061
3 changed files with 108 additions and 0 deletions

9
app-text/pdfsam/Manifest Normal file
View File

@ -0,0 +1,9 @@
DIST pdfsam-1.3.0e-sr1-build-src.zip 568855 RMD160 4420247808da942c3c3043f42492116384523ecb SHA1 a329c13bc6e19bebc33f6cdd5087794464f5426a SHA256 c472899305f4e2f456a252da927b48aa16239b5a3192081d36197ea66dee9ddf
DIST pdfsam-1.3.0e-sr1-out-src.zip 391942 RMD160 3c04a901323e81d8fbbca073c7016f70ec29e901 SHA1 5f8e96a275de75287a54dd02d269eefe46a29f4d SHA256 ec4b00985a0cf8e31d5f4ac5bf4e734c43808ede8f55506610354f710d3a7df7
EBUILD pdfsam-1.3.0e_p1.ebuild 2694 RMD160 b87260dd9afb6e609f6d533308145d2cd1ffb286 SHA1 d94d4607fa9f2c91c7813ea65f667cc8832947cb SHA256 88f16634d96318e89075197c716f25b80dd9932c82db69c910d1d9fc6a83020e
MD5 3653d95c9f623358869614615774d634 pdfsam-1.3.0e_p1.ebuild 2694
RMD160 b87260dd9afb6e609f6d533308145d2cd1ffb286 pdfsam-1.3.0e_p1.ebuild 2694
SHA256 88f16634d96318e89075197c716f25b80dd9932c82db69c910d1d9fc6a83020e pdfsam-1.3.0e_p1.ebuild 2694
MD5 320292d9d4669272376ba523948da987 files/digest-pdfsam-1.3.0e_p1 542
RMD160 da0c49cca4625a78f8af41116976292f79f53263 files/digest-pdfsam-1.3.0e_p1 542
SHA256 5714dc34eaf79e9b050cfbf24cdd936d37802d39ae8f5f0751bef509c60a7b51 files/digest-pdfsam-1.3.0e_p1 542

View File

@ -0,0 +1,6 @@
MD5 08bf9268c353afe273a4033dfd0950b9 pdfsam-1.3.0e-sr1-build-src.zip 568855
RMD160 4420247808da942c3c3043f42492116384523ecb pdfsam-1.3.0e-sr1-build-src.zip 568855
SHA256 c472899305f4e2f456a252da927b48aa16239b5a3192081d36197ea66dee9ddf pdfsam-1.3.0e-sr1-build-src.zip 568855
MD5 dc959ef82d853279c1d1af107b81facc pdfsam-1.3.0e-sr1-out-src.zip 391942
RMD160 3c04a901323e81d8fbbca073c7016f70ec29e901 pdfsam-1.3.0e-sr1-out-src.zip 391942
SHA256 ec4b00985a0cf8e31d5f4ac5bf4e734c43808ede8f55506610354f710d3a7df7 pdfsam-1.3.0e-sr1-out-src.zip 391942

View File

@ -0,0 +1,93 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
JAVA_PKG_IUSE="doc"
inherit java-pkg-2 eutils java-ant-2 versionator
# MY_PV=$(replace_version_separator 3 '-sr')
MY_P="${P/_p/-sr}"
MY_V=1.3.0
DESCRIPTION="A free open source tool to split and merge pdf documents"
HOMEPAGE="http://www.pdfsam.org/"
SRC_URI="http://ftp.mars.arge.at/pub/${MY_P}-build-src.zip
mirror://sourceforge/${PN}/${MY_P}-out-src.zip"
LICENSE="GPL-2.1"
SLOT="1.3"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
IUSE=""
S="${WORKDIR}"
COMMON_DEP="=dev-java/jcmdline-1.0*
>=dev-java/itext-2.0.4
>=dev-java/jaxen-1.0
>=dev-java/bcmail-1.35
>=dev-java/bcprov-1.35
>=dev-java/jgoodies-looks-2.0
>=dev-java/dom4j-1.5"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.5
sys-devel/gettext
app-arch/unzip
${COMMON_DEP}"
src_unpack() {
unpack ${A}
cd ${S}
java-pkg_jarfrom jcmdline-1.0
java-pkg_jarfrom itext
java-pkg_jarfrom dom4j-1
java-pkg_jarfrom jaxen-1.1
java-pkg_jarfrom bcmail
java-pkg_jarfrom bcprov
java-pkg_jarfrom jgoodies-looks-2.0
}
src_compile() {
eant -Dbuild.dir=${S}/build \
-Dsrc.dir=${S} \
-Djcmdline.location=${S} \
-Ditext.location=${S} \
-Ddom4j.location=${S} \
-Djaxen.location=${S} \
-Dbcmail.location=${S} \
-Dbcprov.location=${S} \
-Djgoodies-looks.location=${S} ${antflags}
use doc && eant -Dbuild.dir=${S}/build \
-Dsrc.dir=${S} \
-Djcmdline.location=${S} \
-Ditext.location=${S} \
-Ddom4j.location=${S} \
-Djaxen.location=${S} \
-Dbcmail.location=${S} \
-Dbcprov.location=${S} \
-Djgoodies-looks.location=${S} ${antflags} javadoc
}
src_install() {
insinto /usr/share/${PN}-${SLOT}/lib
doins ${S}/dist/pdfsam-maine/*.xml
java-pkg_newjar ${S}/dist/pdfsam-maine/pdfsam-*.jar pdfsam.jar
java-pkg_newjar ${S}/dist/pdfsam-maine/lib/pdfsam-console-*.jar pdfsam-console.jar
java-pkg_newjar ${S}/dist/pdfsam-maine/lib/pdfsam-langpack-*.jar pdfsam-langpack.jar
for plugins in merge cover split encrypt mix
do
java-pkg_jarinto /usr/share/${PN}-${SLOT}/lib/plugins/${plugins}
insinto /usr/share/${PN}-${SLOT}/lib/plugins/${plugins}
java-pkg_dojar ${S}/dist/pdfsam-maine/plugins/${plugins}/*.jar
doins ${S}/dist/pdfsam-maine/plugins/${plugins}/*.xml
done
java-pkg_dolauncher ${PN} --main it.pdfsam.GUI.MainGUI --pwd "/usr/share/${PN}-${SLOT}/lib"
newicon ${S}/pdfsam-maine/images/pdf.png pdfsam.png
make_desktop_entry ${PN} "PDF Split & Merge" pdfsam.png Application
dodoc pdfsam-maine/doc/* || die
use doc && java-pkg_dojavadoc dist/pdfsam-javadoc
}