summaryrefslogtreecommitdiff
path: root/pcr/java-guava/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-05-24 21:33:34 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-05-24 21:33:34 -0500
commitca2e99e51187a303e50c666e41d996f813107d70 (patch)
tree5b6632c45d82ee3d4be34efdf591a72eae742ccf /pcr/java-guava/PKGBUILD
parentf1c71f910fe17404977fd886321abe35a0faadff (diff)
downloadabslibre-ca2e99e51187a303e50c666e41d996f813107d70.tar.gz
abslibre-ca2e99e51187a303e50c666e41d996f813107d70.tar.bz2
abslibre-ca2e99e51187a303e50c666e41d996f813107d70.zip
java-guava-19.0-1: updating version
Diffstat (limited to 'pcr/java-guava/PKGBUILD')
-rw-r--r--pcr/java-guava/PKGBUILD28
1 files changed, 16 insertions, 12 deletions
diff --git a/pcr/java-guava/PKGBUILD b/pcr/java-guava/PKGBUILD
index 90f7aafe7..aaf5966b3 100644
--- a/pcr/java-guava/PKGBUILD
+++ b/pcr/java-guava/PKGBUILD
@@ -2,30 +2,35 @@
_pkgname=guava
pkgname=java-${_pkgname}
-pkgver=18.0
+pkgver=19.0
pkgrel=1
pkgdesc='Suite of Google common libraries for Java'
arch=('any')
url="https://github.com/google/guava"
license=('APACHE')
depends=('java-runtime')
-makedepends=('java-environment' 'java-atinject' 'jsr305' 'jh')
-source=("https://github.com/google/${_pkgname}/archive/v${pkgver}.tar.gz")
-sha256sums=('02d1cd2e97fd8e38ba32aeb5354b18df36be8a176c8a754bb0ef020cd6122e75')
+makedepends=('java-environment' 'java-animal-sniffer' 'jsr305' 'jh')
+source=("https://github.com/google/${_pkgname}/archive/v${pkgver}.tar.gz"
+ 'guava-ignore_j2objc_annotations.patch')
+sha256sums=('67a8f7a22c26bdbfc0455a3b74bdee753e170b30f3efb8437cb5aee8c62463ac'
+ 'e03f4dbfb92dcd688e5f8fd01c8fb0c2a5cb601a88af4d2aaa09afdd388e9cab')
prepare() {
cd "${srcdir}/${_pkgname}-${pkgver}"
- rm -rv {guava-gwt,guava-testlib,guava-tests}
- rm -v "${_pkgname}/lib/jdiff.jar"
+ rm -rv {guava-gwt,guava-testlib,guava-tests,util}
mkdir -p "${_pkgname}/build/classes"
+
+ patch -Np1 -i "${srcdir}/guava-ignore_j2objc_annotations.patch"
}
build() {
cd "${srcdir}/${_pkgname}-${pkgver}/${_pkgname}"
- CLASSPATH="/usr/share/java/javax.inject.jar:/usr/share/java/jsr305.jar"
- javac -cp $CLASSPATH -d "build/classes" -encoding UTF-8 $(find "src" -name \*.java)
- javadoc -classpath $CLASSPATH -d "build/javadoc" -encoding UTF-8 -sourcepath src -subpackages com
+ CLASSPATH="/usr/share/java/animal-sniffer-annotations.jar:/usr/share/java/jsr305.jar"
+ javac -cp $CLASSPATH -d "build/classes" -encoding UTF-8 \
+ $(find "src" -name \*.java)
+ javadoc -classpath $CLASSPATH -d "build/javadoc" -encoding UTF-8 \
+ -sourcepath src -subpackages com
jar -cvf "${_pkgname}.jar" -C build/classes .
}
@@ -42,14 +47,13 @@ package() {
# Install Maven artifacts
export DESTDIR=${pkgdir}
+ jh mvn-install "com.google.guava" "${_pkgname}-parent" ${pkgver} \
+ "${srcdir}/${_pkgname}-${pkgver}/pom.xml"
jh mvn-install "com.google.guava" ${_pkgname} ${pkgver} \
"pom.xml" \
"${_pkgname}.jar" \
"${_pkgname}-${pkgver}.jar"
- jh mvn-install "com.google.guava" "${_pkgname}-parent" ${pkgver} \
- "${srcdir}/${_pkgname}-${pkgver}/pom.xml"
-
ln -s "/usr/share/java/${_pkgname}-${pkgver}.jar" \
"${pkgdir}/usr/share/java/${_pkgname}.jar"
}