60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
34 lines
798 B
Makefile
34 lines
798 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= downloads
|
|
PORTVERSION= ${TRAC_VERSION}.${PLUGIN_VERSION}.${SVN_REV}
|
|
PORTREVISION= 2
|
|
CATEGORIES= www devel python
|
|
MASTER_SITES= LOCAL/brooks
|
|
PKGNAMEPREFIX= trac-
|
|
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
|
|
DIST_SUBDIR= trac
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Trac plugin providing a downloads section
|
|
|
|
RUN_DEPENDS+= tracd:${PORTSDIR}/www/trac
|
|
|
|
TRAC_VERSION= 0.12
|
|
PLUGIN_VERSION= 0.3
|
|
SVN_REV= 10047
|
|
|
|
USES= python:2
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
.if defined(BOOTSTRAP)
|
|
do-fetch:
|
|
${MKDIR} ${WRKDIR}
|
|
svn export -r ${SVN_REV} http://trac-hacks.org/svn/downloadsplugin/${TRAC_VERSION}/ ${WRKSRC}
|
|
${MKDIR} ${_DISTDIR}
|
|
cd ${WRKDIR} && \
|
|
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
|
|
.endif
|
|
|
|
.include "${.CURDIR}/../../www/trac/plugin.mk"
|
|
.include <bsd.port.mk>
|