pkgsrc/devel/apache-ant/Makefile
tonio 2961d62242 Update devel/apache-ant to 1.8.0
Fix PR pkg/42990

* Lexically scoped local properties, i.e. properties that are only defined
  inside a target, sequential block or similar environment.
* <import> can now import from any file- or URL-providing resource - this
  includes <javaresource>.
* Various improvements to the directory scanning code that help with symbolic
  link cycles (as can be found on MacOS X Java installations for example) and
  improve scanning performance. For big directory trees the improvement is
  dramatic.
* The way developers can extend Ant's property expansion algorithm has been
  rewritten (breaking the older API) to be easier to use and be more powerful.
  a new top level element extension-point allows build files to be extended
  with custom targets more easily
* At the same time the if and unless attributes have been rewritten to do the
  expected thing if applied to a property expansion (i.e. if="${foo}" will mean
  "yes, do it" if ${foo} expands to true, in Ant 1.7.1 it would mean "no"
  unless a property named "true" existed). This adds "testing conditions" as a
  new use-case to property expansion.
* Ant now requires Java 1.4 or later
* new task include provides an alternative to <import> that should be preferred
  when you don't want to override any targets
* numerous bug fixes and improvements as documented in Bugzilla and in WHATSNEW
2010-04-13 21:05:41 +00:00

45 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2010/04/13 21:05:41 tonio Exp $
#
DISTNAME= apache-ant-1.8.0
#PKGREVISION= 1
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_APACHE:=ant/binaries/}
EXTRACT_SUFX= .tar.bz2
DISTFILES= ${DISTNAME}-bin${EXTRACT_SUFX}
MAINTAINER= tonio@NetBSD.org
HOMEPAGE= http://ant.apache.org/
COMMENT= Apache Project's Java-Based make(1) replacement
# Up to version 1.5.1 inclusive this was known as "jakarta-ant".
CONFLICTS= jakarta-ant>=0
PKG_DESTDIR_SUPPORT= user-destdir
USE_JAVA= run
USE_JAVA2= yes
USE_TOOLS+= pax
NO_BUILD= yes
SUBST_CLASSES+= ant
SUBST_FILES.ant= bin/ant
SUBST_STAGE.ant= pre-configure
SUBST_SED.ant= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
SUBST_SED.ant+= -e 's,@PREFIX@,${PREFIX},g'
INSTALLATION_DIRS= bin lib/java/ant share/doc/java/ant
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/ant ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lib/ant.jar ${DESTDIR}${PREFIX}/lib/java/ant
${INSTALL_DATA} ${WRKSRC}/lib/ant-*.jar ${DESTDIR}${PREFIX}/lib/java/ant
${INSTALL_DATA} ${WRKSRC}/lib/xercesImpl.jar ${DESTDIR}${PREFIX}/lib/java/ant
${INSTALL_DATA} ${WRKSRC}/lib/xml-apis.jar ${DESTDIR}${PREFIX}/lib/java/ant
cd ${WRKSRC}/docs && pax -rw -pmp * ${DESTDIR}${PREFIX}/share/doc/java/ant
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/java/ant
${INSTALL_DATA} ${WRKSRC}/WHATSNEW ${DESTDIR}${PREFIX}/share/doc/java/ant
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"