summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2018-02-08 20:08:56 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2018-02-08 20:08:56 +0000
commit7ab0dd99c498dbf7e5b2c9c6a0a7628a47a46f11 (patch)
tree71c1f2056d4fbdfb2b345cf7e7811476330ee39f
parentRemove DTRACE from OPTIONS_DEFAULT, causes segmentation fault during build (diff)
Python bindings for libversion, which provides fast, powerful
and correct generic version string comparison algorithm. WWW: https://pypi.python.org/pypi/libversion
Notes
Notes: svn path=/head/; revision=461264
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-libversion/Makefile27
-rw-r--r--devel/py-libversion/distinfo3
-rw-r--r--devel/py-libversion/pkg-descr4
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index dbe2b5c62719..e0265521125b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4573,6 +4573,7 @@
SUBDIR += py-libtmux
SUBDIR += py-libusb1
SUBDIR += py-libusb115
+ SUBDIR += py-libversion
SUBDIR += py-libvirt
SUBDIR += py-libzfs
SUBDIR += py-linecache2
diff --git a/devel/py-libversion/Makefile b/devel/py-libversion/Makefile
new file mode 100644
index 000000000000..b83d32d51f0a
--- /dev/null
+++ b/devel/py-libversion/Makefile
@@ -0,0 +1,27 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= libversion
+PORTVERSION= 0.2.2
+CATEGORIES= devel
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Python bindings for libversion
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libversion.a:devel/libversion
+
+USES= python:3.6+ pkgconfig
+USE_PYTHON= autoplist distutils
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/libversion/_libversion.so
+
+.include <bsd.port.mk>
diff --git a/devel/py-libversion/distinfo b/devel/py-libversion/distinfo
new file mode 100644
index 000000000000..a482dbb597d9
--- /dev/null
+++ b/devel/py-libversion/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1518119418
+SHA256 (libversion-0.2.2.tar.gz) = 5778451506cc39f061ebcce5a6569dbffcdebb10b73da2dd741fc376a4e79aa6
+SIZE (libversion-0.2.2.tar.gz) = 7822
diff --git a/devel/py-libversion/pkg-descr b/devel/py-libversion/pkg-descr
new file mode 100644
index 000000000000..0dd1e79e755e
--- /dev/null
+++ b/devel/py-libversion/pkg-descr
@@ -0,0 +1,4 @@
+Python bindings for libversion, which provides fast, powerful
+and correct generic version string comparison algorithm.
+
+WWW: https://pypi.python.org/pypi/libversion