summaryrefslogtreecommitdiff
path: root/pcr/java-qdox
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-09-14 22:07:12 -0500
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-09-22 16:15:04 -0300
commita650e3b6735f5a963606ce463eb2e0d97ebc8601 (patch)
treeb78201399d09d798288cfac5864259c50e56b1cf /pcr/java-qdox
parentc3334377eb71906d8e19d7a23743bbf3af5002d2 (diff)
downloadabslibre-a650e3b6735f5a963606ce463eb2e0d97ebc8601.tar.gz
abslibre-a650e3b6735f5a963606ce463eb2e0d97ebc8601.tar.bz2
abslibre-a650e3b6735f5a963606ce463eb2e0d97ebc8601.zip
java-qdox: add new package to [pcr]
Diffstat (limited to 'pcr/java-qdox')
-rw-r--r--pcr/java-qdox/PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/pcr/java-qdox/PKGBUILD b/pcr/java-qdox/PKGBUILD
new file mode 100644
index 000000000..1b7bd2ef6
--- /dev/null
+++ b/pcr/java-qdox/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_pkgname=qdox
+pkgname=java-${_pkgname}
+pkgver=1.12.1
+pkgrel=1
+pkgdesc="Quickly parses declarations and Javadoc from Java source"
+arch=('any')
+url="http://qdox.codehaus.org"
+license=('APACHE')
+depends=('java-runtime')
+makedepends=('apache-ant' 'jh' 'junit')
+source=("http://repo1.maven.org/maven2/com/thoughtworks/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}-sources.jar"
+ "http://repo1.maven.org/maven2/com/thoughtworks/${_pkgname}/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.pom")
+md5sums=('153ec1212a9fcf7986cd61909c05fd5b'
+ 'ac2b4b3cfe6d594797940ba73f140cf7')
+
+prepare() {
+ cd ${srcdir}
+ mkdir -p "build/classes"
+}
+
+build() {
+ cd ${srcdir}
+
+ CLASSPATH="/opt/apache-ant/lib/ant.jar:/usr/share/java/junit.jar"
+ javac -classpath $CLASSPATH -d "build/classes" $(find . -name \*.java)
+ javadoc -classpath $CLASSPATH -d "build/javadoc" -sourcepath . -subpackages com
+
+ jar -cvf "${_pkgname}.jar" -C "build/classes" .
+}
+
+package() {
+ cd ${srcdir}
+
+ # Install documentation
+ install -d "${pkgdir}/usr/share/doc/${pkgname}"
+ cp -r "build/javadoc" "${pkgdir}/usr/share/doc/${pkgname}"
+
+ # Install Maven artifacts
+ export DESTDIR=${pkgdir}
+ jh mvn-install "com.thoughtworks.qdox" ${_pkgname} ${pkgver} \
+ "${srcdir}/${_pkgname}-${pkgver}.pom" \
+ "${srcdir}/${_pkgname}.jar" \
+ "${_pkgname}.jar"
+ ln -s "/usr/share/java/${_pkgname}.jar" \
+ "${pkgdir}/usr/share/java/${_pkgname}-${pkgver}.jar"
+} \ No newline at end of file