2013-01-30 17:50:34 +01:00
|
|
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
2011-10-28 16:22:03 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= leveldb
|
2013-08-22 18:59:45 +02:00
|
|
|
PORTVERSION= 0.1.20130428
|
2011-10-28 16:22:03 +02:00
|
|
|
CATEGORIES= databases python
|
|
|
|
MASTER_SITES= LOCAL/sunpoet
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= py-${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
|
|
COMMENT= Thread-safe Python binding for LevelDB
|
|
|
|
|
2013-11-18 17:52:16 +01:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2013-10-01 18:36:24 +02:00
|
|
|
LIB_DEPENDS= libleveldb.so:${PORTSDIR}/databases/leveldb
|
2011-10-28 16:22:03 +02:00
|
|
|
|
2012-06-16 22:27:26 +02:00
|
|
|
USE_PYTHON= yes
|
2013-01-30 17:50:34 +01:00
|
|
|
USE_PYDISTUTILS=yes
|
2011-10-28 16:22:03 +02:00
|
|
|
USE_XZ= yes
|
|
|
|
|
|
|
|
PLIST_FILES= %%PYTHON_SITELIBDIR%%/leveldb.so
|
|
|
|
PYDISTUTILS_EGGINFO= ${PORTNAME}-${PORTVERSION:R}-py${PYTHON_VER}.egg-info
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} \
|
2013-02-01 03:15:09 +01:00
|
|
|
-e 's|setuptools|do_not_use_&|' \
|
2011-10-28 16:22:03 +02:00
|
|
|
-e "s|^\(extra_compile_args = \).*$$|\1\['-I${LOCALBASE}/include'\]|" \
|
|
|
|
-e "s|^\(extra_link_args = \).*$$|\1\['-L${LOCALBASE}/lib', '-lleveldb'\]|" \
|
2013-02-01 03:15:09 +01:00
|
|
|
${WRKSRC}/${PYSETUP}
|
2011-10-28 16:22:03 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|