Index: head/games/cowsay/Makefile =================================================================== --- head/games/cowsay/Makefile (revision 417529) +++ head/games/cowsay/Makefile (revision 417530) @@ -1,27 +1,34 @@ # Created by: Kris Kennaway # $FreeBSD$ PORTNAME= cowsay -PORTVERSION= 3.03 -PORTREVISION= 2 +PORTVERSION= 3.04 +DISTVERSIONPREFIX= cowsay- CATEGORIES= games -MASTER_SITES= SF/lifanov-ports-distfiles/${CATEGORIES}/${PORTNAME} MAINTAINER= lifanov@mail.lifanov.com COMMENT= Configurable talking characters in ASCII art +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + USES= perl5 +USE_GITHUB= yes + +GH_ACCOUNT= tnalpgge +GH_PROJECT= rank-amateur-cowsay + NO_BUILD= # defined post-patch: @${REINPLACE_CMD} 's,usethisperl=.*,usethisperl=${PERL},' ${WRKSRC}/install.sh do-install: cd ${WRKSRC}; ${SH} install.sh ${STAGEDIR}${PREFIX} @${SED} -i '' 's,${STAGEDIR},,' ${STAGEDIR}${PREFIX}/bin/cowsay - @${INSTALL_DATA} ${FILESDIR}/box.cow ${STAGEDIR}${PREFIX}/share/cows - @${INSTALL_DATA} ${FILESDIR}/jkh.cow ${STAGEDIR}${PREFIX}/share/cows - @${INSTALL_DATA} ${FILESDIR}/tux-stab.cow ${STAGEDIR}${PREFIX}/share/cows + ${INSTALL_DATA} ${FILESDIR}/box.cow ${STAGEDIR}${PREFIX}/share/cows + ${INSTALL_DATA} ${FILESDIR}/jkh.cow ${STAGEDIR}${PREFIX}/share/cows + ${INSTALL_DATA} ${FILESDIR}/tux-stab.cow ${STAGEDIR}${PREFIX}/share/cows .include Index: head/games/cowsay/distinfo =================================================================== --- head/games/cowsay/distinfo (revision 417529) +++ head/games/cowsay/distinfo (revision 417530) @@ -1,3 +1,3 @@ -TIMESTAMP = 1464980374 -SHA256 (cowsay-3.03.tar.gz) = 0b8672a7ac2b51183780db72618b42af8ec1ce02f6c05fe612510b650540b2af -SIZE (cowsay-3.03.tar.gz) = 15189 +TIMESTAMP = 1466936737 +SHA256 (tnalpgge-rank-amateur-cowsay-cowsay-3.04_GH0.tar.gz) = d8b871332cfc1f0b6c16832ecca413ca0ac14d58626491a6733829e3d655878b +SIZE (tnalpgge-rank-amateur-cowsay-cowsay-3.04_GH0.tar.gz) = 31961 Index: head/games/cowsay/files/patch-cowsay =================================================================== --- head/games/cowsay/files/patch-cowsay (revision 417529) +++ head/games/cowsay/files/patch-cowsay (revision 417530) @@ -1,35 +1,34 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/03/25 20:13:24 jlam Exp $ ---- cowsay.orig Thu Nov 4 11:29:53 1999 -+++ cowsay Sat Mar 25 12:07:09 2000 +--- cowsay.orig 2016-06-25 02:45:15 UTC ++++ cowsay @@ -7,7 +7,7 @@ ## use Text::Tabs qw(expand); -use Text::Wrap qw(wrap fill $columns); +use Text::Wrap qw(wrap $columns); use File::Basename; use Getopt::Std; use Cwd; -@@ -180,4 +180,21 @@ - Usage: $progname [-bdgpstwy] [-h] [-e eyes] [-f cowfile] +@@ -185,3 +185,20 @@ Usage: $progname [-bdgpstwy] [-h] [-e ey [-l] [-n] [-T tongue] [-W wrapcolumn] [message] EOF -+} + } + +sub fill { + my ($ip, $xp, @raw) = @_; + my @para; + my $pp; + + for $pp (split(/\n\s+/, join("\n",@raw))) { + $pp =~ s/\s+/ /g; + my $x = wrap($ip, $xp, $pp); + push(@para, $x); + } + + # if paragraph_indent is the same as line_indent, + # separate paragraphs with blank lines + + return join ($ip eq $xp ? "\n\n" : "\n", @para); - } ++} Index: head/games/cowsay/pkg-descr =================================================================== --- head/games/cowsay/pkg-descr (revision 417529) +++ head/games/cowsay/pkg-descr (revision 417530) @@ -1,5 +1,5 @@ cowsay is a configurable talking ASCII cow (and other characters), written in Perl. It operates much as the figlet program does, and is written in the same spirit of silliness. -WWW: http://www.nog.net/~tony/warez/cowsay.shtml +WWW: https://github.com/tnalpgge/rank-amateur-cowsay Index: head/games/cowsay/pkg-plist =================================================================== --- head/games/cowsay/pkg-plist (revision 417529) +++ head/games/cowsay/pkg-plist (revision 417530) @@ -1,54 +1,62 @@ bin/cowsay bin/cowthink man/man1/cowsay.1.gz man/man1/cowthink.1.gz +share/cows/DragonAndCow.pm +share/cows/Example.pm +share/cows/Frogs.pm +share/cows/MechAndCow.pm +share/cows/Stegosaurus.pm +share/cows/TextBalloon.pm +share/cows/TuxStab.pm share/cows/beavis.zen.cow +share/cows/blowfish.cow share/cows/bong.cow share/cows/box.cow share/cows/bud-frogs.cow share/cows/bunny.cow share/cows/cheese.cow share/cows/cower.cow share/cows/daemon.cow share/cows/default.cow share/cows/dragon-and-cow.cow share/cows/dragon.cow share/cows/elephant-in-snake.cow share/cows/elephant.cow share/cows/eyes.cow share/cows/flaming-sheep.cow share/cows/ghostbusters.cow share/cows/head-in.cow share/cows/hellokitty.cow share/cows/jkh.cow share/cows/kiss.cow share/cows/kitty.cow share/cows/koala.cow share/cows/kosh.cow share/cows/luke-koala.cow share/cows/mech-and-cow share/cows/meow.cow share/cows/milk.cow share/cows/moofasa.cow share/cows/moose.cow share/cows/mutilated.cow share/cows/ren.cow share/cows/satanic.cow share/cows/sheep.cow share/cows/skeleton.cow share/cows/small.cow share/cows/sodomized.cow share/cows/stegosaurus.cow share/cows/stimpy.cow share/cows/supermilker.cow share/cows/surgery.cow share/cows/telebears.cow share/cows/three-eyes.cow share/cows/turkey.cow share/cows/turtle.cow -share/cows/tux.cow share/cows/tux-stab.cow +share/cows/tux.cow share/cows/udder.cow share/cows/vader-koala.cow share/cows/vader.cow share/cows/www.cow