summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2019-09-25 19:23:24 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2019-09-25 19:26:14 +0200
commit0ffc08a8f196ff9600fba4c127804269534a2f55 (patch)
treef6fac10229ffe34f77a7edf93c839f59a8e0edaf /dev-java
parentdev-java/jackson-2.9.10: bump (diff)
downloadgentoo-0ffc08a8f196ff9600fba4c127804269534a2f55.tar.gz
gentoo-0ffc08a8f196ff9600fba4c127804269534a2f55.tar.bz2
gentoo-0ffc08a8f196ff9600fba4c127804269534a2f55.zip
dev-java/jackson-annotations-2.9.10: bump
Bug: https://bugs.gentoo.org/695532 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jackson-annotations/Manifest1
-rw-r--r--dev-java/jackson-annotations/jackson-annotations-2.9.10.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-java/jackson-annotations/Manifest b/dev-java/jackson-annotations/Manifest
index bb4e9b6f54d4..99795f11eca5 100644
--- a/dev-java/jackson-annotations/Manifest
+++ b/dev-java/jackson-annotations/Manifest
@@ -1 +1,2 @@
DIST jackson-annotations-2.8.5.tar.gz 44906 BLAKE2B bea484d1b7b7312ff83f87f373fdcecb718b62f1d694ee687df8da7d3f09d70007bc4a6da111a57bed14b2a7921c71825b966f6709f3e143ce9f6fbf6069b45a SHA512 2d98a51c0e3b44e3ac2fe47647b0c7499d7b978cd46df275807e3802ba877717a6c2f620edfe581f31ef947de7096950816104250989eebf029d7a5bf1b53381
+DIST jackson-annotations-2.9.10.tar.gz 57322 BLAKE2B 85e3ac040e3adc986fa7b2a1892bb536ff2b46415af9390a6ec4e59bc9770b2bced4fd80edffc7b2083853b0b1bb5022dde137fda7e9920ec27e3fa54858e5fc SHA512 27c28e9453570aab4758031d406bfc8b8ba0eb443dcd0a884d6098840e5b577b2628288daf10e9de6ce5d1e4da2f4b8e4ec36a6559233e012725a906c4da21b9
diff --git a/dev-java/jackson-annotations/jackson-annotations-2.9.10.ebuild b/dev-java/jackson-annotations/jackson-annotations-2.9.10.ebuild
new file mode 100644
index 000000000000..ea9864354038
--- /dev/null
+++ b/dev-java/jackson-annotations/jackson-annotations-2.9.10.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Annotations for the Java Jackson data processor"
+HOMEPAGE="https://github.com/FasterXML/jackson-annotations"
+SRC_URI="https://github.com/FasterXML/${PN}/archive/${PN}-${PV}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=virtual/jre-1.7"
+
+DEPEND=">=virtual/jdk-1.7
+ test? ( dev-java/junit:4 )"
+
+S="${WORKDIR}/${PN}-${P}"
+JAVA_SRC_DIR="src/main/java"
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README.md release-notes/VERSION
+}
+
+src_compile() {
+ java-pkg-simple_src_compile
+ java-pkg_addres ${PN}.jar src/main/resources
+}
+
+src_test() {
+ cd src/test/java || die
+
+ local CP=".:${S}/${PN}.jar:$(java-pkg_getjars junit-4)"
+ local TESTS=$(find * -name "*Test.java")
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -cp "${CP}" -d . $(find * -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}