diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/jamon |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/jamon')
-rw-r--r-- | dev-java/jamon/Manifest | 5 | ||||
-rw-r--r-- | dev-java/jamon/jamon-2.81.ebuild | 81 | ||||
-rw-r--r-- | dev-java/jamon/metadata.xml | 16 |
3 files changed, 102 insertions, 0 deletions
diff --git a/dev-java/jamon/Manifest b/dev-java/jamon/Manifest new file mode 100644 index 000000000000..d0572b0fede1 --- /dev/null +++ b/dev-java/jamon/Manifest @@ -0,0 +1,5 @@ +DIST jamonapi-2_81.tar.gz 23149879 SHA256 7b88d90fc284375cb329569570a3c125f41590c95422239aaf661a5260b8004e SHA512 09fba65aec2754f8a1b85dd7f5691b8bae5c4f1c852dd69cddb3642a594bb44baa5b6a3c611657041d6ce2cc37c824a111adeaa929761e3983d43d7080ce05b1 WHIRLPOOL f2f281c491fe80602040086844f64ddbf99ba03334f734c9ad0a3d039903c13480a21f5eaf10acd991c252a589a0f2155d651f7015a7c728d8184125e08a7a15 +EBUILD jamon-2.81.ebuild 2127 SHA256 b5e303b6516779561abec68df6ebe8b42325d8c531d0d74587a1f68ffa6e412d SHA512 8fd75fc92760bc7b32be9b06481491bcdcec606771952c323a7161bf56762ed35776f014b20afa2a38c845924769af244284d6567609725ea0cf4c5758b14a25 WHIRLPOOL cb6fe389c8cd513be255c4cdcbbe78747817485308c8ed454096fcb0393b9b7f16481bf08a1ab2f88bf6a8c629695ccb5dc5e5318623a8780d9c2e454dfe8254 +MISC ChangeLog 3087 SHA256 60230b874da6cd788de71bd4dacf87dfe4c13990d5761cc35714080ea7b48592 SHA512 840cec1505bd5c8bb85ba591f05a8ed4c9e1f9c6a4db46d16edf51c99800eb4bfb74cf9becf7a425a44f8a762b3eda1ebcb667d07b795ebfa9dd188a42523572 WHIRLPOOL 54d4ec8900db747eee3e3310464aa018e5c453e641de9a64c9301bfd25c453feee934bbd7b4c305e928cdc2a6e649c3b72a83549d9c2eac04074f5e0e2831605 +MISC ChangeLog-2015 1095 SHA256 40b372ccf15072045e60e2240abe095d16dfa358c06371599727c44f81b1b82d SHA512 f4b9b679a21f9e3292825975b2217e24abf0722cbd5e1dd1b8d40f201acf0fd795efeabd515d9c92dedaafc3b4b7c8564b410d86482b2fde3cbbbff8a6604e88 WHIRLPOOL 8f514255adb5d90d5733ea101423f7110a335f4405db8666bbee04fc0174f8cc51f383f93799d0d8eb805f68669ab9c1d2483191103947221d99d9b0577b60d4 +MISC metadata.xml 536 SHA256 c5db77f10e1ff2c3cac648d59b7bc0a4d25d629245d763a35ee05bc40b96a44e SHA512 f0a085f6e20c4f486c0a06b802030c285cf0ee5af593b4d17ae4e05a27fa63afc7e202b8a170113add4a4af82af95af0a69d01e0abf46cb8dbf5b7e136807b6b WHIRLPOOL 17bcbe1a98181db1b1231993e6af2a00e522c4ccea3098cc84b92f6a3cd630666ae467b3f1c03b79de3a9ab4bc6669b40e791a81d4e4ea9f9b3298376dc6f90b 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> |