From: | "Vlastimil Babka (caster)" <caster@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-java/tijmp: metadata.xml ChangeLog tijmp-0.8.ebuild |
Date: | Mon, 05 Apr 2010 12:09:12 |
Message-Id: | 20100405120909.8633C2C03E@corvid.gentoo.org |
1 | caster 10/04/05 12:09:09 |
2 | |
3 | Added: metadata.xml ChangeLog tijmp-0.8.ebuild |
4 | Log: |
5 | New package based on dev-java/jmp but for the new JDK 1.6 API. Bug #233548. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-java/tijmp/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/tijmp/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/tijmp/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>java</herd> |
20 | |
21 | <longdescription> |
22 | JMP is a profiler for java that can be used to trace objects usage and |
23 | method timings. JMP uses the JVMPI interface to gather statistics |
24 | and interact with the JVM. JMP uses a GTK+ interface to show the status. |
25 | </longdescription> |
26 | |
27 | </pkgmetadata> |
28 | |
29 | |
30 | |
31 | 1.1 dev-java/tijmp/ChangeLog |
32 | |
33 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/tijmp/ChangeLog?rev=1.1&view=markup |
34 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/tijmp/ChangeLog?rev=1.1&content-type=text/plain |
35 | |
36 | Index: ChangeLog |
37 | =================================================================== |
38 | # ChangeLog for dev-java/tijmp |
39 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
40 | # $Header: /var/cvsroot/gentoo-x86/dev-java/tijmp/ChangeLog,v 1.1 2010/04/05 12:09:09 caster Exp $ |
41 | |
42 | *tijmp-0.8 (05 Apr 2010) |
43 | |
44 | 05 Apr 2010; Vlastimil Babka <caster@g.o> +tijmp-0.8.ebuild, |
45 | +files/tijmp-jni.h.patch, +metadata.xml: |
46 | New package based on dev-java/jmp but for the new JDK 1.6 API. Bug |
47 | #233548. |
48 | |
49 | |
50 | |
51 | |
52 | 1.1 dev-java/tijmp/tijmp-0.8.ebuild |
53 | |
54 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/tijmp/tijmp-0.8.ebuild?rev=1.1&view=markup |
55 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/tijmp/tijmp-0.8.ebuild?rev=1.1&content-type=text/plain |
56 | |
57 | Index: tijmp-0.8.ebuild |
58 | =================================================================== |
59 | # Copyright 1999-2010 Gentoo Foundation |
60 | # Distributed under the terms of the GNU General Public License v2 |
61 | # $Header: /var/cvsroot/gentoo-x86/dev-java/tijmp/tijmp-0.8.ebuild,v 1.1 2010/04/05 12:09:09 caster Exp $ |
62 | |
63 | EAPI=2 |
64 | |
65 | inherit autotools java-pkg-2 |
66 | |
67 | DESCRIPTION="Java Memory Profiler for java 1.6+" |
68 | HOMEPAGE="http://www.khelekore.org/jmp/tijmp/" |
69 | SRC_URI="http://www.khelekore.org/jmp/tijmp/${P}.tar.gz" |
70 | |
71 | LICENSE="GPL-3" |
72 | SLOT="0" |
73 | KEYWORDS="~amd64 ~x86" |
74 | |
75 | IUSE="" |
76 | |
77 | RDEPEND=">=virtual/jre-1.6" |
78 | DEPEND=">=virtual/jdk-1.6" |
79 | |
80 | java_prepare() { |
81 | epatch "${FILESDIR}/${PN}-jni.h.patch" |
82 | eautoreconf |
83 | } |
84 | |
85 | src_configure() { |
86 | econf --docdir="/usr/share/doc/${PF}" |
87 | } |
88 | |
89 | src_compile() { |
90 | emake || die "make failed" |
91 | } |
92 | |
93 | src_install() { |
94 | emake DESTDIR="${D}" jardir="/usr/share/${PN}/lib/" install || die |
95 | java-pkg_regjar "${D}/usr/share/${PN}/lib/${PN}.jar" |
96 | java-pkg_regso "${D}/usr/$(get_libdir)/lib${PN}.so" |
97 | |
98 | cat > "${T}/tijmp" <<-"EOF" |
99 | #!/bin/sh |
100 | java -Dtijmp.jar="$(java-config -p tijmp)" -agentlib:tijmp "${@}" |
101 | EOF |
102 | dobin "${T}/tijmp" |
103 | } |
104 | |
105 | pkg_postinst() { |
106 | einfo "For your convenience, ${PN} wrapper can be used to run java" |
107 | einfo "with profiling. Just use it in place of the 'java' command." |
108 | } |