Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -3993,6 +3993,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,29 @@ +# $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 uniquefiles:dirs + +PORTEXAMPLES= * + +CPPFLAGS+= -I${LOCALBASE}/include + +post-install: + ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/lib/python2.7/site-packages/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 Index: devel/py-pymtbl/pkg-message =================================================================== --- /dev/null +++ devel/py-pymtbl/pkg-message @@ -0,0 +1 @@ +To run the example scripts, you must install the python package (lang/python).