1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Use PYDISTUTILS_AUTOPLIST instead of PLIST_FILES and PYDISTUTILS_EGGINFO

- Remove patch of not using setuptools
- Bump PORTREVISION for package change
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2014-02-24 10:41:39 +00:00
parent ba2c32849a
commit 5d9fce77cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345807

View File

@ -3,6 +3,7 @@
PORTNAME= leveldb
PORTVERSION= 0.1.20130428
PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= LOCAL/sunpoet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -15,16 +16,13 @@ LICENSE= BSD3CLAUSE
LIB_DEPENDS= libleveldb.so:${PORTSDIR}/databases/leveldb
USE_PYTHON= yes
PYDISTUTILS_AUTOPLIST= yes
USE_PYDISTUTILS=yes
USE_PYTHON= yes
USE_XZ= yes
PLIST_FILES= %%PYTHON_SITELIBDIR%%/leveldb.so
PYDISTUTILS_EGGINFO= ${PORTNAME}-${PORTVERSION:R}-py${PYTHON_VER}.egg-info
post-patch:
@${REINPLACE_CMD} \
-e 's|setuptools|do_not_use_&|' \
-e "s|^\(extra_compile_args = \).*$$|\1\['-I${LOCALBASE}/include'\]|" \
-e "s|^\(extra_link_args = \).*$$|\1\['-L${LOCALBASE}/lib', '-lleveldb'\]|" \
${WRKSRC}/${PYSETUP}