blob: 5cf3df5050447e82ef205deac92201ac58f9be54 (
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
|
# ex:ts=8
# Ports collection Makefile for: narval
# Date created: Jan 4, 2002
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= narval
PORTVERSION= 1.1
CATEGORIES= deskutils python
MASTER_SITES= ftp://ftp.logilab.org/pub/narval/ \
http://www.logilab.org/ftp/pub/narval/
DISTNAME= Narval-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
USE_PYTHON= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_VERSION} == "python1.5" || ${PYTHON_VERSION} == "python1.6"
XMLDIR= xml
.else
XMLDIR= _xmlplus
.endif
RUN_DEPENDS= ${PYXML} \
${PYTHON_SITELIBDIR}/${XMLDIR}/xpath/__init__.py:${PORTSDIR}/textproc/py-4suite \
${PYTHON_SITELIBDIR}/GDK.py:${PORTSDIR}/x11-toolkits/py-gtk \
${PYTHON_SITELIBDIR}/xmlrpclib.py:${PORTSDIR}/net/py-xmlrpclib \
${PYTHON_SITELIBDIR}/logilab/xmltools/XmlTree.py:${PORTSDIR}/textproc/py-xmltools
SETUP_CMD= cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
PLIST_SUB+= PORTVERSION=${PORTVERSION}
post-patch:
@${PERL} -pi -e "s,/etc,${PREFIX}/etc,g ; \
s,base/doc,base/share/doc,g" ${WRKSRC}/setup.py
@${PERL} -pi -e "s,/etc,${PREFIX}/etc,g" ${WRKSRC}/narval/config.py
@${PERL} -pi -e "s,/usr/share,${PREFIX}/share,g" ${WRKSRC}/conf/narval.conf
do-build:
@${SETUP_CMD} build
do-install:
@${SETUP_CMD} install
.include <bsd.port.post.mk>
|