summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-06-28 03:23:49 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-06-28 03:23:49 -0500
commit56bffade1deaafebf17b08533879cf12f53468a8 (patch)
treead38c8ff623f30cb48ae17c0d99f959e4dd95d93
parenta340f94752db95acfabb6f60376cf16b5e689d48 (diff)
downloadabslibre-56bffade1deaafebf17b08533879cf12f53468a8.tar.gz
abslibre-56bffade1deaafebf17b08533879cf12f53468a8.tar.bz2
abslibre-56bffade1deaafebf17b08533879cf12f53468a8.zip
java-naga: add new package to [pcr]
-rw-r--r--pcr/java-naga/PKGBUILD43
-rw-r--r--pcr/java-naga/naga-encoding.patch31
2 files changed, 74 insertions, 0 deletions
diff --git a/pcr/java-naga/PKGBUILD b/pcr/java-naga/PKGBUILD
new file mode 100644
index 000000000..ee312cb36
--- /dev/null
+++ b/pcr/java-naga/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_libname=naga
+pkgname=java-${_libname}
+_pkgver=3_0
+pkgver=3.0
+pkgrel=1
+pkgdesc='Simplified Java NIO asynchronous sockets'
+arch=('any')
+url='http://code.google.com/p/naga/'
+license=('MIT')
+depends=('java-runtime')
+makedepends=('apache-ant' 'git')
+source=("git+https://github.com/lerno/${_libname}"
+ 'naga-encoding.patch')
+sha1sums=('SKIP' 'bf27779084d38279e7cd8004ad4898aca50cfa87')
+
+prepare() {
+ cd ${_libname}
+ patch -Np1 -i "${srcdir}/naga-encoding.patch"
+}
+
+build() {
+ cd ${_libname}
+ ant build
+}
+
+package() {
+ cd ${_libname}
+
+ # Install documentation
+ install -d "$pkgdir/usr/share/doc/$pkgname"
+ cp -r _BUILD/docs/api "$pkgdir/usr/share/doc/$pkgname"
+
+ # Install jars
+ install -d "$pkgdir/usr/share/java"
+ for _jar in $_libname $_libname-debug $_libname-no-em; do
+ install -m644 "_DIST/$_jar-$_pkgver.jar" \
+ "$pkgdir/usr/share/java/$_jar-$_pkgver-$pkgver.jar"
+ ln -s "/usr/share/java/$_jar-$_pkgver-$pkgver.jar" \
+ "${pkgdir}/usr/share/java/$_jar-$_pkgver.jar"
+ done
+}
diff --git a/pcr/java-naga/naga-encoding.patch b/pcr/java-naga/naga-encoding.patch
new file mode 100644
index 000000000..6dadfade3
--- /dev/null
+++ b/pcr/java-naga/naga-encoding.patch
@@ -0,0 +1,31 @@
+--- naga.orig/build.xml 2016-06-28 02:24:37.091846000 -0500
++++ naga/build.xml 2016-06-28 03:01:56.505733646 -0500
+@@ -24,7 +24,8 @@
+ <javac srcdir="${main.dir}"
+ destdir="${build.classes.dir}"
+ source="1.5"
+- optimize="on"/>
++ optimize="on"
++ encoding="utf-8"/>
+ </target>
+
+ <target name="javadoc" description="Generate javadoc">
+@@ -33,7 +34,8 @@
+ author="true"
+ version="true"
+ use="true"
+- windowtitle="Naga API">
++ windowtitle="Naga API"
++ encoding="utf-8">
+ <doctitle><![CDATA[<h1>Naga</h1>]]></doctitle>
+ <tag name="todo" scope="all" description="To do:"/>
+ </javadoc>
+@@ -42,7 +44,7 @@
+ <target name="compile_debug" depends="init" description="Compile the sources with debug info">
+ <antcall target="clear_compile_dir"/>
+ <javac srcdir="${main.dir}" destdir="${build.classes.dir}" source="1.5"
+- debug="yes" debuglevel="lines,source" optimize="on"/>
++ debug="yes" debuglevel="lines,source" optimize="on" encoding="utf-8"/>
+ </target>
+
+ <!-- Creates a manifest -->