Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435436 - dev-java/asm-2.0-r1 : add prefix support
Summary: dev-java/asm-2.0-r1 : add prefix support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: Inclusion, InVCS, PATCH
Depends on:
Blocks: prefix-gx86
  Show dependency tree
 
Reported: 2012-09-18 17:11 UTC by Myk Taylor
Modified: 2012-10-18 12:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patched ebuild (asm-2.0-r1.ebuild,1.07 KB, patch)
2012-09-18 17:12 UTC, Myk Taylor
Details | Diff
eapi=3 patched ebuild (asm-2.0-r1.ebuild,1.10 KB, text/plain)
2012-09-21 07:44 UTC, Myk Taylor
Details
patch for asm-2.0-r1.ebuild (asm-2.0-r1.ebuild.patch,768 bytes, patch)
2012-09-21 16:32 UTC, Christoph Junghans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myk Taylor 2012-09-18 17:11:53 UTC
works with the following manual patch:

--- ../../../../portage/dev-java/asm/asm-2.0-r1.ebuild	2012-04-15 11:35:51.000000000 -0700
+++ asm-2.0-r1.ebuild	2012-09-10 09:34:35.000000000 -0700
@@ -21,7 +21,7 @@
 src_unpack() {
 	unpack ${A}
 	cd ${S}
-	echo "objectweb.ant.tasks.path /usr/share/ant-owanttask/lib/ow_util_ant_tasks.jar" \
+	echo "objectweb.ant.tasks.path ${EPREFIX}/usr/share/ant-owanttask/lib/ow_util_ant_tasks.jar" \
 		>> build.properties
 }


patched ebuild attached

Reproducible: Always
Comment 1 Myk Taylor 2012-09-18 17:12:09 UTC
Created attachment 324224 [details, diff]
patched ebuild
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2012-09-21 04:58:20 UTC
Comment on attachment 324224 [details, diff]
patched ebuild

Ebuild needs to be bumped to EAPI>=3.
Comment 3 Myk Taylor 2012-09-21 07:44:59 UTC
Created attachment 324472 [details]
eapi=3 patched ebuild

diff applied:

@@ -2,6 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-java/asm/asm-2.0-r1.ebuild,v 1.12 2012/04/15 18:11:31 vapier Exp $
 
+EAPI="3"
+
 inherit java-pkg-2 java-ant-2
 
 DESCRIPTION="Bytecode manipulation framework for Java"
@@ -21,7 +23,10 @@
 src_unpack() {
 	unpack ${A}
 	cd ${S}
-	echo "objectweb.ant.tasks.path /usr/share/ant-owanttask/lib/ow_util_ant_tasks.jar" \
+}
+
+src_prepare() {
+	echo "objectweb.ant.tasks.path ${EPREFIX}/usr/share/ant-owanttask/lib/ow_util_ant_tasks.jar" \
 		>> build.properties
 }
Comment 4 Christoph Junghans (RETIRED) gentoo-dev 2012-09-21 16:32:23 UTC
Created attachment 324518 [details, diff]
patch for asm-2.0-r1.ebuild

Changes:
- EAPI bumped
- src_unpack -> src_prepare
Comment 5 Christoph Junghans (RETIRED) gentoo-dev 2012-09-21 16:33:50 UTC
Tested on my ~x86-linux.

Reassigned to maintainer for inclusion in gx86.
Comment 6 Christoph Junghans (RETIRED) gentoo-dev 2012-10-18 12:53:16 UTC
Change added by me.