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

PORTNAME=   knowledgekit
PORTVERSION=    1.6.7
CATEGORIES= www zope
MASTER_SITES=   http://www.zope.org/Members/Bill/Products/KnowledgeKit/
DISTNAME=   KnowledgeKit-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= nbm@FreeBSD.org

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

USE_REINPLACE=  yes
NO_BUILD=   YES
PKGMESSAGE= ${WRKDIR}/.MESSAGE

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

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

WRKSRC=     ${WRKDIR}/import

PLIST_SUB=  ZOPEBASEDIR=${SZOPEBASEDIR}

do-install:
    @${CP} ${WRKSRC}/* \
        ${ZOPEBASEDIR}/import
    @${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#; s#%%VER%%#${PORTVERSION}#' ${FILESDIR}/MESSAGE > ${PKGMESSAGE}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>