aboutsummaryrefslogtreecommitdiffstats
path: root/www/zope-parsedxml/Makefile
blob: e7317de73732a55f579bc7a55eed322ce168a45c (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
# New ports collection makefile for: ParsedXML
# Date created:     3 Jul 2003
# Whom:         Tim Middleton
#
# $FreeBSD$
#

PORTNAME=   parsedxml
PORTVERSION=    1.3.1
CATEGORIES= www zope
MASTER_SITES=   http://www.zope.org/Members/faassen/ParsedXML/${PORTVERSION}/
MASTER_SITE_SUBDIR= formulator
PKGNAMEPREFIX=  zope-
DISTNAME=   ParsedXML-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= x@Vex.Net
COMMENT=    ParsedXML - access and manipulated XML documents within Zope

RUN_DEPENDS=    ${LOCALBASE}/${SZOPEBASEDIR}/z2.py:${PORTSDIR}/www/zope \
                ${PYTHON_LIBDIR}/site-packages/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml

USE_PYTHON=     yes
USE_ZOPE=       yes
DIST_SUBDIR=    zope

ZOPEPRODUCTNAME=    ParsedXML

# yes, some of us are running zope on python 2.2
#PYTHON_VERSION= python2.2

PLIST_SUB=  ZOPEBASEDIR=${SZOPEBASEDIR}
WRKSRC=     ${WRKDIR}/${ZOPEPRODUCTNAME}
CPIO=       cpio --quiet -pdum -R

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

do-install:
    @ ${CHMOD} -R og+rX ${WRKSRC}/
    @ ${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/${ZOPEPRODUCTNAME}
    @ cd ${WRKSRC} && ${FIND} . \
      | ${CPIO} ${BINOWN}:${BINGRP} \
      ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/${ZOPEPRODUCTNAME}

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

.include <bsd.port.mk>