1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/devel/aap/Makefile
Marcus von Appen 89e07f4a18 - Convert ports of devel/ to USES=python
Approved by:	portmgr (implicit)
2014-10-20 16:04:12 +00:00

44 lines
1.1 KiB
Makefile

# Created by: Bram Moolenaar <bram@a-a-p.org>
# $FreeBSD$
PORTNAME= aap
PORTVERSION= 1.093
CATEGORIES= devel
MASTER_SITES= SF/a-a-p/Aap/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Build tool alternative to make with internet access and CVS support
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS
NO_WRKSUBDIR= yes
NO_BUILD= yes
USES= python zip
PLIST_SUB= PORTVERSION="${PORTVERSION}"
.include <bsd.port.options.mk>
do-install:
@cd ${WRKSRC} && ${PYTHON_CMD} ./aap PREFIX="${STAGEDIR}/${PREFIX}" \
FULLDOCS=no install
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-d ${PREFIX}/lib/aap/Exec-${PORTVERSION}/ -f ${STAGEDIR}${PREFIX}/lib/aap/Exec-${PORTVERSION}
@${LN} -sf ../lib/aap/Exec-${PORTVERSION}/aap \
${STAGEDIR}${PREFIX}/bin/aap
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} exec.pdf \
${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}/${DOCSDIR}/html
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html \
${STAGEDIR}${DOCSDIR}/html)
@${LN} -sf ../../../${DOCSDIR_REL} \
${STAGEDIR}${PREFIX}/lib/aap/Exec-${PORTVERSION}/doc
test: install
cd ${WRKSRC}; ${PREFIX}/bin/aap
.include <bsd.port.mk>