aboutsummaryrefslogtreecommitdiffstats
path: root/security/py-mhash/Makefile
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-03-13 21:21:53 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-03-13 21:21:53 +0800
commitb93e448b805083e63160020fa9de381ac87f6c9a (patch)
tree872ab62ddaf644470c53e4648a4c75b3448b38ab /security/py-mhash/Makefile
parentc5294cb896b35bf81a5afa2d693ffe63f4ab9c7b (diff)
downloadfreebsd-ports-gnome-b93e448b805083e63160020fa9de381ac87f6c9a.tar.gz
freebsd-ports-gnome-b93e448b805083e63160020fa9de381ac87f6c9a.tar.zst
freebsd-ports-gnome-b93e448b805083e63160020fa9de381ac87f6c9a.zip
- Add LICENSE
- Strip library
Diffstat (limited to 'security/py-mhash/Makefile')
-rw-r--r--security/py-mhash/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/security/py-mhash/Makefile b/security/py-mhash/Makefile
index e1c37033f8e8..8f93beb98a33 100644
--- a/security/py-mhash/Makefile
+++ b/security/py-mhash/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mhash
PORTVERSION= 1.4
+PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= SF/${PORTNAME}/OldFiles
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,6 +12,9 @@ DISTNAME= python-mhash-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Python mhash module
+LICENSE= LGPL21 # or later
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
LIB_DEPENDS= libmhash.so:${PORTSDIR}/security/mhash
USES= python
@@ -19,6 +23,9 @@ USE_PYTHON= distutils autoplist
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mhash.so
+
test: install
${PYTHON_CMD} ${WRKSRC}/test.py