Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 206115 Details for
Bug 287777
New ebuild: dev-java/hamcrest-integration
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New ebuild.
hamcrest-integration-1.2.ebuild (text/plain), 3.47 KB, created by
Quetzaly Solano Gómez
on 2009-10-05 14:31:11 UTC
(
hide
)
Description:
New ebuild.
Filename:
MIME Type:
Creator:
Quetzaly Solano Gómez
Created:
2009-10-05 14:31:11 UTC
Size:
3.47 KB
patch
obsolete
># Copyright 1999-2009 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI="2" >JAVA_PKG_IUSE="doc source" >inherit java-pkg-2 java-ant-2 > >MY_PN="hamcrest" >MY_P="${MY_PN}-${PV}" >S="${WORKDIR}/${MY_P}" > >DESCRIPTION="Tool integration for a library of matchers for building test expressions" >HOMEPAGE="http://code.google.com/p/${MY_PN}/" >SRC_URI="http://${MY_PN}.googlecode.com/files/${MY_P}.tgz" >LICENSE="BSD-2" >SLOT="1.2" >KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" >IUSE="" > >CDEPEND=" > =dev-java/hamcrest-core-${PV}* > dev-java/jmock:1.0 > dev-java/easymock:2" >DEPEND=">=virtual/jdk-1.5 > ${CDEPEND}" >RDEPEND=">=virtual/jre-1.5 > ${CDEPEND}" > >EANT_GENTOO_CLASSPATH+="hamcrest-core-${PV},jmock-1.0,easymock-2" >EANT_BUILD_TARGET="integration" >EANT_EXTRA_ARGS="-Dversion=${PV}" >JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc" >JAVA_ANT_REWRITE_CLASSPATH=1 > >java_prepare() { > # Don't include source in JAR. If a Gentoo user wants the source the source > # USE flag will be enabled > epatch "${FILESDIR}/hamcrest-1.2-no_source_in_jar.patch" > # Empty out the contents of the generator target; it has already been built. > epatch "${FILESDIR}/hamcrest-1.2-empty_generator.patch" > # Empty out the contents of the core target; it has already been built. > epatch "${FILESDIR}/hamcrest-1.2-empty_core.patch" > # Empty out the contents of the library target; it has already been built. > epatch "${FILESDIR}/hamcrest-1.2-empty_library.patch" > # Fix problems with Javadoc target > epatch "${FILESDIR}/hamcrest-integration-1.2-fix_javadoc.patch" > > find -name "*.jar" | xargs rm -v > > # link to local Javadocs, if installed > if use doc ; then > ebegin "Checking for local API documentation.." > # check for SDK documentation > if has_version dev-java/java-sdk-docs ; then > jdk_package=`best_version dev-java/java-sdk-docs` > doc_loc=`portageq contents ${ROOT} ${jdk_package} \ > | grep "/html/api$"` > elog " Linking against Java SDK API at ${doc_loc}" > sed -i.sdkdoc -r \ > -e "s|http://java.sun.com/j2se/1\.5\.0/docs/api/|file://${doc_loc}|" \ > build.xml > fi > > # check for hamcrest-core documentation > doc_loc=`java-config-2 --query=JAVADOC_PATH --package=hamcrest-core-1.2 2>/dev/null` > if [ -n "${doc_loc}" ] ; then > elog " Linking against hamcrest-core API at ${doc_loc}" > sed -i.coredoc -r \ > -e "/<link offline/a \ > <link offline=\"false\" href=\"file://${doc_loc}\"\/>" \ > build.xml > fi > > # check for easymock documentation > doc_loc=`java-config-2 --query=JAVADOC_PATH --package=easymock-2 2>/dev/null` > if [ -n "${doc_loc}" ] ; then > elog " Linking against easymock API at ${doc_loc}" > sed -i.easymockdoc -r \ > -e "/<link offline/a \ > <link offline=\"false\" href=\"file://${doc_loc}\"\/>" \ > build.xml > fi > > # check for easymock documentation > doc_loc=`java-config-2 --query=JAVADOC_PATH --package=jmock-1.0 2>/dev/null` > if [ -n "${doc_loc}" ] ; then > elog " Linking against jmock API at ${doc_loc}" > sed -i.jmockdoc -r \ > -e "/<link offline/a \ > <link offline=\"false\" href=\"file://${doc_loc}\"\/>" \ > build.xml > fi > eend > fi > > # copy package.html from hamcrest-core to hamcrest-library to so that > # the org.hamcrest package is documented > cp hamcrest-core/src/main/java/org/hamcrest/package.html \ > "${PN}/src/main/java/org/hamcrest/" >} > >src_install() { > java-pkg_newjar build/${PN}-${PV}.jar ${PN}.jar > > dodoc README.txt CHANGES.txt > > use doc && java-pkg_dojavadoc build/javadoc > use source && java-pkg_dosrc ${PN}/src/main/java/org >}
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 287777
:
206115
|
206117
|
206118
|
206120
|
206121
|
206122
|
209177