5468d240d0
String::ToIdentifier::EN 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. WWW: http://search.cpan.org/dist/String-ToIdentifier-EN/ Feature safe: yes
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
# New ports collection makefile for: p5-String-ToIdentifier-EN
|
|
# Date created: 2011-12-05
|
|
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= String-ToIdentifier-EN
|
|
PORTVERSION= 0.06
|
|
CATEGORIES= textproc perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Convert Strings to English Program Identifiers
|
|
|
|
BUILD_DEPENDS= p5-Lingua-EN-Inflect-Phrase>=0.07:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Phrase \
|
|
p5-Text-Unidecode>=0.04:${PORTSDIR}/converters/p5-Text-Unidecode \
|
|
p5-namespace-clean>=0.20:${PORTSDIR}/devel/p5-namespace-clean
|
|
RUN_DEPENDS= p5-Lingua-EN-Inflect-Phrase>=0.07:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Phrase \
|
|
p5-Text-Unidecode>=0.04:${PORTSDIR}/converters/p5-Text-Unidecode \
|
|
p5-namespace-clean>=0.20:${PORTSDIR}/devel/p5-namespace-clean
|
|
|
|
TEST_DEPENDS= p5-Test-Pod>=1.14:${PORTSDIR}/devel/p5-Test-Pod \
|
|
p5-Test-Pod-Coverage>=1.04:${PORTSDIR}/devel/p5-Test-Pod-Coverage
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= String::ToIdentifier::EN.3 \
|
|
String::ToIdentifier::EN::Unicode.3
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 501001
|
|
TEST_DEPENDS+= p5-Test-Simple>=0.92:${PORTSDIR}/devel/p5-Test-Simple
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|