diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/jamon | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/jamon')
-rw-r--r-- | dev-java/jamon/Manifest | 3 | ||||
-rw-r--r-- | dev-java/jamon/jamon-2.81.ebuild | 81 | ||||
-rw-r--r-- | dev-java/jamon/metadata.xml | 16 |
3 files changed, 100 insertions, 0 deletions
diff --git a/dev-java/jamon/Manifest b/dev-java/jamon/Manifest new file mode 100644 index 000000000000..3c3e0f30be2d --- /dev/null +++ b/dev-java/jamon/Manifest @@ -0,0 +1,3 @@ +DIST jamonapi-2_81.tar.gz 23149879 BLAKE2B 1e21c6ae849a1fec74b87614594007653ccb573b450c495396951532dfe713ab47944425f421b212e052153c84163f79f376413946d16917e0900ec5fe64be8b SHA512 09fba65aec2754f8a1b85dd7f5691b8bae5c4f1c852dd69cddb3642a594bb44baa5b6a3c611657041d6ce2cc37c824a111adeaa929761e3983d43d7080ce05b1 +EBUILD jamon-2.81.ebuild 2127 BLAKE2B f596cadc1b44a6c37b41ef0e53e1f9f4c4bd601f18b69e56a74528b5b39bfe9810ede3e7e33d9490155917cd8f186fbc377779292eec5cba77021c946d8c38ae SHA512 8fd75fc92760bc7b32be9b06481491bcdcec606771952c323a7161bf56762ed35776f014b20afa2a38c845924769af244284d6567609725ea0cf4c5758b14a25 +MISC metadata.xml 536 BLAKE2B 9dc1bf087206fa0f3490ea7dd9dfb057107dbed6bfd89ebe7c6164eea017914a34dd839cef1963dd0db71d14836a056627fcc4bb1119e601b1cb085de8dcc06f SHA512 f0a085f6e20c4f486c0a06b802030c285cf0ee5af593b4d17ae4e05a27fa63afc7e202b8a170113add4a4af82af95af0a69d01e0abf46cb8dbf5b7e136807b6b diff --git a/dev-java/jamon/jamon-2.81.ebuild b/dev-java/jamon/jamon-2.81.ebuild new file mode 100644 index 000000000000..e506a3e9809c --- /dev/null +++ b/dev-java/jamon/jamon-2.81.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +MY_PN="${PN}api" +MY_PV="${PV//./_}" +MY_P="${MY_PN}-${MY_PV}" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java API to monitor production applications" +HOMEPAGE="http://www.jamonapi.com/" +SRC_URI="https://github.com/stevensouza/${MY_PN}/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +LICENSE="BSD" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +CDEPEND="dev-java/log4j:0 + java-virtuals/interceptor-api:0 + java-virtuals/servlet-api:3.0 + www-servers/tomcat:7" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.7 + dev-db/hsqldb:0 + dev-java/jakarta-oro:2.0" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.7 + test? ( + dev-db/hsqldb:0 + dev-java/assertj-core:2 + dev-java/junit:4 + dev-java/mockito:0 + dev-java/objenesis:0 + )" + +S="${WORKDIR}/${MY_P}" +JAVA_GENTOO_CLASSPATH="interceptor-api,log4j,servlet-api-3.0,tomcat-7" +JAVA_SRC_DIR="${PN}/src/main/java" +WAR_DIR="jamon_war/src/main/webapp" + +java_prepare() { + # No Jetty or Hazelcast packaged right now and Spring is ancient. + find \( -name "*Jetty*.java" -o -name "*Hazelcast*.java" \) -exec rm -v {} + || die + rm -rv ./jamon/src/test/java/com/jamonapi/distributed/JamonDataPersisterFactoryTest.java \ + ./jamon/src/{main,test}/java/com/jamonapi/aop/spring || die + + # Keep fdsapi and xss-html-filter bundled as we lack packages. + rm -v ${WAR_DIR}/WEB-INF/lib/{hsqldb,jakarta-oro}*.jar || die +} + +src_compile() { + java-pkg-simple_src_compile + jar cf ${PN}.war -C ${WAR_DIR} . || die +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dowar ${PN}.war + dodoc designnotes.txt README.md + + # hsqldb used by JSP files, oro used by fdsapi. + java-pkg_register-dependency hsqldb,jakarta-oro-2.0 +} + +src_test() { + cd jamon/src/test/java || die + + local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars assertj-core-2,hsqldb,junit-4,mockito,objenesis,${JAVA_GENTOO_CLASSPATH})" + local TESTS=$(find * -name "*Test.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} diff --git a/dev-java/jamon/metadata.xml b/dev-java/jamon/metadata.xml new file mode 100644 index 000000000000..5256079650cb --- /dev/null +++ b/dev-java/jamon/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <longdescription> + A free, simple, high performance, thread safe, Java API that allows + developers to easily monitor production applications + </longdescription> + <upstream> + <remote-id type="github">stevensouza/jamonapi</remote-id> + <remote-id type="sourceforge">jamonapi</remote-id> + </upstream> +</pkgmetadata> |