# Created by: Dmitry Sivachenko # $FreeBSD$ PORTNAME= pig PORTVERSION= 0.14.0 CATEGORIES= devel java MASTER_SITES= APACHE/${PORTNAME}/${PORTNAME}-${PORTVERSION} \ LOCAL/demon/:ant \ http://people.freebsd.org/~demon/:ant \ http://central.maven.org/maven2/org/apache/ivy/ivy/2.2.0/:ivy DISTFILES= ${DISTNAME}-src${EXTRACT_SUFX} FreeBSD-${PORTNAME}-${PORTVERSION}-ant-repository.tar.gz:ant ivy-2.2.0.jar:ivy DIST_SUBDIR= hadoop EXTRACT_ONLY= ${DISTNAME}-src${EXTRACT_SUFX} FreeBSD-${PORTNAME}-${PORTVERSION}-ant-repository.tar.gz MAINTAINER= demon@FreeBSD.org COMMENT= Engine for executing data flows in parallel on Hadoop LICENSE= APACHE20 BROKEN= tries to fetch distfiles during build phase BUILD_DEPENDS= ${LOCALBASE}/bin/ant:${PORTSDIR}/devel/apache-ant RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \ yarn:${PORTSDIR}/devel/hadoop2 USE_JAVA= yes JAVA_VERSION= 1.7+ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src post-patch: ${REINPLACE_CMD} -e "s#%%WRKDIR%%#${WRKDIR}#" ${WRKSRC}/ivy/ivysettings.xml pre-build: ${CP} ${DISTDIR}/${DIST_SUBDIR}/ivy-2.2.0.jar ${WRKSRC}/ivy/ do-build: cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/ant -Dhadoopversion=23 post-build: ${REINPLACE_CMD} -e "s#%%JAVA_HOME%%#${JAVA_HOME}#" -e "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKSRC}/bin/pig do-install: ${MKDIR} ${STAGEDIR}${DATADIR} cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${STAGEDIR}${DATADIR}/ ${INSTALL_DATA} ${WRKSRC}/pig-${PORTVERSION}-SNAPSHOT-core-h2.jar ${STAGEDIR}${DATADIR}/ ${INSTALL_SCRIPT} ${WRKSRC}/bin/pig ${STAGEDIR}/${PREFIX}/bin/ .include