mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
a32defea5d
- Remove obsolete MD5 checksum while I'm here PR: ports/152844 Submitted by: sunpoet (myself) Approved by: miwi (with portmgr hat)
53 lines
1.6 KiB
Makefile
53 lines
1.6 KiB
Makefile
# New ports collection makefile for: trac-fullblog
|
|
# Date created: January 9, 2009
|
|
# Whom: Brooks Davis <brooks@freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
|
|
PORTVERSION= 0.1.1
|
|
CATEGORIES= www devel python
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= brooks
|
|
PKGNAMEPREFIX= trac-
|
|
DISTNAME= ${PORTNAME}plugin-${PORTVERSION}
|
|
DIST_SUBDIR= trac
|
|
|
|
MAINTAINER= brooks@FreeBSD.org
|
|
COMMENT= This plugin provides a project Blog
|
|
|
|
RUN_DEPENDS+= htmldoc:${PORTSDIR}/textproc/htmldoc \
|
|
tracd:${PORTSDIR}/www/trac
|
|
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
|
|
|
|
USE_PYTHON= 2.5+
|
|
NO_BUILD= yes
|
|
USE_PYDISTUTILS=yes
|
|
PYDISTUTILS_PKGNAME= TracFullBlogPlugin
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION} \
|
|
PYTHON_VER=${PYTHON_VER}
|
|
|
|
EGG_PATH= ${PYTHONPREFIX_SITELIBDIR}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg
|
|
|
|
.if defined(BOOTSTRAP)
|
|
do-fetch:
|
|
${MKDIR} ${WRKDIR}
|
|
svn export http://trac-hacks.org/svn/fullblogplugin/0.11/ ${WRKSRC}
|
|
${MKDIR} ${_DISTDIR}
|
|
cd ${WRKDIR} && \
|
|
tar cfvz ${_DISTDIR}/${DISTNAME}.tar.gz ${DISTNAME}
|
|
.endif
|
|
|
|
build-plist:
|
|
@${CAT} /dev/null > ${PLIST}
|
|
${FIND} ${EGG_PATH} -type f | \
|
|
${SED} -e 's|${EGG_PATH}|%%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-%%PORTVERSION%%-py%%PYTHON_VER%%.egg|' | \
|
|
${SORT} >> ${PLIST}
|
|
${FIND} ${EGG_PATH} -type d | \
|
|
${SED} -e 's|${EGG_PATH}|@dirrm %%PYTHON_SITELIBDIR%%/${PYDISTUTILS_PKGNAME}-%%PORTVERSION%%-py%%PYTHON_VER%%.egg|' | \
|
|
${SORT} -r >> ${PLIST}
|
|
|
|
.include <bsd.port.mk>
|