aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tom111@gmx.de>2010-09-30 23:01:07 +0200
committerThomas Kahle <tom111@gmx.de>2010-09-30 23:01:07 +0200
commit4dd1f513f66dbd2876e62fdf01b59f7641da51b7 (patch)
tree93b0a57be03c655e94bc44f29fb159ede12ae1be /dev-java/jlatexmath-fop/jlatexmath-fop-0.9.3.ebuild
parentdev-java/jlatexmath bump due to Dmitry S. Kulyabov in bug #301048 (diff)
downloadsci-4dd1f513f66dbd2876e62fdf01b59f7641da51b7.tar.gz
sci-4dd1f513f66dbd2876e62fdf01b59f7641da51b7.tar.bz2
sci-4dd1f513f66dbd2876e62fdf01b59f7641da51b7.zip
Initial upload of dev-java/jlatexmat-fop
Ebuild by Dmitry S. Kulyabov in bug 301048
Diffstat (limited to 'dev-java/jlatexmath-fop/jlatexmath-fop-0.9.3.ebuild')
-rw-r--r--dev-java/jlatexmath-fop/jlatexmath-fop-0.9.3.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-java/jlatexmath-fop/jlatexmath-fop-0.9.3.ebuild b/dev-java/jlatexmath-fop/jlatexmath-fop-0.9.3.ebuild
new file mode 100644
index 000000000..79f70b426
--- /dev/null
+++ b/dev-java/jlatexmath-fop/jlatexmath-fop-0.9.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="jlatexmath plugin for dev-java/fop"
+SRC_URI="http://forge.scilab.org/index.php/p/jlatexmath/downloads/136/get/ -> jlatexmath-src-all-${PV}.jar"
+HOMEPAGE="http://forge.scilab.org/index.php/p/jlatexmath"
+
+IUSE="doc examples source"
+DEPEND=">=virtual/jdk-1.5
+ dev-java/jlatexmath
+ dev-java/avalon-framework
+ dev-java/fop"
+RDEPEND=${DEPEND}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+EANT_BUILD_TARGET="buildJar"
+EANT_DOC_TARGET="doc"
+
+S="${WORKDIR}"/plugin/fop
+
+src_prepare() {
+ cd "${WORKDIR}"
+ 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
+}
+
+src_install() {
+ java-pkg_newjar dist/${P}.jar ${PN}.jar
+ use doc && java-pkg_dojavadoc doc
+ use source && java-pkg_dosrc src/org
+}