devel/py-protobuf: Modernize

- Add LICENSE and LICENSE_FILE
- Modernize Python framework entries
- Add regression-test target

QA:		Ran 216 tests in 0.298s - OK
Approved by:	maintainer
This commit is contained in:
Kubilay Kocak 2014-08-28 03:41:20 +00:00
parent 153fe0b17a
commit 659c3657c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366377

View file

@ -3,7 +3,7 @@
PORTNAME= protobuf
PORTVERSION= 2.5.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,16 +11,21 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= vanilla@FreeBSD.org
COMMENT= Google protobuf Python Client Library
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/../COPYING.txt
BUILD_DEPENDS= protoc:${PORTSDIR}/devel/protobuf
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/python
PROJECTHOST= protobuf
USES= tar:bzip2
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
USES= python tar:bzip2
USE_PYTHON= autoplist distutils
pre-build:
@${MKDIR} ${WRKSRC}/google/protobuf/compiler
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>