aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormatthew <matthew@FreeBSD.org>2016-07-04 22:42:07 +0800
committermatthew <matthew@FreeBSD.org>2016-07-04 22:42:07 +0800
commit267e3eb2170841e7a2af5007fd7dd835beeade25 (patch)
tree8a50c33a03587067577623641ec523bb39fbd821 /textproc
parent05ad6cbf83ef9ffb7414f9067f0053e92a4dcb9f (diff)
downloadfreebsd-ports-gnome-267e3eb2170841e7a2af5007fd7dd835beeade25.tar.gz
freebsd-ports-gnome-267e3eb2170841e7a2af5007fd7dd835beeade25.tar.zst
freebsd-ports-gnome-267e3eb2170841e7a2af5007fd7dd835beeade25.zip
Python flexible slugify function
WWW: https://pypi.python.org/pypi/awesome-slugify
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-awesome-slugify/Makefile28
-rw-r--r--textproc/py-awesome-slugify/distinfo3
-rw-r--r--textproc/py-awesome-slugify/pkg-descr3
4 files changed, 35 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index b80bb21729c0..d3e87479086b 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1218,6 +1218,7 @@
SUBDIR += py-acora
SUBDIR += py-alabaster
SUBDIR += py-asv
+ SUBDIR += py-awesome-slugify
SUBDIR += py-bugzillatools
SUBDIR += py-chardet
SUBDIR += py-cloud_sptheme
diff --git a/textproc/py-awesome-slugify/Makefile b/textproc/py-awesome-slugify/Makefile
new file mode 100644
index 000000000000..e6e00fc0a3db
--- /dev/null
+++ b/textproc/py-awesome-slugify/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= awesome-slugify
+PORTVERSION= 1.6.5
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= matthew@FreeBSD.org
+COMMENT= Flexible slugify function
+
+LICENSE= GPLv3
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}regex>=0:textproc/py-regex \
+ ${PYTHON_PKGNAMEPREFIX}unidecode>=0.04.14:converters/py-unidecode
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+TEST_TARGET= do-test
+NOSETESTS= nosetests
+
+do-test:
+ ${NOSETESTS} ${STAGEDIR}${PYTHON_SITELIBDIR}/slugify
+
+.include <bsd.port.mk>
diff --git a/textproc/py-awesome-slugify/distinfo b/textproc/py-awesome-slugify/distinfo
new file mode 100644
index 000000000000..e045215f9829
--- /dev/null
+++ b/textproc/py-awesome-slugify/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1467633317
+SHA256 (awesome-slugify-1.6.5.tar.gz) = bbdec3fa2187917473a2efad092b57f7125a55f841a7cf6a1773178d32ccfd71
+SIZE (awesome-slugify-1.6.5.tar.gz) = 8405
diff --git a/textproc/py-awesome-slugify/pkg-descr b/textproc/py-awesome-slugify/pkg-descr
new file mode 100644
index 000000000000..6ac6bf34fa45
--- /dev/null
+++ b/textproc/py-awesome-slugify/pkg-descr
@@ -0,0 +1,3 @@
+Python flexible slugify function
+
+WWW: https://pypi.python.org/pypi/awesome-slugify