import p5-String-ToIdentifier-EN from Andrew Fresh, ok landry@
This module provides a utility method, "to_identifier" for converting an arbitrary string into a readable representation using the ASCII subset of "\w" for use as an identifier in a computer program. The intent is to make unique identifier names from which the content of the original string can be easily inferred by a human just by reading the identifier. If you need the full set of "\w" including Unicode, see the subclass String::ToIdentifier::EN::Unicode. Currently, this process is one way only, and will likely remain this way. The default is to create camelCase identifiers, or you may pass in a separator char of your choice such as "_". Binary char groups will be separated by "_" even in camelCase identifiers to make them easier to read, e.g.: "foo_2_0xFF_Bar".
This commit is contained in:
parent
0501bfb524
commit
6b56a669de
23
textproc/p5-String-ToIdentifier-EN/Makefile
Normal file
23
textproc/p5-String-ToIdentifier-EN/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/04/06 09:27:49 sthen Exp $
|
||||
|
||||
COMMENT= convert strings to english program identifiers
|
||||
|
||||
DISTNAME= String-ToIdentifier-EN-0.06
|
||||
CATEGORIES= textproc
|
||||
|
||||
MAINTAINER= Andrew Fresh <andrew@cpan.org>
|
||||
|
||||
# Same as Perl
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MODULES= cpan
|
||||
CONFIGURE_ARGS= --skipdeps
|
||||
|
||||
RUN_DEPENDS= textproc/p5-Lingua-EN-Inflect-Phrase \
|
||||
textproc/p5-Text-Unidecode \
|
||||
devel/p5-namespace-clean
|
||||
|
||||
.include <bsd.port.mk>
|
5
textproc/p5-String-ToIdentifier-EN/distinfo
Normal file
5
textproc/p5-String-ToIdentifier-EN/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (String-ToIdentifier-EN-0.06.tar.gz) = JiYCxbKbOmL7+OvABb/r7g==
|
||||
RMD160 (String-ToIdentifier-EN-0.06.tar.gz) = f4Z4NyerL/QuLw5AlmDD+zJm//4=
|
||||
SHA1 (String-ToIdentifier-EN-0.06.tar.gz) = wqeTjjGwwvr2lmt8AiLbjeZ9uQ8=
|
||||
SHA256 (String-ToIdentifier-EN-0.06.tar.gz) = dZMqI9CKInWzZRNtWG3cy9dMEbkPok0/nFsSJ09utOY=
|
||||
SIZE (String-ToIdentifier-EN-0.06.tar.gz) = 34177
|
18
textproc/p5-String-ToIdentifier-EN/pkg/DESCR
Normal file
18
textproc/p5-String-ToIdentifier-EN/pkg/DESCR
Normal file
@ -0,0 +1,18 @@
|
||||
This module provides a utility method, "to_identifier" for converting
|
||||
an arbitrary string into a readable representation using the ASCII
|
||||
subset of "\w" for use as an identifier in a computer program. The
|
||||
intent is to make unique identifier names from which the content
|
||||
of the original string can be easily inferred by a human just by
|
||||
reading the identifier.
|
||||
|
||||
If you need the full set of "\w" including Unicode, see the subclass
|
||||
String::ToIdentifier::EN::Unicode.
|
||||
|
||||
Currently, this process is one way only, and will likely remain
|
||||
this way.
|
||||
|
||||
The default is to create camelCase identifiers, or you may pass in
|
||||
a separator char of your choice such as "_".
|
||||
|
||||
Binary char groups will be separated by "_" even in camelCase
|
||||
identifiers to make them easier to read, e.g.: "foo_2_0xFF_Bar".
|
8
textproc/p5-String-ToIdentifier-EN/pkg/PLIST
Normal file
8
textproc/p5-String-ToIdentifier-EN/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/04/06 09:27:49 sthen Exp $
|
||||
${P5SITE}/String/
|
||||
${P5SITE}/String/ToIdentifier/
|
||||
${P5SITE}/String/ToIdentifier/EN/
|
||||
${P5SITE}/String/ToIdentifier/EN.pm
|
||||
${P5SITE}/String/ToIdentifier/EN/Unicode.pm
|
||||
@man man/man3p/String::ToIdentifier::EN.3p
|
||||
@man man/man3p/String::ToIdentifier::EN::Unicode.3p
|
Loading…
Reference in New Issue
Block a user