aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS├ębastien Fabbro <sebfabbro@gmail.com>2012-05-14 23:30:49 +0100
committerS├ębastien Fabbro <sebfabbro@gmail.com>2012-05-14 23:30:49 +0100
commitc6cd18d09c0ec47d6804ddabfa685a6bae4d34f2 (patch)
tree6bd250bcaf3539237238ea04f7ab444c1079d4b2 /dev-java/jlatexmath-fop/jlatexmath-fop-0.9.7.ebuild
parentdev-java/jlatexmath: Version bump (diff)
downloadsci-c6cd18d09c0ec47d6804ddabfa685a6bae4d34f2.tar.gz
sci-c6cd18d09c0ec47d6804ddabfa685a6bae4d34f2.tar.bz2
sci-c6cd18d09c0ec47d6804ddabfa685a6bae4d34f2.zip
dev-java/jlatexmath-fop: Version bump
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-java/jlatexmath-fop/jlatexmath-fop-0.9.7.ebuild')
-rw-r--r--dev-java/jlatexmath-fop/jlatexmath-fop-0.9.7.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-java/jlatexmath-fop/jlatexmath-fop-0.9.7.ebuild b/dev-java/jlatexmath-fop/jlatexmath-fop-0.9.7.ebuild
new file mode 100644
index 000000000..0641c214c
--- /dev/null
+++ b/dev-java/jlatexmath-fop/jlatexmath-fop-0.9.7.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+JAVA_PKG_IUSE="examples source"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PN="${PN/-fop/}"
+MY_P="${P/-fop/}"
+
+DESCRIPTION="jlatexmath plugin for dev-java/fop"
+SRC_URI="http://forge.scilab.org/upload/jlatexmath/files/${MY_PN}-src-all-${PV}.zip"
+HOMEPAGE="http://forge.scilab.org/index.php/p/jlatexmath"
+
+IUSE=""
+CDEPEND="dev-java/jlatexmath
+ dev-java/avalon-framework
+ dev-java/fop"
+REPEND=">=virtual/jdk-1.5
+ ${CDEPEND}"
+RDEPEND=">=virtual/jre-1.5
+ ${CDEPEND}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+EANT_BUILD_TARGET="buildJar"
+
+S="${WORKDIR}/${MY_P}/plugin/fop"
+
+src_prepare() {
+ cd "${WORKDIR}/${MY_P}"
+ sed -i \
+ -e "s:/usr/share/java/fop.jar:$(java-pkg_getjar fop fop.jar):g" \
+ -e "s:/usr/share/java/xmlgraphics-commons.jar:$(java-pkg_getjar xmlgraphics-commons-1.3 xmlgraphics-commons.jar):g" \
+ -e "s:/usr/share/java/batik.jar:$(java-pkg_getjar batik-1.7 batik-all.jar):g" \
+ -e "s:/usr/share/java/avalon-framework.jar:$(java-pkg_getjar avalon-framework-4.2 avalon-framework.jar):g" \
+ -e "s:/usr/share/java/commons-io.jar:$(java-pkg_getjar commons-io-1 commons-io.jar):g" \
+ -e "s:/usr/share/java/commons-logging.jar:$(java-pkg_getjar commons-logging commons-logging.jar):g" \
+ -e "s:/usr/share/java/xml-apis-ext.jar:$(java-pkg_getjar xml-commons-external-1.3 xml-apis-ext.jar):g" \
+ fop.properties || die
+}
+
+src_install() {
+ java-pkg_newjar dist/${P}.jar ${PN}.jar
+ use source && java-pkg_dosrc src/org
+ use examples && java-pkg_doexamples examples
+}