commit:     f1c6a6236e8dc73ba1905d01cf0d4263cc818d89
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 21:44:37 2019 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sat Mar 16 19:23:42 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1c6a623

dev-java/tijmp: EAPI 6 bump.

Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-java/tijmp/files/tijmp-jni.h.patch |  4 +--
 dev-java/tijmp/tijmp-0.8-r1.ebuild     | 51 ++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 2 deletions(-)

diff --git a/dev-java/tijmp/files/tijmp-jni.h.patch 
b/dev-java/tijmp/files/tijmp-jni.h.patch
index e9f18cc4ee6..02a9b43670b 100644
--- a/dev-java/tijmp/files/tijmp-jni.h.patch
+++ b/dev-java/tijmp/files/tijmp-jni.h.patch
@@ -1,7 +1,7 @@
 # Patch by Vlastimil Babka <[email protected]>
 # 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
+--- a/configure.ac     2009-01-10 00:29:01.000000000 +0100
++++ b/configure.ac     2010-04-05 12:17:35.000000000 +0200
 @@ -24,22 +24,16 @@
    JAVA_HOME=/usr/local/jdk
  fi

diff --git a/dev-java/tijmp/tijmp-0.8-r1.ebuild 
b/dev-java/tijmp/tijmp-0.8-r1.ebuild
new file mode 100644
index 00000000000..dd16ae34286
--- /dev/null
+++ b/dev-java/tijmp/tijmp-0.8-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools java-pkg-2
+
+DESCRIPTION="Java Memory Profiler"
+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"
+
+RDEPEND="
+       >=virtual/jre-1.6"
+
+DEPEND="
+       >=virtual/jdk-1.6"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-jni.h.patch"
+       "${FILESDIR}/${P}-respect-javacflags.patch"
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_install() {
+       emake DESTDIR="${D}" jardir="/usr/share/${PN}/lib/" install
+       java-pkg_regjar "${D}/usr/share/${PN}/lib/${PN}.jar"
+       java-pkg_regso "${D}/usr/$(get_libdir)/lib${PN}.so"
+
+       cat > "${T}/${PN}" <<- "EOF" || die
+#!/usr/bin/env bash
+java -Dtijmp.jar="$(java-config -p tijmp)" -agentlib:tijmp "${@}"
+EOF
+       dobin "${T}/${PN}"
+}
+
+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."
+}

Reply via email to