diff --git a/MOVED b/MOVED index edd61f434175..a94ff8e599a4 100644 --- a/MOVED +++ b/MOVED @@ -15212,7 +15212,6 @@ devel/py-protocols||2020-08-15|Has expired: Uses deprecated version of python devel/py-ptrace||2020-08-15|Has expired: Uses deprecated version of python devel/py-pydoop||2020-08-15|Has expired: Uses deprecated version of python devel/py-pyke||2020-08-15|Has expired: Uses deprecated version of python -devel/py-pymtbl||2020-08-15|Has expired: Uses deprecated version of python devel/py-pyshapelib||2020-08-15|Has expired: Uses deprecated version of python devel/py-pytemplate||2020-08-15|Has expired: Uses deprecated version of python devel/py-python2-pythondialog||2020-08-15|Has expired: Uses deprecated version of python diff --git a/devel/Makefile b/devel/Makefile index 20825fd64994..5ee174b1a12b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4881,6 +4881,7 @@ SUBDIR += py-pymaven-patch SUBDIR += py-pymisp SUBDIR += py-pympler + SUBDIR += py-pymtbl SUBDIR += py-pynest2d SUBDIR += py-pyopencl SUBDIR += py-pyparsing diff --git a/devel/py-pymtbl/Makefile b/devel/py-pymtbl/Makefile new file mode 100644 index 000000000000..e18d80afd299 --- /dev/null +++ b/devel/py-pymtbl/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +PORTNAME= pymtbl +PORTVERSION= 0.5.0 +#PORTREVISION= 1 +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:devel/mtbl + +USES= pkgconfig python shebangfix uniquefiles:dirs +USE_PYTHON= autoplist cython distutils + +SHEBANG_FILES= examples/*.py examples/*/*.py + +PORTEXAMPLES= * + +CPPFLAGS+= -I${LOCALBASE}/include + +OPTIONS_DEFINE= EXAMPLES + +post-install: + ${STRIP_CMD} ${STAGEDIR}/${PYTHON_SITELIBDIR}/mtbl.so + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) + +.include diff --git a/devel/py-pymtbl/distinfo b/devel/py-pymtbl/distinfo new file mode 100644 index 000000000000..635f1b381528 --- /dev/null +++ b/devel/py-pymtbl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1612041602 +SHA256 (pymtbl-0.5.0.tar.gz) = 99d3c87a15a0c7efd69287e861218186ba0617788043873dd73e5bb5db8fefec +SIZE (pymtbl-0.5.0.tar.gz) = 14046 diff --git a/devel/py-pymtbl/pkg-descr b/devel/py-pymtbl/pkg-descr new file mode 100644 index 000000000000..168b8910b53a --- /dev/null +++ b/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