Skip to content

Commit

Permalink
devel/py-stringbrewer: Add py-stringbrewer 0.0.1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sunpoet committed May 16, 2021
1 parent e0c20d8 commit a65230a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions devel/py-stringbrewer/Makefile
@@ -0,0 +1,22 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>

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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions 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
10 changes: 10 additions & 0 deletions 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

0 comments on commit a65230a

Please sign in to comment.