mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
e9ffec3f60
- trim historical headers Approved by: portmgr (miwi)
71 lines
2.0 KiB
Makefile
71 lines
2.0 KiB
Makefile
# Created by: Tim Niemueller <tim@niemueller.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bitten
|
|
PORTVERSION= 0.6
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel www python
|
|
MASTER_SITES= http://ftp.edgewall.com/pub/bitten/ \
|
|
LOCAL/glarkin
|
|
PKGNAMEPREFIX= trac-
|
|
DISTNAME= Bitten-${PORTVERSION}
|
|
|
|
MAINTAINER= tim@niemueller.de
|
|
COMMENT= Continuous integration for Trac
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
UID_FILES+= ../../UIDs
|
|
GID_FILES+= ../../GIDs
|
|
.endif
|
|
USERS= bitten-slave
|
|
GROUPS= bitten-slave
|
|
BITTEN_UID= 952
|
|
BITTEN_GID= 952
|
|
|
|
OPTIONS_DEFINE= BITTEN_MASTER
|
|
BITTEN_MASTER_DESC= Build bitten master
|
|
|
|
OPTIONS_DEFAULT= BITTEN_MASTER
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-distribute
|
|
.if ${PORT_OPTIONS:MBITTEN_MASTER}
|
|
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
|
|
.endif
|
|
|
|
WRKSRC= ${WRKDIR}/Bitten-${PORTVERSION}
|
|
NO_BUILD= yes
|
|
USE_PYTHON= 2.3+
|
|
USE_PYDISTUTILS=yes
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION} PYTHONVERSION=${_PYTHON_VERSION} \
|
|
ECHO_MSG=${ECHO_MSG}
|
|
SUB_LIST+= PYTHON_CMD=${_PYTHON_CMD} TOUCH=${TOUCH} CHOWN=${CHOWN} \
|
|
RM=${RM} USERS=${USERS}
|
|
SUB_FILES+= pkg-message
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
PYDISTUTILS_PKGNAME= Bitten
|
|
PATCH_STRIP= -p1
|
|
USE_RC_SUBR= bitten-slave
|
|
|
|
.if ${PORT_OPTIONS:MBITTEN_MASTER}
|
|
PLIST_SUB+= MASTER_PORT="" EGG_NAME="Bitten"
|
|
.else
|
|
PYDISTUTILS_EXTRA_INSTALLARGS=--without-master
|
|
PLIST_SUB+= MASTER_PORT="@comment " EGG_NAME="BittenSlave"
|
|
.endif
|
|
|
|
# reproduce rule here with added PYDISTUTILS_EXTRA_INSTALLARGS
|
|
do-install:
|
|
@(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} ${PYDISTUTILS_EXTRA_INSTALLARGS} ${PYDISTUTILS_INSTALL_TARGET} ${PYDISTUTILS_INSTALLARGS})
|
|
|
|
post-install:
|
|
@if [ ! -f ${ETCDIR}/bitten-slave.conf ]; then \
|
|
${ECHO} Generating initial configuration in ${ETCDIR}/bitten-slave.conf; \
|
|
${MKDIR} ${ETCDIR}; \
|
|
${SED} -e 's/@DISTRO@/${OPSYS}/g' -e 's/@DISTRO_VERSION@/${OSREL}/g' ${FILESDIR}/bitten-slave.sample > ${ETCDIR}/bitten-slave.conf; \
|
|
${CP} ${FILESDIR}/bitten-slave.sample ${ETCDIR}; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|