openbsd-ports/devel/ivy/Makefile
2011-09-16 09:24:48 +00:00

49 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.18 2011/09/16 09:24:51 espie Exp $
COMMENT= dependency manager for Java
VERSION= 1.4.1
DISTNAME= ivy-${VERSION}-bin
PKGNAME= ivy-${VERSION}
REVISION = 10
CATEGORIES= devel
WRKDIST= ${WRKDIR}/ivy-${VERSION}
HOMEPAGE= http://incubator.apache.org/ivy/
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.jaya.free.fr/downloads/ivy/${VERSION}/
EXTRACT_SUFX= .zip
MODULES= java
MODJAVA_VER= 1.4+
MODJAVA_JRERUN= yes
RUN_DEPENDS= java/javaPathHelper
NO_BUILD= Yes
NO_REGRESS= Yes
do-configure:
sed -e 's!@IVYDIR@!${MODJAVA_JAR_DIR}/ivy/!' \
-e 's!@JAVAPH@!${PREFIX}/bin/javaPathHelper!' \
files/ivy.in > ${WRKSRC}/ivy
# Note: we omit ivy-core.jar, since it's the same as ivy.jar with
# the ant tasks removed.
do-install:
${INSTALL_DATA_DIR} ${MODJAVA_JAR_DIR}/ivy/ ${MODJAVA_SHARE_DIR}/ivy/
${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${MODJAVA_SHARE_DIR}/ivy/
${INSTALL_DATA} ${WRKSRC}/ivy-${VERSION}.jar \
${MODJAVA_JAR_DIR}/ivy/ivy.jar
# Preliminary hack.
${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${MODJAVA_JAR_DIR}/ivy/
${INSTALL_SCRIPT} ${WRKSRC}/ivy ${PREFIX}/bin
.include <bsd.port.mk>