Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91243 Details for
Bug 129773
dev-java/junit:4 rekeyword request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
junit-3.8.2.ebuild
junit-3.8.2.ebuild (text/plain), 2.44 KB, created by
Mikko Tiihonen
on 2006-07-08 14:59:03 UTC
(
hide
)
Description:
junit-3.8.2.ebuild
Filename:
MIME Type:
Creator:
Mikko Tiihonen
Created:
2006-07-08 14:59:03 UTC
Size:
2.44 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/dev-java/junit/junit-3.8.1-r1.ebuild,v 1.9 2005/08/03 19:07:58 axxo Exp $ > >inherit java-pkg-2 java-ant-2 > >MY_P=${P/-/} >S=${WORKDIR}/${MY_P} >DESCRIPTION="Simple framework to write repeatable tests" >SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip mirror://sourceforge/${PN}/${PN}3.8.1.zip" >HOMEPAGE="http://www.junit.org/" >LICENSE="CPL-1.0" >SLOT="0" >KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~ppc64" >IUSE="doc source examples" > >RDEPEND=">=virtual/jre-1.3" >DEPEND=">=virtual/jdk-1.3 > ${RDEPEND} > source? ( app-arch/zip ) > >=dev-java/ant-core-1.4 > app-arch/unzip" > ># ODDITIES: ># - the junit3.8.2.zip is missing build.xml -> use one from junit3.8.1.zip ># - + stylesheet.css and sample code > ># TODO: ># - figure how the junit jar in ant-lib could should be named ># - some way to switch between junit3 and junit4 in ant is required, otherwise ># junit3 test cases with old jre cannot be run through ant. ># -> This would propably mean that whenever a build target is java >=1.5 the ># ant script should put junit4.jar into classpath and otherwise use the ># older junit.jar > >src_unpack() { > > upack ${A} > unpack ${A/3.8../3.8.1/} > cd ${S} > > # copy missing files from previous version > unzip ../${PN}3.8.1/src.jar build.xml || die "Could not extract build.xml from junit 3.8.1 sources" > sed -i "s/3.8.1/${PV}/g" build.xml || die "Could not edit version in build.xml" > unzip ../${PN}3.8.1/src.jar stylesheet.css || die "Could not extract stylesheet.css from junit 3.8.1 sources" > cp -r ../${PN}3.8.1/junit/samples junit || die "Could not copy sample code from junit 3.8.1" > > # now extract the 3.8.2 sources last so that they override the > # above if/when the 3.8.2.zip gets fixed > unzip src.jar || die "Could not extract sources" > > # remove jars > rm -f *.jar >} > >src_compile() { > eant dist >} > >src_install() { > java-pkg_dojar ${MY_P}/${PN}.jar > > dodoc README.html cpl-v10.html > > if use examples; then > dodir /usr/share/doc/${PF}/examples/org/junit/samples/ > find junit/samples/ -name "*.class" | xargs rm > cp -r junit/samples/* ${D}/usr/share/doc/${PF}/examples/org/junit/samples/ || die "Could not install examples" > fi > > use source && java-pkg_dosrc junit > > dodir /usr/share/ant-core/lib > dosym /usr/share/${PN}-${SLOT}/lib/${PN}.jar /usr/share/ant-core/lib/junit3.jar > > use doc && java-pkg_dohtml -r doc javadoc >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 129773
:
91234
|
91243