summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2010-06-06 21:50:33 +0000
committerAlistair Bush <ali_bush@gentoo.org>2010-06-06 21:50:33 +0000
commit33f97e9fefba4905ea440ab82c85d61ee3377acd (patch)
treedc581555e6e909a3cbb1ac0a58ab18e952c4e2e2 /dev-java/dynalang/dynalang-0.4.ebuild
parentWhitespace (diff)
downloadgentoo-2-33f97e9fefba4905ea440ab82c85d61ee3377acd.tar.gz
gentoo-2-33f97e9fefba4905ea440ab82c85d61ee3377acd.tar.bz2
gentoo-2-33f97e9fefba4905ea440ab82c85d61ee3377acd.zip
Fix building when root.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/dynalang/dynalang-0.4.ebuild')
-rw-r--r--dev-java/dynalang/dynalang-0.4.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/dev-java/dynalang/dynalang-0.4.ebuild b/dev-java/dynalang/dynalang-0.4.ebuild
index a1fe5f4ac0a3..8f30b5c9509d 100644
--- a/dev-java/dynalang/dynalang-0.4.ebuild
+++ b/dev-java/dynalang/dynalang-0.4.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/dynalang/dynalang-0.4.ebuild,v 1.3 2010/06/06 04:46:03 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/dynalang/dynalang-0.4.ebuild,v 1.4 2010/06/06 21:50:32 ali_bush Exp $
EAPI=3
JAVA_PKG_IUSE="doc source"
+JAVA_PKG_BSFIX="off"
inherit java-pkg-2 java-ant-2
@@ -30,11 +31,13 @@ DEPEND=">=virtual/jdk-1.5
S="${WORKDIR}/${MY_P}"
-src_prepare() {
+java_prepare() {
+ cp "${FILESDIR}/build.xml" build.xml || die
+
find . -iname '*.jar' -delete
sed -i -e '/ivy:retrieve/d' build.xml || die
-
+ sed -i -e 's_\.\./ivy_ivy_' build.xml || die
sed -i -e \
's/clazz.getConstructors/(Constructor<T>[])clazz.getConstructors/' \
src/org/dynalang/mop/beans/BeanMetaobjectProtocol.java || die
@@ -53,5 +56,5 @@ src_test() {
src_install() {
java-pkg_newjar "build/${MY_P}.jar"
use doc && java-pkg_dojavadoc build/doc/javadoc
- use source && java-pkg_dosrc src/*
+ use source && java-pkg_dosrc src/org
}