[Midnightbsd-cvs] mports [20196] trunk/games/cowsay: fix a man page install

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Sep 11 22:19:54 EDT 2015


Revision: 20196
          http://svnweb.midnightbsd.org/mports/?rev=20196
Author:   laffer1
Date:     2015-09-11 22:19:53 -0400 (Fri, 11 Sep 2015)
Log Message:
-----------
fix a man page install

Modified Paths:
--------------
    trunk/games/cowsay/Makefile
    trunk/games/cowsay/pkg-plist

Added Paths:
-----------
    trunk/games/cowsay/files/patch-cowsay

Removed Paths:
-------------
    trunk/games/cowsay/files/patch-aa

Modified: trunk/games/cowsay/Makefile
===================================================================
--- trunk/games/cowsay/Makefile	2015-09-12 02:15:15 UTC (rev 20195)
+++ trunk/games/cowsay/Makefile	2015-09-12 02:19:53 UTC (rev 20196)
@@ -3,7 +3,7 @@
 
 PORTNAME=	cowsay
 PORTVERSION=	3.03
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	http://www.nog.net/~tony/warez/
 
@@ -15,9 +15,6 @@
 
 NO_BUILD=	# defined
 
-MAN1=		cowsay.1
-MLINKS=		cowsay.1 cowthink.1
-
 do-install:
 	cd ${WRKSRC}; ${SH} install.sh ${PREFIX}
 	@${INSTALL_DATA} ${FILESDIR}/box.cow ${PREFIX}/share/cows

Deleted: trunk/games/cowsay/files/patch-aa
===================================================================
--- trunk/games/cowsay/files/patch-aa	2015-09-12 02:15:15 UTC (rev 20195)
+++ trunk/games/cowsay/files/patch-aa	2015-09-12 02:19:53 UTC (rev 20196)
@@ -1,42 +0,0 @@
---- cowsay.orig	Fri May 19 21:29:49 2000
-+++ cowsay	Thu Apr  3 20:58:49 2008
-@@ -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;
-@@ -16,7 +16,7 @@
- $progname = basename($0);
- $eyes = "oo";
- $tongue = "  ";
--$cowpath = $ENV{'COWPATH'} || '%PREFIX%/share/cows';
-+$cowpath = $ENV{'COWPATH'} || '/usr/local/share/cows';
- @message = ();
- $thoughts = "";
- 
-@@ -184,4 +184,21 @@
- Usage: $progname [-bdgpstwy] [-h] [-e eyes] [-f cowfile] 
-           [-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", at 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);
- }

Copied: trunk/games/cowsay/files/patch-cowsay (from rev 20176, trunk/games/cowsay/files/patch-aa)
===================================================================
--- trunk/games/cowsay/files/patch-cowsay	                        (rev 0)
+++ trunk/games/cowsay/files/patch-cowsay	2015-09-12 02:19:53 UTC (rev 20196)
@@ -0,0 +1,42 @@
+--- cowsay.orig	Fri May 19 21:29:49 2000
++++ cowsay	Thu Apr  3 20:58:49 2008
+@@ -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;
+@@ -16,7 +16,7 @@
+ $progname = basename($0);
+ $eyes = "oo";
+ $tongue = "  ";
+-$cowpath = $ENV{'COWPATH'} || '%PREFIX%/share/cows';
++$cowpath = $ENV{'COWPATH'} || '/usr/local/share/cows';
+ @message = ();
+ $thoughts = "";
+ 
+@@ -184,4 +184,21 @@
+ Usage: $progname [-bdgpstwy] [-h] [-e eyes] [-f cowfile] 
+           [-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", at 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);
+ }

Modified: trunk/games/cowsay/pkg-plist
===================================================================
--- trunk/games/cowsay/pkg-plist	2015-09-12 02:15:15 UTC (rev 20195)
+++ trunk/games/cowsay/pkg-plist	2015-09-12 02:19:53 UTC (rev 20196)
@@ -1,5 +1,6 @@
 bin/cowsay
 bin/cowthink
+man/man1/cowsay.1.gz
 share/cows/beavis.zen.cow
 share/cows/bong.cow
 share/cows/box.cow
@@ -50,4 +51,3 @@
 share/cows/vader-koala.cow
 share/cows/vader.cow
 share/cows/www.cow
- at dirrm share/cows



More information about the Midnightbsd-cvs mailing list