blob: ca6f5bb0771c1b35153d9ebb5fd32ef705030880 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= leveldb
PORTVERSION= 0.1.20121012
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
LIB_DEPENDS= leveldb:${PORTSDIR}/databases/leveldb
USE_PYTHON= yes
USE_PYDISTUTILS=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}
.include <bsd.port.mk>
|