aboutsummaryrefslogtreecommitdiffstats
path: root/www/trac-fullblog/Makefile
blob: 459a8514ffb0f4f476ba5a5e1f2c1fa8525b6296 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $FreeBSD$

PORTNAME=   ${PYDISTUTILS_PKGNAME:S;^Trac;;S;Plugin$;;:L}
PORTVERSION=    0.1.1
PORTREVISION=   1
CATEGORIES= www devel python
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= brooks
PKGNAMEPREFIX=  trac-
DISTNAME=   ${PORTNAME}plugin-${PORTVERSION}
DIST_SUBDIR=    trac

MAINTAINER= ports@FreeBSD.org
COMMENT=    Plugin that provides a project Blog

RUN_DEPENDS+=   htmldoc:${PORTSDIR}/textproc/htmldoc \
        tracd:${PORTSDIR}/www/trac

USE_PYTHON= -2.7
USE_PYDISTUTILS=    easy_install
PYDISTUTILS_PKGNAME=    TracFullBlogPlugin

.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>