mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-java/tijmp: clean up old.
Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
# 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."
|
||||
}
|
||||
Reference in New Issue
Block a user