From a65230a557b6d22e1edc7acf4c1a67038633e530 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sun, 16 May 2021 23:12:40 +0800 Subject: [PATCH] devel/py-stringbrewer: Add py-stringbrewer 0.0.1 Patterns are specified in the StringBrewer pattern language, and are made up of two parts: a recipe and a set of ingredients. A recipe is essentially a modified form of regular expression; whitespace is not significant, and each ingredient name is replaced by its definition. An ingredient is a space-separated list of items; each item is either a character (specified either as a literal character or as a Unicode codepoint in hexadecimal), a range of characters separated by hyphens, or a union of items separated by commas. Ingredients may also contain references to other ingredients. WWW: https://github.com/simoncozens/stringbrewer --- devel/Makefile | 1 + devel/py-stringbrewer/Makefile | 22 ++++++++++++++++++++++ devel/py-stringbrewer/distinfo | 3 +++ devel/py-stringbrewer/pkg-descr | 10 ++++++++++ 4 files changed, 36 insertions(+) create mode 100644 devel/py-stringbrewer/Makefile create mode 100644 devel/py-stringbrewer/distinfo create mode 100644 devel/py-stringbrewer/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 959806231c7a5..d2f59cb80f118 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5152,6 +5152,7 @@ SUBDIR += py-strategies SUBDIR += py-streamparse SUBDIR += py-strict-rfc3339 + SUBDIR += py-stringbrewer SUBDIR += py-stringcase SUBDIR += py-structlog SUBDIR += py-stsci.distutils diff --git a/devel/py-stringbrewer/Makefile b/devel/py-stringbrewer/Makefile new file mode 100644 index 0000000000000..dea2560ec9998 --- /dev/null +++ b/devel/py-stringbrewer/Makefile @@ -0,0 +1,22 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= stringbrewer +PORTVERSION= 0.0.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Generate random strings matching a pattern + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rstr>=0:devel/py-rstr@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sre-yield>=0:devel/py-sre-yield@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-stringbrewer/distinfo b/devel/py-stringbrewer/distinfo new file mode 100644 index 0000000000000..0a9653386bd0b --- /dev/null +++ b/devel/py-stringbrewer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1620928531 +SHA256 (stringbrewer-0.0.1.tar.gz) = c2d113822f9393500b273cc833a21ce739036c02c62f47042e0f17ef9b9ea649 +SIZE (stringbrewer-0.0.1.tar.gz) = 3982 diff --git a/devel/py-stringbrewer/pkg-descr b/devel/py-stringbrewer/pkg-descr new file mode 100644 index 0000000000000..aedb7d88815ec --- /dev/null +++ b/devel/py-stringbrewer/pkg-descr @@ -0,0 +1,10 @@ +Patterns are specified in the StringBrewer pattern language, and are made up of +two parts: a recipe and a set of ingredients. A recipe is essentially a modified +form of regular expression; whitespace is not significant, and each ingredient +name is replaced by its definition. An ingredient is a space-separated list of +items; each item is either a character (specified either as a literal character +or as a Unicode codepoint in hexadecimal), a range of characters separated by +hyphens, or a union of items separated by commas. Ingredients may also contain +references to other ingredients. + +WWW: https://github.com/simoncozens/stringbrewer