diff options
author | Jaroslav Hron <jaroslav.hron@mff.cuni.cz> | 2013-03-31 13:03:48 +0200 |
---|---|---|
committer | Jaroslav Hron <jaroslav.hron@mff.cuni.cz> | 2013-03-31 13:03:48 +0200 |
commit | bb422d01d614a5d6d930351d752a27cb589c07b8 (patch) | |
tree | ad584cd13f5d92222429ba89efcaf2aaddd8b0d9 | |
parent | redmine (diff) | |
download | jxh-bb422d01d614a5d6d930351d752a27cb589c07b8.tar.gz jxh-bb422d01d614a5d6d930351d752a27cb589c07b8.tar.bz2 jxh-bb422d01d614a5d6d930351d752a27cb589c07b8.zip |
epub2pdf
-rw-r--r-- | app-text/epub2pdf/Manifest | 2 | ||||
-rw-r--r-- | app-text/epub2pdf/epub2pdf-0.5.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/app-text/epub2pdf/Manifest b/app-text/epub2pdf/Manifest new file mode 100644 index 0000000..8d58a15 --- /dev/null +++ b/app-text/epub2pdf/Manifest @@ -0,0 +1,2 @@ +DIST epub2pdf-0.5-src-all.zip 2414817 SHA256 ee0600db4f0be74584773c397bb4627e58f0bd834663bdc3e9883915a2df3fc5 SHA512 5094f042ee613eea4d6a74a554cd81f9ba38f27ec6a70a8d9833a8830556d58cbb9089a66c0a805b9a46cb77174a1d827dd766069c7804106f82b415cd533a1c WHIRLPOOL b225a92e94e5440a4a6d40d9321bc960c936bdbc66c393af1ce45ded51970733b31792e7a06a1ab44c6691be762de1cee1d40eaa80800d6cfc91a2b8868757b0 +EBUILD epub2pdf-0.5.ebuild 1119 SHA256 f0f5c2463a4aa577b278e5ad1cb52513536dae1f5c7dddafb9c67b6ff0fdec2b SHA512 84a8f10c127b8e6d17bdb7f093cef225c28f6784b3def4b7a5a04084dc9684d23b904c5d83677a648abd98c4547bf1922225afcf6d96d8d5a6863825fc36e09e WHIRLPOOL e98b50e9dd25eed83265b073db3cf73d0446b6e784551924c2827b673cada78e629789b36ab11f346c96215b60c6e38417cd049ca91da5d47bae9b3534c51ea9 diff --git a/app-text/epub2pdf/epub2pdf-0.5.ebuild b/app-text/epub2pdf/epub2pdf-0.5.ebuild new file mode 100644 index 0000000..9eb338e --- /dev/null +++ b/app-text/epub2pdf/epub2pdf-0.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="epub2pdf is a command-line tool that quickly generates PDF files +from EPUB ebooks. It allows the user to specify page size, fonts, margins, and +default paragraph alignment." +HOMEPAGE="http://epub2pdf.com/" +SRC_URI="http://epub2pdf.com/files/epub2pdf-$PV-src-all.zip" + +LICENSE="" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.6 + app-arch/unzip" +RDEPEND=">=virtual/jre-1.6 + dev-java/batik:1.7 + >=dev-java/itext-2.1.5:0 + >=dev-java/sac-1.3 + >=dev-java/saxon-6.5.5:6.5 + >=dev-java/xml-commons-resolver-1.2 + dev-java/xerces:2" + +src_unpack() { + unpack "$A" + unzip "$P-src.jar" +} + +src_compile() { + find . -name "*.java" > "${T}/src.list" + mkdir classes + ejavac -d classes -classpath \ + $(java-pkg_getjars \ + batik-1.7,itext,sac,saxon-6.5,xml-commons-resolver,xerces-2) \ + "@${T}/src.list" + cd classes + jar -cf ../$PN.jar * +} + +src_install() { + java-pkg_dojar $PN.jar + java-pkg_dolauncher $PN --main com.amphisoft.epub2pdf.Epub2Pdf +} |