Lines 1-10
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/ecj-gcj/ecj-gcj-3.6.ebuild,v 1.1 2012/05/06 17:41:31 sera Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/ecj-gcj/ecj-gcj-3.6.ebuild,v 1.1 2012/05/06 17:41:31 sera Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit java-pkg-2 toolchain-funcs |
7 |
inherit java-pkg-2 toolchain-funcs prefix |
8 |
|
8 |
|
9 |
MY_PN="ecj" |
9 |
MY_PN="ecj" |
10 |
DMF="R-${PV}-201006080911" |
10 |
DMF="R-${PV}-201006080911" |
Lines 88-101
src_compile() {
Link Here
|
88 |
src_install() { |
88 |
src_install() { |
89 |
java-pkg_dojar ${MY_PN}.jar |
89 |
java-pkg_dojar ${MY_PN}.jar |
90 |
dobin "${FILESDIR}/${PN}-${SLOT}" |
90 |
dobin "${FILESDIR}/${PN}-${SLOT}" |
|
|
91 |
eprefixify "${ED}/usr/bin/${PN}-${SLOT}" |
91 |
use native && dolib.so ${MY_PS}.so |
92 |
use native && dolib.so ${MY_PS}.so |
92 |
} |
93 |
} |
93 |
|
94 |
|
94 |
pkg_postinst() { |
95 |
pkg_postinst() { |
95 |
if use native; then |
96 |
if use native; then |
96 |
$(gcc-config -B)/gcj-dbtool -a $(gcj-dbtool -p) \ |
97 |
$(gcc-config -B)/gcj-dbtool -a $(gcj-dbtool -p) \ |
97 |
/usr/share/${PN}-${SLOT}/lib/ecj.jar \ |
98 |
"${EPREFIX}"/usr/share/${PN}-${SLOT}/lib/ecj.jar \ |
98 |
/usr/$(get_libdir)/${MY_PN}-${SLOT}.so |
99 |
"${EPREFIX}"/usr/$(get_libdir)/${MY_PN}-${SLOT}.so |
99 |
fi |
100 |
fi |
100 |
|
101 |
|
101 |
einfo "To select between slots of ECJ..." |
102 |
einfo "To select between slots of ECJ..." |