aboutsummaryrefslogtreecommitdiffstats
path: root/www/zope-simpleblog/Makefile
blob: f127a5e115b7a41556d3a45e8ae145e9f085512a (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
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    zope-simpleblog
# Date created:             05 October 2004
# Whom:                 saturnero@gufi.org
#
# $FreeBSD$
#

PORTNAME=   simpleblog
PORTVERSION=    1.2.1
PORTREVISION=   3
CATEGORIES= www zope
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= collective
PKGNAMEPREFIX=  zope-
DISTNAME=   SimpleBlog${PORTVERSION}
DIST_SUBDIR=    zope

MAINTAINER= ports@FreeBSD.org
COMMENT=    SimpleBlog is an easy to use Plone based weblog application

RUN_DEPENDS=    ${LOCALBASE}/${SZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFPlone/__init__.py:${PORTSDIR}/www/plone

WRKSRC=${WRKDIR}
USE_ZOPE=   2.9
USE_PYTHON= 2.4
MODULES=    SimpleBlog
PLIST=      ${WRKDIR}/pkg-plist

do-build:
    -@for m in ${MODULES}; do \
        ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/$$m; \
    done

pre-install:
    @${RM} -f ${PLIST}
    @${TOUCH} ${PLIST}
    @for m in ${MODULES}; do \
        if [ ! -f ${ZOPEBASEDIR}/Products/$${m}/__init__.py ]; then \
            cd ${WRKSRC}; \
            for i in `${FIND} $${m} -type f`; do \
                ${ECHO_CMD} %%ZOPEBASEDIR%%/Products/$${i} >> ${PLIST}; \
            done; \
            for i in `${FIND} -d $${m} -type d`; do \
                ${ECHO_CMD} @dirrm %%ZOPEBASEDIR%%/Products/$${i} >> ${PLIST}; \
            done; \
        fi;\
    done

do-install:
    @${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}
    @(cd ${WRKSRC} && ${CP} -R ${MODULES} \
        ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR})

.include <bsd.port.mk>