/[gentoo-x86]/dev-java/cacao/cacao-0.99.4.ebuild
Gentoo

Contents of /dev-java/cacao/cacao-0.99.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Jun 14 21:25:44 2012 UTC (2 years, 6 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
Update HOMEPAGE.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/cacao/cacao-0.99.4.ebuild,v 1.6 2011/12/18 08:08:44 sera Exp $
4
5 EAPI=2
6 AUTOTOOLS_AUTO_DEPEND="no"
7
8 inherit autotools eutils flag-o-matic java-pkg-2 java-vm-2
9
10 DESCRIPTION="Cacao Java Virtual Machine"
11 HOMEPAGE="http://www.cacaojvm.org/"
12 SRC_URI="http://www.complang.tuwien.ac.at/cacaojvm/download/${P}/${P}.tar.bz2"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16 IUSE="test"
17 CLASSPATH_SLOT=0.98
18 COMMON_DEPEND="
19 dev-java/gnu-classpath:${CLASSPATH_SLOT}
20 || ( dev-java/eclipse-ecj dev-java/ecj-gcj )
21 "
22 RDEPEND="${COMMON_DEPEND}"
23 DEPEND="${COMMON_DEPEND}
24 test? (
25 dev-java/junit:4
26 ${AUTOTOOLS_DEPEND}
27 )
28 "
29
30 CLASSPATH_DIR=/usr/gnu-classpath-${CLASSPATH_SLOT}
31
32 src_prepare() {
33 if use test; then
34 sed -ie "s:/usr/share/java/junit4.jar:$(java-config -p junit-4):" \
35 ./tests/regression/bugzilla/Makefile.am \
36 ./tests/regression/base/Makefile.am || die "sed failed"
37 eautoreconf
38 fi
39 }
40
41 src_configure() {
42 # A compiler can be forced with the JAVAC variable if needed
43 unset JAVAC
44 append-flags -fno-strict-aliasing
45 econf --bindir=/usr/${PN}/bin \
46 --libdir=/usr/${PN}/lib \
47 --datarootdir=/usr/${PN}/share \
48 --disable-dependency-tracking \
49 --with-java-runtime-library-prefix=${CLASSPATH_DIR}
50 }
51
52 src_compile() {
53 default
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install || die "make install failed"
58 dodir /usr/bin
59 dosym /usr/${PN}/bin/cacao /usr/bin/cacao || die
60 dodoc AUTHORS ChangeLog* NEWS README || die "failed to install docs"
61
62 for files in ${CLASSPATH_DIR}/bin/g*; do
63 dosym $files \
64 /usr/${PN}/bin/$(echo $files|sed "s#$(dirname $files)/g##") || die
65 done
66
67 dodir /usr/${PN}/jre/lib
68 dosym ${CLASSPATH_DIR}/share/classpath/glibj.zip /usr/${PN}/jre/lib/rt.jar
69 dodir /usr/${PN}/lib
70 dosym ${CLASSPATH_DIR}/share/classpath/tools.zip /usr/${PN}/lib/tools.jar
71
72 dosym /usr/bin/ecj /usr/${PN}/bin/javac || die
73
74 local libarch="${ARCH}"
75 [ ${ARCH} == x86 ] && libarch="i386"
76 [ ${ARCH} == x86_64 ] && libarch="amd64"
77 dodir /usr/${PN}/jre/lib/${libarch}/client
78 dodir /usr/${PN}/jre/lib/${libarch}/server
79 dosym /usr/${PN}/lib/libjvm.so /usr/${PN}/jre/lib/${libarch}/client/libjvm.so
80 dosym /usr/${PN}/lib/libjvm.so /usr/${PN}/jre/lib/${libarch}/server/libjvm.so
81 dosym ${CLASSPATH_DIR}/lib/classpath/libjawt.so /usr/${PN}/jre/lib/${libarch}/libjawt.so
82 set_java_env
83 }

  ViewVC Help
Powered by ViewVC 1.1.20