summaryrefslogtreecommitdiff
path: root/dev-java/tijmp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/tijmp
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/tijmp')
-rw-r--r--dev-java/tijmp/Manifest7
-rw-r--r--dev-java/tijmp/files/tijmp-0.8-respect-javacflags.patch11
-rw-r--r--dev-java/tijmp/files/tijmp-jni.h.patch34
-rw-r--r--dev-java/tijmp/metadata.xml15
-rw-r--r--dev-java/tijmp/tijmp-0.8.ebuild50
5 files changed, 117 insertions, 0 deletions
diff --git a/dev-java/tijmp/Manifest b/dev-java/tijmp/Manifest
new file mode 100644
index 000000000000..cb699a63d9bf
--- /dev/null
+++ b/dev-java/tijmp/Manifest
@@ -0,0 +1,7 @@
+AUX tijmp-0.8-respect-javacflags.patch 433 SHA256 2a76beef36a00989dfcb265e56c4e0bdecfa291b2de4107dbbe97d7cb22fa7f4 SHA512 01de85f6dd0609a85faecf398de83862dc99741d7447127ae8fbd57a16ead7b1493cee0479700e1027c45c4ee5a9561352868c2a45293f29a6e2fe8ee501f972 WHIRLPOOL 0612c0c5bcb21e75b88f7200473da4cdf39278b76c4e0fc92e7e948e16822c9b9fa279cbc5f627f72758e1d11d0b0b0eb4aae38cf1f73a9f0c6201b19ff1ef41
+AUX tijmp-jni.h.patch 1121 SHA256 dbc865934f82f713a621866eb26fa06f7dadba8b15dc3ac17d9aa499965f3f20 SHA512 3733c220c23a5c252ca088f9cc8c37780193bbbc1efe12c0f21ce5c5c9a875a43c3a4947c8bd52cb4c3ede4549ba9fdc4107d1a3207a0563813fc5b351c6e2a3 WHIRLPOOL de1065dd206697e02f5474ee5f11f88b1b809be3a28932eda53527c8afea741f442a8b28b8fb0ef1b07eec07cd539774316612bf6d80c1ce32a0f4dbaf241be1
+DIST tijmp-0.8.tar.gz 347809 SHA256 e6f0bc1e4a0fff6524154d3dac0f27f4f53761977ecc67d9ce20ced8ad6aac64 SHA512 911efd93c1548db45fcf8fd924675329aa82c6853ffe93074768646d08f80f4b076f336dba0da293d1acb084a12eb62c68803fa9408e2b64b2b82ab62db1de25 WHIRLPOOL 8982f4ad381472e7dd3d4012fc5ac4b56bfc4f7e62dd1f8830dbadb1303b2544727dfcd1c9330cde3fb11b05a0a7084e487089d46129b6563eece2b5a8730a85
+EBUILD tijmp-0.8.ebuild 1129 SHA256 80cc321f59fe6966f33affbcfa98bf9f82c1e2ba817f390329b84e4409c2c337 SHA512 ecfc77ee4f96f66b6dd32c7f613646d51e037cfc534d34a9de117a10fad57399d9a352618fcef66033f2e76c1898b6a58e088ef3a96b469786c1c648c2722727 WHIRLPOOL 9303203f1450bc25a70a471cf5ca2be31ceddfd704dd32bb69ca18f0426dd83b3e35953d93f805043c859db2db60787c31c216eea48b6d431d69f576b7690ae1
+MISC ChangeLog 2622 SHA256 c9844cdf6b73ee251a7c13efbff260893b968da774bf58abc1629c5f56969ed3 SHA512 a2fb9cbd661aad3e6c721179bb87740b90bd864a967f0e78da5076842e594709cf3136ff428c19d2dd5e60a0b74c2c34b1fcc1c794332eb257802fdb781516ea WHIRLPOOL f1c8d95dedb2b009c53320a84d8abdaa5b950e7bc49c8c9ed60c15ada8961ad25745dfafa534c3a96801d0ca4b7d470ad7b183f1f238ea529de52898e9b187a9
+MISC ChangeLog-2015 892 SHA256 d148db18176c2820e169cda6b5ad00926ddc2a26ca72956d5b09e22267dc4dc8 SHA512 fd2b516c5f1c614a31990490e32ff8b8d23f3e432659a6f250b118a0982cb82fbdd54ff826d450e82d6bf5158810d4b57267e0c8b05f659a108003f944121b74 WHIRLPOOL 05a40a47e2ea8a96aa95e709b51c0c38e9f5d3952b47d760571c76e223de6ff0d0a18be70a7ef586f8f4ae331763f0e6d060a21a79407613cca787127057dbbf
+MISC metadata.xml 481 SHA256 a8d74461dbb3fb28c1d4c406cbdacb435915d1308098407a93fc70b1f220e9c4 SHA512 52940eb0d565ae1419ea5b10d90997551cf1a9accf3ae2369b37a7afbd7e5cf0a11e0fa0afa84baeeac34d516a734b779a40ffd74f06767549ae0ad82010661e WHIRLPOOL d28bc14a748a2eddfe3daeb397be5beee5a2947936eded7150f885fa30aad8e6c2b412ef15cec7fcb0a0ce3331812c878584aaaf21577afa3f672c50a460c47d
diff --git a/dev-java/tijmp/files/tijmp-0.8-respect-javacflags.patch b/dev-java/tijmp/files/tijmp-0.8-respect-javacflags.patch
new file mode 100644
index 000000000000..96902aedf4ec
--- /dev/null
+++ b/dev-java/tijmp/files/tijmp-0.8-respect-javacflags.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -18,7 +18,7 @@
+ java_files := $(foreach dir,$(dirs),$(find_files))
+ class_files := $(patsubst $(jdir)/%.java,%.class,$(java_files))
+
+-JCFLAGS := -source 1.6 -encoding ISO-8859-1 -Xlint:unchecked -deprecation
++JCFLAGS := $(JAVACFLAGS) -encoding ISO-8859-1 -Xlint:unchecked -deprecation
+
+ # standard java compilation..
+ JAVACOMPILE := $(JAVAC) $(JCFLAGS) -sourcepath $(jdir) -d $(top_builddir)
diff --git a/dev-java/tijmp/files/tijmp-jni.h.patch b/dev-java/tijmp/files/tijmp-jni.h.patch
new file mode 100644
index 000000000000..e9f18cc4ee68
--- /dev/null
+++ b/dev-java/tijmp/files/tijmp-jni.h.patch
@@ -0,0 +1,34 @@
+# Patch by Vlastimil Babka <caster@gentoo.org>
+# Some JDK's such as ibm-jdk-bin don't have jni_md.h, so make the test more robust
+--- configure.ac.orig 2009-01-10 00:29:01.000000000 +0100
++++ configure.ac 2010-04-05 12:17:35.000000000 +0200
+@@ -24,22 +24,16 @@
+ JAVA_HOME=/usr/local/jdk
+ fi
+
+-jni_md=no
+-AC_CHECK_HEADERS($JAVA_HOME/include/$java_os/jni_md.h,
+- jni_md=found)
++dnl ok, maybe we dont always need include/$java_os but we use an -I for it anyway...
++CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/$java_os"
+
+-if test $jni_md = no
+-then
+-AC_CHECK_HEADERS($JAVA_HOME/include/jni_md.h,
+- jni_md=found)
+-fi
++jni_h=no
++AC_CHECK_HEADERS($JAVA_HOME/include/jni.h,
++ jni_h=found)
+
+-if test $jni_md = no
++if test $jni_h = no
+ then
+- AC_MSG_ERROR(Does JAVA_HOME point to the java SDK directory?)
+-else
+-dnl ok, maybe we dont need include/$java_os but we use an -I for it anyway...
+- CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/$java_os"
++ AC_MSG_ERROR(Could not find jni.h. Does JAVA_HOME point to the java SDK directory?)
+ fi
+
+ AC_CHECK_HEADER($JAVA_HOME/include/jvmti.h,
diff --git a/dev-java/tijmp/metadata.xml b/dev-java/tijmp/metadata.xml
new file mode 100644
index 000000000000..517a7a99e840
--- /dev/null
+++ b/dev-java/tijmp/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+JMP is a profiler for java that can be used to trace objects usage and
+method timings. JMP uses the JVMPI interface to gather statistics
+and interact with the JVM. JMP uses a GTK+ interface to show the status.
+</longdescription>
+
+</pkgmetadata>
diff --git a/dev-java/tijmp/tijmp-0.8.ebuild b/dev-java/tijmp/tijmp-0.8.ebuild
new file mode 100644
index 000000000000..9fea8db45ca0
--- /dev/null
+++ b/dev-java/tijmp/tijmp-0.8.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit autotools java-pkg-2
+
+DESCRIPTION="Java Memory Profiler for java 1.6+"
+HOMEPAGE="http://www.khelekore.org/jmp/tijmp/"
+SRC_URI="http://www.khelekore.org/jmp/tijmp/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.6"
+DEPEND=">=virtual/jdk-1.6"
+
+java_prepare() {
+ epatch "${FILESDIR}/${PN}-jni.h.patch"
+ epatch "${FILESDIR}/${P}-respect-javacflags.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_compile() {
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" jardir="/usr/share/${PN}/lib/" install || die
+ java-pkg_regjar "${D}/usr/share/${PN}/lib/${PN}.jar"
+ java-pkg_regso "${D}/usr/$(get_libdir)/lib${PN}.so"
+
+ cat > "${T}/tijmp" <<-"EOF"
+ #!/bin/sh
+ java -Dtijmp.jar="$(java-config -p tijmp)" -agentlib:tijmp "${@}"
+EOF
+ dobin "${T}/tijmp"
+}
+
+pkg_postinst() {
+ einfo "For your convenience, ${PN} wrapper can be used to run java"
+ einfo "with profiling. Just use it in place of the 'java' command."
+}