Bug 89515

Summary: New port: textproc/p5-Text-Capitalize Capitalize strings ("to WORK AS titles" becomes "To Work as Titles")
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Aaron Dalton <aaron>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
p5-Text-Capitalize-0.4.shar none

Description Dmitry Marakasov 2005-11-25 00:00:11 UTC
Text::Capitalize provides a few different flavors of procedures for
title-like formatting for strings.

For the "capitalize" function Title-like (written by Stanislaw Y.
Pusep) formatting consists of ensuring that the first letter of
each word is uppercase, and that the rest is lowercase.

The "capitalize_title" function tries to get closer to English title
capitalization rules where only the "important" words are supposed
to be capitalized. There are also some customization features
provided to allow the user to choose variant rules.

WWW: http://search.cpan.org/dist/Text-Capitalize/
Comment 1 Aaron Dalton freebsd_committer freebsd_triage 2005-11-25 00:31:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->aaron

I'll take it.
Comment 2 Aaron Dalton freebsd_committer freebsd_triage 2005-11-25 01:03:43 UTC
Hello, Dmitry!  Unfortunately, I get the following results when I attempt a 'make test.'

moondance# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/001-load........................................ok                         
t/002-captitle-default............................NOK 12                     
#   Failed test 'test: ?ber maus'
#   in t/002-captitle-default.t at line 28.
#          got: '?Ber Maus'
#     expected: '?ber Maus'
t/002-captitle-default............................NOK 40                     
#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/002-captitle-default.t at line 28.
#          got: 'Explicaci?N D?L Significado de Los T?Rminos Utilizados En "Don Quijote", Por Cap?Tulo.'
#     expected: 'Explicaci?n D?l Significado de Los T?rminos Utilizados En "Don Quijote", Por Cap?tulo.'
t/002-captitle-default............................NOK 72                     
#   Failed test 'test: Didaktische ?berlegungen/Erfahrungsbericht ?ber den Computereinsatz im geisteswissenschaftlichen Unterricht am Bsp. "Historische Zeitung"'
#   in t/002-captitle-default.t at line 28.
#          got: 'Didaktische ?Berlegungen/Erfahrungsbericht ?Ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
#     expected: 'Didaktische ?berlegungen/Erfahrungsbericht ?ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
# Looks like you failed 3 tests of 76.
t/002-captitle-default............................dubious                    
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 12, 40, 72
        Failed 3/76 tests, 96.05% okay
t/003-captitle-preserve_whitespace................ok 1/75                    
t/003-captitle-preserve_whitespace................NOK 12#   Failed test 'test: ?ber maus'
#   in t/003-captitle-preserve_whitespace.t at line 28.
#          got: '?Ber Maus'
#     expected: '?ber Maus'

t/003-captitle-preserve_whitespace................NOK 40#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/003-captitle-preserve_whitespace.t at line 28.
#          got: 'Explicaci?N D?L Significado de Los T?Rminos Utilizados En "Don Quijote", Por Cap?Tulo.'
#     expected: 'Explicaci?n D?l Significado de Los T?rminos Utilizados En "Don Quijote", Por Cap?tulo.'
t/003-captitle-preserve_whitespace................NOK 72                     
#   Failed test 'test: Didaktische ?berlegungen/Erfahrungsbericht ?ber den Computereinsatz im geisteswissenschaftlichen Unterricht am Bsp. "Historische Zeitung"'
#   in t/003-captitle-preserve_whitespace.t at line 28.
#          got: 'Didaktische ?Berlegungen/Erfahrungsbericht ?Ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
#     expected: 'Didaktische ?berlegungen/Erfahrungsbericht ?ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
# Looks like you failed 3 tests of 75.
t/003-captitle-preserve_whitespace................dubious                    
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 12, 40, 72
        Failed 3/75 tests, 96.00% okay
t/004-captitle-preserve_allcaps...................NOK 12                     
#   Failed test 'test: ?ber maus'
#   in t/004-captitle-preserve_allcaps.t at line 28.
#          got: '?Ber Maus'
#     expected: '?ber Maus'
t/004-captitle-preserve_allcaps...................NOK 40                     
#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/004-captitle-preserve_allcaps.t at line 28.
#          got: 'Explicaci?N D?L Significado de Los T?Rminos Utilizados En "Don Quijote", Por Cap?Tulo.'
#     expected: 'Explicaci?n D?l Significado de Los T?rminos Utilizados En "Don Quijote", Por Cap?tulo.'
t/004-captitle-preserve_allcaps...................NOK 72                     
#   Failed test 'test: Didaktische ?berlegungen/Erfahrungsbericht ?ber den Computereinsatz im geisteswissenschaftlichen Unterricht am Bsp. "Historische Zeitung"'
#   in t/004-captitle-preserve_allcaps.t at line 28.
#          got: 'Didaktische ?Berlegungen/Erfahrungsbericht ?Ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
#     expected: 'Didaktische ?berlegungen/Erfahrungsbericht ?ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
# Looks like you failed 3 tests of 75.
t/004-captitle-preserve_allcaps...................dubious                    
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 12, 40, 72
        Failed 3/75 tests, 96.00% okay
t/005-captitle-preserve_anycaps...................ok 1/75                    
t/005-captitle-preserve_anycaps...................NOK 12#   Failed test 'test: ?ber maus'
#   in t/005-captitle-preserve_anycaps.t at line 29.
#          got: '?Ber Maus'
#     expected: '?ber Maus'
t/005-captitle-preserve_anycaps...................ok 31/75                   
t/005-captitle-preserve_anycaps...................NOK 40#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/005-captitle-preserve_anycaps.t at line 29.
#          got: 'Explicaci?N D?L Significado de Los T?Rminos Utilizados En "Don Quijote", Por Cap?Tulo.'
#     expected: 'Explicaci?n D?l Significado de Los T?rminos Utilizados En "Don Quijote", Por Cap?tulo.'
t/005-captitle-preserve_anycaps...................NOK 72                     
#   Failed test 'test: Didaktische ?berlegungen/Erfahrungsbericht ?ber den Computereinsatz im geisteswissenschaftlichen Unterricht am Bsp. "Historische Zeitung"'
#   in t/005-captitle-preserve_anycaps.t at line 29.
#          got: 'Didaktische ?Berlegungen/Erfahrungsbericht ?Ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
#     expected: 'Didaktische ?berlegungen/Erfahrungsbericht ?ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
# Looks like you failed 3 tests of 75.
t/005-captitle-preserve_anycaps...................dubious                    
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 12, 40, 72
        Failed 3/75 tests, 96.00% okay
t/006-captitle-preserve_allcaps_and_whitespace....NOK 12                     
#   Failed test 'test: ?ber maus'
#   in t/006-captitle-preserve_allcaps_and_whitespace.t at line 28.
#          got: '?Ber Maus'
#     expected: '?ber Maus'
t/006-captitle-preserve_allcaps_and_whitespace....NOK 40                     
#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/006-captitle-preserve_allcaps_and_whitespace.t at line 28.
#          got: 'Explicaci?N D?L Significado de Los T?Rminos Utilizados En "Don Quijote", Por Cap?Tulo.'
#     expected: 'Explicaci?n D?l Significado de Los T?rminos Utilizados En "Don Quijote", Por Cap?tulo.'

t/006-captitle-preserve_allcaps_and_whitespace....NOK 72#   Failed test 'test: Didaktische ?berlegungen/Erfahrungsbericht ?ber den Computereinsatz im geisteswissenschaftlichen Unterricht am Bsp. "Historische Zeitung"'
#   in t/006-captitle-preserve_allcaps_and_whitespace.t at line 28.
#          got: 'Didaktische ?Berlegungen/Erfahrungsbericht ?Ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
#     expected: 'Didaktische ?berlegungen/Erfahrungsbericht ?ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
# Looks like you failed 3 tests of 75.
t/006-captitle-preserve_allcaps_and_whitespace....dubious                    
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 12, 40, 72
        Failed 3/75 tests, 96.00% okay
t/007-captitle-preserve_anycaps_and_whitespace....NOK 12                     
#   Failed test 'test: ?ber maus'
#   in t/007-captitle-preserve_anycaps_and_whitespace.t at line 28.
#          got: '?Ber Maus'
#     expected: '?ber Maus'
t/007-captitle-preserve_anycaps_and_whitespace....NOK 40                     
#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/007-captitle-preserve_anycaps_and_whitespace.t at line 28.
#          got: 'Explicaci?N D?L Significado de Los T?Rminos Utilizados En "Don Quijote", Por Cap?Tulo.'
#     expected: 'Explicaci?n D?l Significado de Los T?rminos Utilizados En "Don Quijote", Por Cap?tulo.'
t/007-captitle-preserve_anycaps_and_whitespace....NOK 72                     
#   Failed test 'test: Didaktische ?berlegungen/Erfahrungsbericht ?ber den Computereinsatz im geisteswissenschaftlichen Unterricht am Bsp. "Historische Zeitung"'
#   in t/007-captitle-preserve_anycaps_and_whitespace.t at line 28.
#          got: 'Didaktische ?Berlegungen/Erfahrungsbericht ?Ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
#     expected: 'Didaktische ?berlegungen/Erfahrungsbericht ?ber Den Computereinsatz Im Geisteswissenschaftlichen Unterricht Am Bsp. "Historische Zeitung"'
# Looks like you failed 3 tests of 75.
t/007-captitle-preserve_anycaps_and_whitespace....dubious                    
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 12, 40, 72
        Failed 3/75 tests, 96.00% okay
t/008-random_case.................................ok 1/75                    
t/008-random_case.................................NOK 23#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/008-random_case.t at line 40.
#          got: 'ExPlIcACI?n d?L SIGNIFICadO de LOS t?RmiNos UtIlIZAdoS eN "dON QuIJote", pOr CAp?TuLO.'
#     expected: 'ExPlIcACI?n d?L SIGNIFICadO de LOS t?RmiNos UtIlIZAdoS eN "dON QuIJote", pOr CAp?TuLO.'
t/008-random_case.................................NOK 62                     
#   Failed test 'test: o? l'on d?couvre une ?poque ? travers l'oeuvre imposante d'Honor? de Balzac'
#   in t/008-random_case.t at line 40.
#          got: 'o? L'on D?couvRe UnE ?PoquE ? TrAverS l'oeUvrE IMpoSaNtE d'honor? DE BALZAC'
#     expected: 'o? L'on D?couvRe UnE ?PoquE ? TrAverS l'oeUvrE IMpoSaNtE d'honor? DE BALZAC'

t/008-random_case.................................NOK 73#   Failed test 'test: ?v?que, qu'il e?t aim? voir infliger ? ceux qui ont abdiqu?, J'ai ?t? re?u, and pepe le peau'
#   in t/008-random_case.t at line 40.
#          got: '?v?Que, Qu'iL e?T AIM? vOiR inflIgER ? ceux quI onT AbdiQu?, J'aI ?T? RE?U, and pepe lE peaU'
#     expected: '?v?Que, Qu'iL e?T AIM? vOiR inflIgER ? ceux quI onT AbdiQu?, J'aI ?T? RE?U, and pepe lE peaU'
t/008-random_case.................................NOK 74                     
#   Failed test 'test: ?ber maus'
#   in t/008-random_case.t at line 40.
#          got: '?beR mAuS'
#     expected: '?beR mAuS'
# Looks like you failed 4 tests of 75.
t/008-random_case.................................dubious                    
        Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 23, 62, 73-74
        Failed 4/75 tests, 94.67% okay
t/009-scramble_case...............................NOK 23                     
#   Failed test 'test: Explicaci?n d?l significado de los t?rminos utilizados en "Don Quijote", por cap?tulo.'
#   in t/009-scramble_case.t at line 40.
#          got: 'ExPlicACI?n D?L SiGNiFICadO de LOS t?RmiNos UtIlIZAdoS eN "dON QuIJote", pOr CAp?TuLO.'
#     expected: 'ExPlicACI?n D?L SiGNiFICadO de LOS t?RmiNos UtIlIZAdoS eN "dON QuIJote", pOr CAp?TuLO.'
t/009-scramble_case...............................NOK 62                     
#   Failed test 'test: o? l'on d?couvre une ?poque ? travers l'oeuvre imposante d'Honor? de Balzac'
#   in t/009-scramble_case.t at line 40.
#          got: 'o? L'on D?couvRe UnE ?PoquE ? TrAverS l'oeUvrE IMpoSaNtE d'honor? DE BALZAC'
#     expected: 'o? L'on D?couvRe UnE ?PoquE ? TrAverS l'oeUvrE IMpoSaNtE d'honor? DE BALZAC'
t/009-scramble_case...............................NOK 73                     
#   Failed test 'test: ?v?que, qu'il e?t aim? voir infliger ? ceux qui ont abdiqu?, J'ai ?t? re?u, and pepe le peau'
#   in t/009-scramble_case.t at line 40.
#          got: '?v?Que, Qu'iL e?T AIM? vOiR inflIgER ? ceux quI onT AbdIQu?, J'aI ?T? RE?U, and pepe lE peaU'
#     expected: '?v?Que, Qu'iL e?T AIM? vOiR inflIgER ? ceux quI onT AbdIQu?, J'aI ?T? RE?U, and pepe lE peaU'
# Looks like you failed 3 tests of 75.
t/009-scramble_case...............................dubious                    
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 23, 62, 73
        Failed 3/75 tests, 96.00% okay
Failed Test                       Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/002-captitle-default.t             3   768    76    3   3.95%  12 40 72
t/003-captitle-preserve_whitespac    3   768    75    3   4.00%  12 40 72
t/004-captitle-preserve_allcaps.t    3   768    75    3   4.00%  12 40 72
t/005-captitle-preserve_anycaps.t    3   768    75    3   4.00%  12 40 72
t/006-captitle-preserve_allcaps_a    3   768    75    3   4.00%  12 40 72
t/007-captitle-preserve_anycaps_a    3   768    75    3   4.00%  12 40 72
t/008-random_case.t                  4  1024    75    4   5.33%  23 62 73-74
t/009-scramble_case.t                3   768    75    3   4.00%  23 62 73
Failed 8/9 test scripts, 11.11% okay. 25/603 subtests failed, 95.85% okay.
*** Error code 3

Stop in /home/aaron/BSD/p5-Text-Capitalize/work/Text-Capitalize-0.4.


This happened on a 5.4-RELEASE box running Perl 5.8.7.

Cheers!
Aaron Dalton
aaron@FreeBSD.org
FreeBSD Ports Committer
Comment 3 Aaron Dalton freebsd_committer freebsd_triage 2005-11-25 01:04:39 UTC
State Changed
From-To: open->feedback

Sent back to submitter to investigate 'make test' problems.
Comment 4 Aaron Dalton freebsd_committer freebsd_triage 2005-11-25 15:24:06 UTC
Dmitry Marakasov wrote:
> Sorry, that's my first perl module port, and I didn't find any specific
> documentation on porting perl modules, so I didn't notice that problem.
> 

No worries!  The port itself looks fine.  One of the best ways to figure 
it out is to look at existing ports.  One day I'll get a Perl howto done 
up.  It was a problem for me too.

--SNIP--

> So, what should I do now? Is `make test' invoked when building a port
> under some circumstances? Am I to supply a patch? Can't come with
> anything more clever than adding...
> 

No, 'make test' is not yet invoked during the build process, but is 
something one should always do manually to make sure the port indeed 
works on the BSD platform.  This is definitely a problem the module 
author himself should address.  I would file a bug report with him 
including your patch and see if he is responsive enough to release a new 
version right away.  If he ignores you, or if it is for some reason 
important to get this port committed right away, then add the patch 
yourself as described in the Porters Handbook and resubmit a new shar 
(by email, no need to open a new PR).  Otherwise just wait and resubmit 
with the updated version number.

Let me know if you have any questions or problems.  (Also, please use 
Reply-All so that the PR database can keep track of our communications.)

Cheers!
-- 
Aaron Dalton
aaron@FreeBSD.org
FreeBSD Ports Committer
Comment 5 Aaron Dalton freebsd_committer freebsd_triage 2006-02-17 23:37:47 UTC
State Changed
From-To: feedback->closed
Comment 6 Aaron Dalton freebsd_committer freebsd_triage 2006-02-17 23:38:17 UTC
State Changed
From-To: closed->closed

Superceded by ports/92856