Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/jamvm: ChangeLog jamvm-1.5.0-r3.ebuild
Date: Thu, 04 Jun 2009 06:43:13
Message-Id: E1MC6fP-0001lu-7c@stork.gentoo.org
1 ssuominen 09/06/04 06:43:11
2
3 Modified: ChangeLog
4 Added: jamvm-1.5.0-r3.ebuild
5 Log:
6 Convert to virtual/libffi wrt #272051
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.35 dev-java/jamvm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?rev=1.35&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?rev=1.35&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?r1=1.34&r2=1.35
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v
19 retrieving revision 1.34
20 retrieving revision 1.35
21 diff -u -r1.34 -r1.35
22 --- ChangeLog 7 Mar 2009 14:37:20 -0000 1.34
23 +++ ChangeLog 4 Jun 2009 06:43:11 -0000 1.35
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-java/jamvm
26 -# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.34 2009/03/07 14:37:20 betelgeuse Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.35 2009/06/04 06:43:11 ssuominen Exp $
30 +
31 +*jamvm-1.5.0-r3 (04 Jun 2009)
32 +
33 + 04 Jun 2009; Samuli Suominen <ssuominen@g.o>
34 + +jamvm-1.5.0-r3.ebuild:
35 + Convert to virtual/libffi wrt #272051
36
37 07 Mar 2009; Petteri Räty <betelgeuse@g.o> jamvm-1.5.0-r2.ebuild:
38 Migrate to EAPI 2.
39
40
41
42 1.1 dev-java/jamvm/jamvm-1.5.0-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: jamvm-1.5.0-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r3.ebuild,v 1.1 2009/06/04 06:43:11 ssuominen Exp $
52
53 EAPI=2
54
55 inherit autotools eutils flag-o-matic multilib java-vm-2
56
57 DESCRIPTION="An extremely small and specification-compliant virtual machine."
58 HOMEPAGE="http://jamvm.sourceforge.net/"
59 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="debug libffi"
65
66 CLASSPATH_SLOT=0.97
67 DEPEND="
68 dev-java/gnu-classpath:${CLASSPATH_SLOT}
69 libffi? ( virtual/libffi )
70 amd64? ( virtual/libffi )
71 "
72 RDEPEND="${DEPEND}"
73 PDEPEND="dev-java/ant-eclipse-ecj:3.3 dev-java/gjdoc"
74
75 src_prepare() {
76 epatch "${FILESDIR}/classes-location.patch"
77 eautoreconf
78
79 # These come precompiled.
80 # configure script uses detects the compiler
81 # from PATH. I guess we should compile this from source.
82 # Then just make sure not to hit
83 # https://bugs.gentoo.org/show_bug.cgi?id=163801
84 #rm -v lib/classes.zip || die
85 }
86
87 CLASSPATH_DIR=/opt/gnu-classpath-${CLASSPATH_SLOT}
88
89 src_configure() {
90 filter-flags "-fomit-frame-pointer"
91
92 if use libffi; then
93 append-cflags "$(pkg-config --cflags-only-I libffi)"
94 fi
95
96 # Keep libjvm.so out of /usr
97 # http://bugs.gentoo.org/show_bug.cgi?id=181896
98 econf \
99 $(use_enable debug trace) \
100 --prefix=/opt/${PN} \
101 --bindir=/usr/bin \
102 --datadir=/opt \
103 $(use_enable libffi ffi) \
104 --disable-dependency-tracking \
105 --with-classpath-install-dir=${CLASSPATH_DIR}
106 }
107
108 create_launcher() {
109 local script="${D}/opt/${PN}/bin/${1}"
110 cat > "${script}" <<-EOF
111 #!/bin/sh
112 exec /usr/bin/jamvm \
113 -Xbootclasspath/p:"${CLASSPATH_DIR}/share/classpath/tools.zip" \
114 gnu.classpath.tools.${1}.Main "\$@"
115 EOF
116 chmod +x "${script}"
117 }
118
119 src_install() {
120 emake DESTDIR="${D}" install || die "installation failed."
121
122 dodoc ACKNOWLEDGEMENTS AUTHORS ChangeLog NEWS README \
123 || die "dodoc failed"
124
125 set_java_env "${FILESDIR}/${PN}-1.5.0.env"
126
127 local bindir=/opt/${PN}/bin
128 dodir ${bindir}
129 dosym /usr/bin/jamvm ${bindir}/java
130 dosym /usr/bin/ecj-3.3 ${bindir}/javac
131 dosym /usr/bin/gjdoc ${bindir}/javadoc
132 for file in ${CLASSPATH_DIR}/bin/*; do
133 base=$(basename ${file})
134 create_launcher ${base#g}
135 done
136 }