aboutsummaryrefslogtreecommitdiff
path: root/devel/py-grouch
diff options
context:
space:
mode:
authorJohann Visagie <wjv@FreeBSD.org>2002-02-20 15:12:05 +0000
committerJohann Visagie <wjv@FreeBSD.org>2002-02-20 15:12:05 +0000
commit38cd9232f839896663ea10975b2df0375a243e28 (patch)
treea6601367c0faa495f41dfeb41a8bbf2b4e3b4033 /devel/py-grouch
parent12df4b76d3f67b893d13c983cc176b98d20a6b2f (diff)
downloadports-38cd9232f839896663ea10975b2df0375a243e28.tar.gz
ports-38cd9232f839896663ea10975b2df0375a243e28.zip
Notes
Diffstat (limited to 'devel/py-grouch')
-rw-r--r--devel/py-grouch/Makefile22
-rw-r--r--devel/py-grouch/distinfo2
-rw-r--r--devel/py-grouch/pkg-plist2
3 files changed, 17 insertions, 9 deletions
diff --git a/devel/py-grouch/Makefile b/devel/py-grouch/Makefile
index 21c89af5ce82..eef902b0b18a 100644
--- a/devel/py-grouch/Makefile
+++ b/devel/py-grouch/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= grouch
-PORTVERSION= 0.1
+PORTVERSION= 0.2
CATEGORIES= devel python
MASTER_SITES= http://www.mems-exchange.org/software/files/${PORTNAME}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,28 +15,34 @@ DISTNAME= Grouch-${PORTVERSION}
MAINTAINER= wjv@FreeBSD.org
BUILD_DEPENDS= ${PYDISTUTILS}
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/compiler/__init__.py:${PORTSDIR}/lang/py-compiler
USE_PYTHON= yes
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
+PYTHON_SETUP= ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 220
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/compiler/__init__.py:${PORTSDIR}/lang/py-compiler
+.endif
do-build:
- @ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build
+ @ cd ${WRKSRC} && ${PYTHON_SETUP} build
pre-install:
@ ${SH} ${PKGREQ} INSTALL
do-install:
- @ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py \
- install -c -O1 --prefix=${PREFIX}
+ @ cd ${WRKSRC} && ${PYTHON_SETUP} install -c -O1 --prefix=${PREFIX}
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
- @ ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+.for docfile in CHANGES LICENSE README
+ @ ${INSTALL_DATA} ${WRKSRC}/${docfile}.txt ${DOCSDIR}
+.endfor
@ ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
@ ${MKDIR} ${EXAMPLESDIR}
@ ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/py-grouch/distinfo b/devel/py-grouch/distinfo
index e37a51ca8593..98c28b67f999 100644
--- a/devel/py-grouch/distinfo
+++ b/devel/py-grouch/distinfo
@@ -1 +1 @@
-MD5 (Grouch-0.1.tar.gz) = ae3778763e3f6d6c529c17c2f4e9bd26
+MD5 (Grouch-0.2.tar.gz) = e77292f3c9e0f5b02a06f592202c0960
diff --git a/devel/py-grouch/pkg-plist b/devel/py-grouch/pkg-plist
index e5f9908b2069..36ca2bc81c5e 100644
--- a/devel/py-grouch/pkg-plist
+++ b/devel/py-grouch/pkg-plist
@@ -1,3 +1,5 @@
+%%PORTDOCS%%share/doc/grouch/CHANGES.txt
+%%PORTDOCS%%share/doc/grouch/LICENSE.txt
%%PORTDOCS%%share/doc/grouch/README.txt
%%PORTDOCS%%share/doc/grouch/checking.txt
%%PORTDOCS%%share/doc/grouch/schema.txt