|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.22.ebuild,v 1.3 2008/05/30 18:53:54 corsair Exp $ | # $Header: /var/cvsroot/gentoo-x86/dev-util/astyle/astyle-1.22.ebuild,v 1.3 2008/05/30 18:53:54 corsair Exp $ |
| |
inherit eutils java-pkg-2 java-pkg-opt-2 toolchain-funcs |
inherit eutils java-pkg-opt-2 toolchain-funcs |
| |
DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code" | DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code" |
HOMEPAGE="http://astyle.sourceforge.net/" | HOMEPAGE="http://astyle.sourceforge.net/" |
|
|
| |
pkg_setup() { | pkg_setup() { |
if use java ; then | if use java ; then |
java-pkg-2_pkg_setup |
java-pkg-opt-2_pkg_setup |
| |
if use x86; then | if use x86; then |
jvmarch=i386 | jvmarch=i386 |
|
|
buildgcc/Makefile || die "sed failed" | buildgcc/Makefile || die "sed failed" |
fi | fi |
# Fix JAVA_HOME | # Fix JAVA_HOME |
sed -i -e \ |
if use java; then |
"s:/usr/lib/jvm/java-6-sun-1.6.0.00:$(java-config --jdk-home):g" \ |
sed -i -e \ |
buildgcc/Makefile || die "sed failed" |
"s:/usr/lib/jvm/java-6-sun-1.6.0.00:$(java-config --jdk-home):g" \ |
|
buildgcc/Makefile || die "sed failed" |
|
fi |
} | } |
| |
src_compile() { | src_compile() { |