aboutsummaryrefslogtreecommitdiffstats
path: root/www/squishdot/Makefile
blob: b071f38764e4bb1b94108bff14581d00b8b5f97a (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
# New ports collection makefile for: Squishdot
# Date created:     06 Sep 2000
# Whom:         Neil Blakey-Milner
#
# $FreeBSD$
#

PORTNAME=   squishdot
PORTVERSION=    1.3.0
CATEGORIES= www zope
MASTER_SITES=   http://squishdot.org/Download/Squishdot/ \
        http://www.zope.org/Members/chrisw/Squishdot/
DISTNAME=   Squishdot-${PORTVERSION:S/./-/g}

MAINTAINER= nbm@FreeBSD.org

RUN_DEPENDS=    ${LOCALBASE}/${SZOPEBASEDIR}/z2.py:${PORTSDIR}/www/zope

USE_PYTHON= yes

# You can change this in the environment if you like.
SZOPEBASEDIR?=  www/Zope

# Don't change these
ZOPEBASEDIR=        ${PREFIX}/${SZOPEBASEDIR}
ZOPEPRODUCTNAME=    Squishdot
ZOPEPRODUCTDIR=     lib/python/Products

WRKSRC=     ${WRKDIR}/${ZOPEPRODUCTNAME}

PLIST_SUB=  ZOPEBASEDIR=${SZOPEBASEDIR}

do-build:
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
    @${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/${ZOPEPRODUCTNAME}
    @${CP} -Rf ${WRKSRC}/* \
        ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/${ZOPEPRODUCTNAME}/

post-install:
.if !defined(BATCH)
    @${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>