Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -3996,6 +3996,7 @@ SUBDIR += py-pyke SUBDIR += py-pymarc SUBDIR += py-pympler + SUBDIR += py-pymtbl SUBDIR += py-pyparsing15 SUBDIR += py-pyro SUBDIR += py-pyshapelib Index: devel/py-pymtbl/Makefile =================================================================== --- /dev/null +++ devel/py-pymtbl/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= pymtbl +PORTVERSION= 0.2 +CATEGORIES= devel python +MASTER_SITES= FARSIGHT LOCAL/truckman/farsight +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= truckman@FreeBSD.org +COMMENT= Python wrapper for devel/mtbl + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +LIB_DEPENDS= libmtbl.so:${PORTSDIR}/devel/mtbl + +USE_PYTHON= distutils autoplist +USES= python shebangfix uniquefiles:dirs + +python_CMD= ${PYTHON_CMD} +python_OLD_CMD= /usr/bin/env python +SHEBANG_FILES= examples/*.py examples/*/*.py + +PORTEXAMPLES= * + +CPPFLAGS+= -I${LOCALBASE}/include + +post-install: + ${STRIP_CMD} ${STAGEDIR}/${PYTHON_SITELIBDIR}/mtbl.so + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + +.include Index: devel/py-pymtbl/distinfo =================================================================== --- /dev/null +++ devel/py-pymtbl/distinfo @@ -0,0 +1,2 @@ +SHA256 (pymtbl-0.2.tar.gz) = 36edd559f34a8f55f3d4843c380fa58db711e40ad18f148f495386e6323e6857 +SIZE (pymtbl-0.2.tar.gz) = 59916 Index: devel/py-pymtbl/pkg-descr =================================================================== --- /dev/null +++ devel/py-pymtbl/pkg-descr @@ -0,0 +1,8 @@ +pymtbl: Python bindings for the mtbl sorted string table library + +pymtbl provides a simple Pythonic wrapper for mtbl's reader, writer, +sorter, and merger interfaces. The examples/ directory contains +scripts demonstrating each of these interfaces. The following +transcript shows the basic reader and writer interfaces: + +WWW: https://github.com/farsightsec/pymtbl