aboutsummaryrefslogtreecommitdiff
path: root/security/py-mhash
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-18 18:59:33 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-18 18:59:33 +0000
commit31d7fffbe57e238ebd60d345cd20ee9c2288a063 (patch)
treee08f6569926dc685b9e94534ae28060d693bd24a /security/py-mhash
parent8cd0598c7c523bb936d4dd3953c9ca38e8ba9353 (diff)
downloadports-31d7fffbe57e238ebd60d345cd20ee9c2288a063.tar.gz
ports-31d7fffbe57e238ebd60d345cd20ee9c2288a063.zip
Notes
Diffstat (limited to 'security/py-mhash')
-rw-r--r--security/py-mhash/Makefile15
-rw-r--r--security/py-mhash/distinfo4
2 files changed, 8 insertions, 11 deletions
diff --git a/security/py-mhash/Makefile b/security/py-mhash/Makefile
index e086996336e2..ff58dc81efb4 100644
--- a/security/py-mhash/Makefile
+++ b/security/py-mhash/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= mhash
-PORTVERSION= 1.0
+PORTVERSION= 1.4
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mhash
@@ -19,17 +19,14 @@ COMMENT= Python mhash module
LIB_DEPENDS= mhash:${PORTSDIR}/security/mhash
-PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/mhash.so
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/mhash.so
USE_PYTHON= yes
USE_PYDISTUTILS=yes
-USE_REINPLACE= yes
-PYDISTUTILS_BUILDARGS= -L${LOCALBASE}/lib
-CFLAGS+= -I${LOCALBASE}/include
-pre-patch:
- ${REINPLACE_CMD} -e '227s,$$,\\,' ${WRKSRC}/mhash.c # put a missed terminating quote
+CFLAGS+= -I${LOCALBASE}/include
+MAKE_ENV= "LDFLAGS=-L${LOCALBASE}/lib"
-do-build:
- @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${PYDISTUTILS_BUILDARGS})
+test: install
+ ${PYTHON_CMD} ${WRKSRC}/test.py
.include <bsd.port.mk>
diff --git a/security/py-mhash/distinfo b/security/py-mhash/distinfo
index bbb11f316be6..1fb54e7e65ef 100644
--- a/security/py-mhash/distinfo
+++ b/security/py-mhash/distinfo
@@ -1,2 +1,2 @@
-MD5 (python-mhash-1.0.tar.gz) = 7af6c11ca2f6451c5e529e5ff366446c
-SIZE (python-mhash-1.0.tar.gz) = 15183
+MD5 (python-mhash-1.4.tar.gz) = b3536ef3474a6459b5f03dee69ab97b6
+SIZE (python-mhash-1.4.tar.gz) = 17309