app-text/pdfsam: cleanup
(Portage version: 2.2.0_alpha75-r1/git/Linux x86_64, unsigned Manifest commit)
This commit is contained in:
parent
b1390f2404
commit
e1aa6a57aa
@ -1,7 +1,14 @@
|
|||||||
# ChangeLog for app-text/pdfsam
|
# ChangeLog for app-text/pdfsam
|
||||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Header: $
|
# $Header: $
|
||||||
|
|
||||||
|
19 Nov 2011; Mario Fetka <mario.fetka@gmail.com> -pdfsam-1.3.0e_p1.ebuild,
|
||||||
|
-pdfsam-1.4.0e.ebuild, -pdfsam-1.4.1e.ebuild, -pdfsam-1.4.2e.ebuild,
|
||||||
|
-pdfsam-1.4.3e.ebuild, -pdfsam-1.5.0e.ebuild, -pdfsam-1.5.1e.ebuild,
|
||||||
|
-pdfsam-1.5.2e.ebuild, -pdfsam-1.6.0e.ebuild, -pdfsam-2.0.0e.ebuild,
|
||||||
|
-pdfsam-2.1.0e.ebuild, -pdfsam-2.2.0e.ebuild, metadata.xml:
|
||||||
|
cleanup
|
||||||
|
|
||||||
27 Aug 2010; Mario Fetka <mario.fetka@gmail.com> pdfsam-2.0.0e.ebuild,
|
27 Aug 2010; Mario Fetka <mario.fetka@gmail.com> pdfsam-2.0.0e.ebuild,
|
||||||
pdfsam-2.1.0e.ebuild, pdfsam-2.2.0e.ebuild:
|
pdfsam-2.1.0e.ebuild, pdfsam-2.2.0e.ebuild:
|
||||||
Bump
|
Bump
|
||||||
|
@ -1,30 +1,5 @@
|
|||||||
DIST icepdfcreator-0.0.7-build-src.zip 51081 RMD160 b2a0eb588d12b060a55c7f7b54ddcf6b0acc6224 SHA1 da9b432104045225871184dbe412c821b8fbe2cb SHA256 3356b7eee1056b72585f325a2961ead121e5b42451926538e192d62d3f3dca78
|
DIST icepdfcreator-0.0.7-build-src.zip 51081 RMD160 b2a0eb588d12b060a55c7f7b54ddcf6b0acc6224 SHA1 da9b432104045225871184dbe412c821b8fbe2cb SHA256 3356b7eee1056b72585f325a2961ead121e5b42451926538e192d62d3f3dca78
|
||||||
DIST pdfsam-1.3.0e-sr1-build-1-src.zip 568873 RMD160 d41ec9897a986acec7e58336d2eb03b09cf365d2 SHA1 939c1f9fed1d8d87f6aebc617f974056ae43da37 SHA256 fdece9d10195fa0c722a5b6dfe24dd30308517214f64c1a7f47be5d6ef3b1f69
|
|
||||||
DIST pdfsam-1.3.0e-sr1-out-src.zip 391942 RMD160 3c04a901323e81d8fbbca073c7016f70ec29e901 SHA1 5f8e96a275de75287a54dd02d269eefe46a29f4d SHA256 ec4b00985a0cf8e31d5f4ac5bf4e734c43808ede8f55506610354f710d3a7df7
|
|
||||||
DIST pdfsam-1.4.0e-out-src.zip 7415336 RMD160 4859f42e96b2df3c226a60f9b01e5ebde8026138 SHA1 e06e9513fbb1233d92151c4e90bd02da4735fa42 SHA256 8e24328f0cc7019120c49e82e4a9239bc4579d0eef8fd707d952a47466b12fa7
|
|
||||||
DIST pdfsam-1.4.1e-out-src.zip 7672259 RMD160 b97f2b0d6b24fe876b1e83712a4e4b6e081b9ac5 SHA1 de15d740b30bcf1ab6a5b7c9aa19fec0ecb2feb0 SHA256 d867853e0a4cf138d9eda06432f474c1a12ae7c18947c031fbbe08c945ff4deb
|
|
||||||
DIST pdfsam-1.4.2e-out-src.zip 7514304 RMD160 b6bb8f0e6ebdf3d3c1638fc4e7ed2c6e4f2a68e4 SHA1 24183aa66f5ea8eb1519c489142395c91b11a4aa SHA256 03521f24dcb45246ee73a0234e42648e15d5f334d2efc5c86c06a20117532cb9
|
|
||||||
DIST pdfsam-1.4.3e-out-src.zip 7543948 RMD160 3d64b358cdc82fb52bacda8c3f7bfd77dfd2f434 SHA1 3eed85b645fd5fae117d32b83f401acc3f577256 SHA256 d67cfe1ce41fcc33a00191a223dbd2403c4c6de84e0c6edc5249c0a759240514
|
|
||||||
DIST pdfsam-1.5.0e-out-src.zip 7932547 RMD160 805d221d10a0573e9871ae53d43cc1db713702ec SHA1 ab040f4200a5a8c35ab99e6fe9f4f22ce2a55067 SHA256 4776ea29a0ddb5b5137ccab2adcdda39d94e64d0022e6cb378d8b7a9f3397084
|
|
||||||
DIST pdfsam-1.5.1e-out-src.zip 7984695 RMD160 e0c95734b045098b30e11f6427348da45eed1f83 SHA1 9b2312718ce32456bff8e3628a25ed6a84b9fa98 SHA256 50f178b50d4c79c73141c9402259503a0727895709fb5a346a96c0542a87eb4d
|
|
||||||
DIST pdfsam-1.5.2e-out-src.zip 8074008 RMD160 573a100e8ecf0f185904897882562396cc52fd1e SHA1 dfeb197e3a94be013605f7444c6d0d04c059ccaf SHA256 c05feea2720465f00593ab68185989ab91634b863ac209f920b017778d5651a5
|
|
||||||
DIST pdfsam-1.6.0e-out-src.zip 8292751 RMD160 1cb6f62c83689788e1d6c994ca3cba69aecb7a49 SHA1 5c842bf25c56309404d4f897977db687e2ec6a9f SHA256 5e9fb8e85c2b420030a050604029e6ea2171eb18d03705d3a36c151afea047f1
|
|
||||||
DIST pdfsam-2.0.0e-rc1-out-src.zip 15527413 RMD160 1f429c853515d838ae1cc5fc5c71a4c0545a117f SHA1 213b5ff2ad607303aebd5e45645e91e8083592dd SHA256 74df948a4978b62fb8dbd84e745075b2b28429795ed5e8a0eed5be44ce41cb1a
|
|
||||||
DIST pdfsam-2.1.0e-out-src.zip 16861177 RMD160 6357d23934421fac067fe9da850d8c81d715dbd1 SHA1 33c911464271b14bef2d8b4e8db8914760e2a943 SHA256 69f160f21ab0860083752e39933f0b30b3ecee539c7fdb311ec7ade61ed59105
|
|
||||||
DIST pdfsam-2.2.0e-out-src.zip 16837896 RMD160 eb3e30c25606f9da798dee8cba860973ee190e12 SHA1 be5c68d31fc6b56c80a6b5cefbfdd1e61719e586 SHA256 84edbe336a3acb98a642b991e6e38bf40b02bddbba401461ab319c30199dac1e
|
|
||||||
DIST pdfsam-2.2.1e-out-src.zip 18214579 RMD160 3e45e2881b831cde7ca23a15e0a87e39c42fe0bf SHA1 b3dec79d4a50fa0b0b2aa2250f7d1b0c435e4dcf SHA256 30e423938d17b978fcc00942c8876880ee86a582b525628f73aeb464743ee6e1
|
DIST pdfsam-2.2.1e-out-src.zip 18214579 RMD160 3e45e2881b831cde7ca23a15e0a87e39c42fe0bf SHA1 b3dec79d4a50fa0b0b2aa2250f7d1b0c435e4dcf SHA256 30e423938d17b978fcc00942c8876880ee86a582b525628f73aeb464743ee6e1
|
||||||
EBUILD pdfsam-1.3.0e_p1.ebuild 2791 RMD160 6c541cc2c5dbd1bb8a04f6362804ae76de17e572 SHA1 c785ec57d5eaa6c0ad2e1bb65739903698d9d36f SHA256 1d6a27cb52288264bdb0d3d40d300482e77f719d5ed39485f6a14f33f0ad0cca
|
|
||||||
EBUILD pdfsam-1.4.0e.ebuild 4459 RMD160 340a1de86a1d9117b4dcef53d098d1d28ad14540 SHA1 ad1ec2c18c9757d4944504cf5a109ca72d0697d2 SHA256 c15ebeb0ebcda1ce6f2e45be8bf8c8d7584d7553dfb8c5ceb9c8f438717e5391
|
|
||||||
EBUILD pdfsam-1.4.1e.ebuild 4601 RMD160 11512062d8c55f13706ce966ac72ee522a726fce SHA1 23ae56cf251970545f1f061b8ba89ca1549bfa8b SHA256 1f0a294148607dc729a0481c88412bfffb585644be251f8dcf5aff9ce5dffebc
|
|
||||||
EBUILD pdfsam-1.4.2e.ebuild 4601 RMD160 11512062d8c55f13706ce966ac72ee522a726fce SHA1 23ae56cf251970545f1f061b8ba89ca1549bfa8b SHA256 1f0a294148607dc729a0481c88412bfffb585644be251f8dcf5aff9ce5dffebc
|
|
||||||
EBUILD pdfsam-1.4.3e.ebuild 4601 RMD160 11512062d8c55f13706ce966ac72ee522a726fce SHA1 23ae56cf251970545f1f061b8ba89ca1549bfa8b SHA256 1f0a294148607dc729a0481c88412bfffb585644be251f8dcf5aff9ce5dffebc
|
|
||||||
EBUILD pdfsam-1.5.0e.ebuild 4854 RMD160 da081ffa153648985121dcc09bd6c19c2fd5c0ba SHA1 541c215a28b97bdbced8f0121315f8dd462a2c0b SHA256 0980773c56b37a4bbaf1a845f63e00a4032a1db6eae182f00313b039adfe623a
|
|
||||||
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-1.6.0e.ebuild 5033 RMD160 256cab2398ed80eca9a8ed8b50a6228b0aafc6d0 SHA1 3ddbf651069050247ef33f5bde60a297241d16b3 SHA256 f8a3fe4fb282e188659ffaa6feee3840e3e242c92e44a670afe6f3ae24491aee
|
|
||||||
EBUILD pdfsam-2.0.0e.ebuild 6345 RMD160 906d8aaf1c14980095c1e7070c690ac830f95169 SHA1 2abe07a058da07f4059c8156cf9fe548bf04d313 SHA256 0c7d400afa85da66c63ed44c47e3c2136371bc84f66bb30680eb727a022b5729
|
|
||||||
EBUILD pdfsam-2.1.0e.ebuild 6722 RMD160 85bf1df93601c1d5b1c5cf79e6ebfaa919160761 SHA1 fc81001c89628c885622f4b69ed2450c1cf80eb4 SHA256 c4f4475d07cd594b1afa8d726dd6b4750ae6cae5cabfe4bfa1651e6a7796d459
|
|
||||||
EBUILD pdfsam-2.2.0e.ebuild 6728 RMD160 f5083aaed228be936e31d64a5805b74d493bd516 SHA1 0722b35779de0d69accee836b818c2a63db47cd8 SHA256 e0074b09f9d5ba3a1edb2cbbb17a996d7aad7bb53564b12a9a400c6df1e8099c
|
|
||||||
EBUILD pdfsam-2.2.1e.ebuild 8034 RMD160 503883a63f92807a713537e31ee0ea6a23a9461a SHA1 6682ac6acf78209fae28aab08f6cb42fb9ae8899 SHA256 7de5c5f2d86f07a0347a48172685504c225f5b76584fe24393173864f112183b
|
EBUILD pdfsam-2.2.1e.ebuild 8034 RMD160 503883a63f92807a713537e31ee0ea6a23a9461a SHA1 6682ac6acf78209fae28aab08f6cb42fb9ae8899 SHA256 7de5c5f2d86f07a0347a48172685504c225f5b76584fe24393173864f112183b
|
||||||
MISC ChangeLog 2924 RMD160 ffd228a5372039ad9190ae36c1e6cc12a68e2e9b SHA1 7859ba515857f258940cac89c82c093a940f6ecb SHA256 f08fd445d57da3f1049dfdf978cf4a16b3a65543710634f970bb1362ea3d9be8
|
MISC ChangeLog 3287 RMD160 501db7b9df3767ca9c9493148704274b1e0cacab SHA1 daafab2c31e0575815c5613ddbe84ec9efa5074e SHA256 32d9874b583769df3f3b49e010a7a990ad8b3ed55a95b3e633d8e92f025699a1
|
||||||
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
|
MISC metadata.xml 205 RMD160 f85e91d792c694cb3e45fac26295dba0e6e43786 SHA1 3f13c3b49579342e2308323aa3dda2f43dd94c23 SHA256 9fdfc9c91107d94feb8416adc2cec7734fa27084bff83ea859938b3216e028bc
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<herd>maintainer-wanted</herd>
|
<maintainer>
|
||||||
|
<email>mario.fetka@gmail.com</email>
|
||||||
|
</maintainer>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,96 +0,0 @@
|
|||||||
# Copyright 1999-2008 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
|
|
||||||
|
|
||||||
MY_P="${P/_p/-sr}"
|
|
||||||
MY_BV="1"
|
|
||||||
|
|
||||||
DESCRIPTION="A free open source tool to split and merge pdf documents"
|
|
||||||
HOMEPAGE="http://www.pdfsam.org/"
|
|
||||||
SRC_URI="http://ftp.disconnected-by-peer.at/pub/${MY_P}-build-${MY_BV}-src.zip
|
|
||||||
mirror://sourceforge/${PN}/${MY_P}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.3"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"
|
|
||||||
|
|
||||||
COMMON_DEP="dev-java/jcmdline:1.0
|
|
||||||
dev-java/itext
|
|
||||||
dev-java/jaxen:1.1
|
|
||||||
dev-java/bcmail
|
|
||||||
dev-java/bcprov
|
|
||||||
dev-java/jgoodies-looks:2.0
|
|
||||||
dev-java/dom4j:1"
|
|
||||||
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}-${SLOT} --main it.pdfsam.GUI.MainGUI --pwd "/usr/share/${PN}-${SLOT}/lib"
|
|
||||||
java-pkg_dolauncher ${PN}-console-${SLOT} --main it.pdfsam.console.MainConsole --pwd "/usr/share/${PN}-${SLOT}/lib"
|
|
||||||
|
|
||||||
newicon "${S}"/pdfsam-maine/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${SLOT}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
dodoc pdfsam-maine/doc/* || die
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc dist/pdfsam-javadoc
|
|
||||||
}
|
|
@ -1,111 +0,0 @@
|
|||||||
# Copyright 1999-2008 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
RDEPEND=">=virtual/jre-1.5
|
|
||||||
${COMMON_DEP}"
|
|
||||||
DEPEND=">=virtual/jdk-1.5
|
|
||||||
sys-devel/gettext
|
|
||||||
app-arch/unzip
|
|
||||||
${COMMON_DEP}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
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-encrypt pdfsam-merge pdfsam-split pdfsam-cover pdfsam-langpack pdfsam-maine pdfsam-mix
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${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 "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-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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine/ant/build.xml
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins "${S}"/build/pdfsam-maine/release/dist/pdfsam-enhanced/*.xml
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine/release/dist/pdfsam-enhanced/lib/emp4j.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}"/build/pdfsam-maine/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins "${S}"/build/pdfsam-maine/release/dist/pdfsam-enhanced/plugins/${plugins}/*.xml
|
|
||||||
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 "${S}"/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/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc "${S}"/build/pdfsam-maine/apidocs
|
|
||||||
}
|
|
@ -1,112 +0,0 @@
|
|||||||
# Copyright 1999-2008 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
RDEPEND=">=virtual/jre-1.5
|
|
||||||
${COMMON_DEP}"
|
|
||||||
DEPEND=">=virtual/jdk-1.5
|
|
||||||
sys-devel/gettext
|
|
||||||
app-arch/unzip
|
|
||||||
${COMMON_DEP}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
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-br1 pdfsam-encrypt pdfsam-merge pdfsam-split pdfsam-cover pdfsam-langpack pdfsam-maine-br1 pdfsam-mix
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "template.dir=${S}/template-enhanced-1" >> ${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 "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-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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/*.xml
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/emp4j.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}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.xml
|
|
||||||
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 "${S}"/pdfsam-maine-br1/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine-br1/doc/enhanced/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc "${S}"/build/pdfsam-maine-br1/apidocs
|
|
||||||
}
|
|
@ -1,112 +0,0 @@
|
|||||||
# Copyright 1999-2008 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
RDEPEND=">=virtual/jre-1.5
|
|
||||||
${COMMON_DEP}"
|
|
||||||
DEPEND=">=virtual/jdk-1.5
|
|
||||||
sys-devel/gettext
|
|
||||||
app-arch/unzip
|
|
||||||
${COMMON_DEP}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
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-br1 pdfsam-encrypt pdfsam-merge pdfsam-split pdfsam-cover pdfsam-langpack pdfsam-maine-br1 pdfsam-mix
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "template.dir=${S}/template-enhanced-1" >> ${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 "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-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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/*.xml
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/emp4j.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}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.xml
|
|
||||||
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 "${S}"/pdfsam-maine-br1/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine-br1/doc/enhanced/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc "${S}"/build/pdfsam-maine-br1/apidocs
|
|
||||||
}
|
|
@ -1,112 +0,0 @@
|
|||||||
# Copyright 1999-2008 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
RDEPEND=">=virtual/jre-1.5
|
|
||||||
${COMMON_DEP}"
|
|
||||||
DEPEND=">=virtual/jdk-1.5
|
|
||||||
sys-devel/gettext
|
|
||||||
app-arch/unzip
|
|
||||||
${COMMON_DEP}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
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-br1 pdfsam-encrypt pdfsam-merge pdfsam-split pdfsam-cover pdfsam-langpack pdfsam-maine-br1 pdfsam-mix
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "template.dir=${S}/template-enhanced-1" >> ${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 "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-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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/*.xml
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/emp4j.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}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.xml
|
|
||||||
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 "${S}"/pdfsam-maine-br1/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine-br1/doc/enhanced/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc "${S}"/build/pdfsam-maine-br1/apidocs
|
|
||||||
}
|
|
@ -1,114 +0,0 @@
|
|||||||
# 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
RDEPEND=">=virtual/jre-1.5
|
|
||||||
${COMMON_DEP}"
|
|
||||||
DEPEND=">=virtual/jdk-1.5
|
|
||||||
sys-devel/gettext
|
|
||||||
app-arch/unzip
|
|
||||||
${COMMON_DEP}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
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-br1 pdfsam-mix
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "template.dir=${S}/template-enhanced-1" >> ${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 "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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/*.xml
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/emp4j.jar
|
|
||||||
|
|
||||||
for plugins in decrypt encrypt merge unpack split setviewer cover mix
|
|
||||||
do
|
|
||||||
java-pkg_jarinto /usr/share/${PN}-${SLOT}/lib/plugins/${plugins}
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib/plugins/${plugins}
|
|
||||||
|
|
||||||
java-pkg_dojar "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins "${S}"/build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.xml
|
|
||||||
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 "${S}"/pdfsam-maine-br1/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine-br1/doc/enhanced/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc "${S}"/build/pdfsam-maine-br1/apidocs
|
|
||||||
}
|
|
@ -1,114 +0,0 @@
|
|||||||
# 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
RDEPEND=">=virtual/jre-1.5
|
|
||||||
${COMMON_DEP}"
|
|
||||||
DEPEND=">=virtual/jdk-1.5
|
|
||||||
sys-devel/gettext
|
|
||||||
app-arch/unzip
|
|
||||||
${COMMON_DEP}"
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
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-br1 pdfsam-mix
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "template.dir=${S}/template-enhanced-1" >> ${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 "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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/*.xml
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/emp4j.jar
|
|
||||||
|
|
||||||
for plugins in decrypt encrypt merge unpack split setviewer cover mix
|
|
||||||
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-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.xml
|
|
||||||
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-br1/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine-br1/doc/enhanced/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc build/pdfsam-maine-br1/apidocs
|
|
||||||
}
|
|
@ -1,116 +0,0 @@
|
|||||||
# 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
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-br1 \
|
|
||||||
pdfsam-maine-br1 pdfsam-mix
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "template.dir=${S}/template-enhanced-1" >> ${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 "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
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml || die "build failed"
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml javadoc || die "doc build failed"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/*.xml || die "config install failed"
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/emp4j.jar
|
|
||||||
|
|
||||||
for plugins in decrypt encrypt merge unpack split setviewer cover mix
|
|
||||||
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-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins build/pdfsam-maine-br1/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-br1/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine-br1/doc/enhanced/* || die "doc install failed"
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc build/pdfsam-maine-br1/apidocs
|
|
||||||
}
|
|
@ -1,117 +0,0 @@
|
|||||||
# 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}-out-src.zip"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="1.4"
|
|
||||||
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"
|
|
||||||
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-cover pdfsam-decrypt pdfsam-encrypt \
|
|
||||||
pdfsam-langpack-br1 pdfsam-merge pdfsam-mix pdfsam-rotate pdfsam-setviewer pdfsam-split \
|
|
||||||
pdfsam-unpack pdfsam-maine-br1
|
|
||||||
do
|
|
||||||
echo > ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam.deploy.dir=${S}/deploy" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "template.dir=${S}/template-enhanced-1" >> ${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 "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-rotate.jar.name=pdfsam-rotate" >> ${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
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml || die "build failed"
|
|
||||||
|
|
||||||
use doc && eant ${antflags} -buildfile pdfsam-maine-br1/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /usr/share/${PN}-${SLOT}/lib
|
|
||||||
doins build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/*.xml || die "config install failed"
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/pdfsam.jar
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/pdfsam-*.jar
|
|
||||||
java-pkg_dojar build/pdfsam-maine-br1/release/dist/pdfsam-enhanced/lib/emp4j.jar
|
|
||||||
|
|
||||||
for plugins in decrypt encrypt merge unpack split setviewer cover mix rotate
|
|
||||||
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-br1/release/dist/pdfsam-enhanced/plugins/${plugins}/*.jar
|
|
||||||
doins build/pdfsam-maine-br1/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-br1/images/pdf.png pdfsam-${SLOT}.png
|
|
||||||
make_desktop_entry ${PN} "PDF Split and Merge ${PV}" pdfsam-${SLOT}.png Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine-br1/doc/enhanced/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc build/pdfsam-maine-br1/apidocs
|
|
||||||
}
|
|
@ -1,148 +0,0 @@
|
|||||||
# Copyright 1999-2010 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}-rc1-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/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 jai-imageio
|
|
||||||
java-pkg_jarfrom swt-3.4
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant -buildfile pdfsam-maine/ant/build.xml || die "build failed"
|
|
||||||
|
|
||||||
use doc && eant -buildfile pdfsam-maine/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
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/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc build/pdfsam-maine/apidocs
|
|
||||||
}
|
|
@ -1,154 +0,0 @@
|
|||||||
# Copyright 1999-2010 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}-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/commons-lang:2.1
|
|
||||||
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/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-maine pdfsam-console pdfsam-cover \
|
|
||||||
pdfsam-decrypt pdfsam-docinfo pdfsam-encrypt pdfsam-langpack \
|
|
||||||
pdfsam-merge pdfsam-mix pdfsam-rotate pdfsam-setviewer pdfsam-split \
|
|
||||||
pdfsam-unpack 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 "commons-lang.jar.name=commons-lang" >> ${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
|
|
||||||
echo "pdfsam-docinfo.jar.name=pdfsam-docinfo" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam-rotate.jar.name=pdfsam-rotate" >> ${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 jai-imageio
|
|
||||||
java-pkg_jarfrom swt-3.4
|
|
||||||
java-pkg_jarfrom commons-lang-2.1
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant -buildfile pdfsam-maine/ant/build.xml || die "build failed"
|
|
||||||
|
|
||||||
use doc && eant -buildfile pdfsam-maine/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
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 cover decrypt docinfo encrypt merge mix rotate setviewer split unpack 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/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc build/pdfsam-maine/apidocs
|
|
||||||
}
|
|
@ -1,154 +0,0 @@
|
|||||||
# Copyright 1999-2010 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}-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/commons-lang:2.1
|
|
||||||
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/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
|
|
||||||
unpack ../work/${zip##*/} || die "unpacking ${zip} failed"
|
|
||||||
done
|
|
||||||
|
|
||||||
for bldprop in emp4j jcmdline pdfsam-maine pdfsam-console pdfsam-cover \
|
|
||||||
pdfsam-decrypt pdfsam-docinfo pdfsam-encrypt pdfsam-langpack \
|
|
||||||
pdfsam-merge pdfsam-mix pdfsam-rotate pdfsam-setviewer pdfsam-split \
|
|
||||||
pdfsam-unpack 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 "commons-lang.jar.name=commons-lang" >> ${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
|
|
||||||
echo "pdfsam-docinfo.jar.name=pdfsam-docinfo" >> ${S}/${bldprop}/ant/build.properties
|
|
||||||
echo "pdfsam-rotate.jar.name=pdfsam-rotate" >> ${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 jai-imageio
|
|
||||||
java-pkg_jarfrom swt-3.4
|
|
||||||
java-pkg_jarfrom commons-lang-2.1
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
eant -buildfile pdfsam-maine/ant/build.xml || die "build failed"
|
|
||||||
|
|
||||||
use doc && eant -buildfile pdfsam-maine/ant/build.xml javadoc
|
|
||||||
}
|
|
||||||
|
|
||||||
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 cover decrypt docinfo encrypt merge mix rotate setviewer split unpack 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} Office
|
|
||||||
|
|
||||||
use doc && dodoc pdfsam-maine/doc/enhanced/*
|
|
||||||
|
|
||||||
use doc && java-pkg_dojavadoc build/pdfsam-maine/apidocs
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user