aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-leveldb/Makefile
blob: 951a3ac2503c2d6bf68c9e856ebb9790f7f68ae1 (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
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=   leveldb
PORTVERSION=    0.201
CATEGORIES= databases python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Thread-safe Python binding for LevelDB

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

LIB_DEPENDS=    libleveldb.so:databases/leveldb

USES=       compiler:c11 localbase python
USE_PYTHON= autoplist concurrent distutils

post-patch:
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py
    @${RM} -r ${WRKSRC}/leveldb/ ${WRKSRC}/snappy/

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/leveldb.so

.include <bsd.port.mk>