[50015] trunk/dports/lang/nawk

toby at macports.org toby at macports.org
Tue Apr 21 23:58:19 PDT 2009


Revision: 50015
          http://trac.macports.org/changeset/50015
Author:   toby at macports.org
Date:     2009-04-21 23:58:18 -0700 (Tue, 21 Apr 2009)
Log Message:
-----------
awk 20071023

Modified Paths:
--------------
    trunk/dports/lang/nawk/Portfile
    trunk/dports/lang/nawk/files/patch-run.c

Added Paths:
-----------
    trunk/dports/lang/nawk/files/patch-makefile

Modified: trunk/dports/lang/nawk/Portfile
===================================================================
--- trunk/dports/lang/nawk/Portfile	2009-04-22 06:52:54 UTC (rev 50014)
+++ trunk/dports/lang/nawk/Portfile	2009-04-22 06:58:18 UTC (rev 50015)
@@ -2,33 +2,33 @@
 
 PortSystem 1.0
 name             nawk
-version          20070501
+version          20071023
 categories       lang
 maintainers      nomaintainer
 description      the one true awk
 long_description Kernighan's canonical implementation of awk.
-homepage         http://cm.bell-labs.com/cm/cs/awkbook/
+homepage         http://www.cs.princeton.edu/~bwk/btl.mirror/
 platforms        darwin
 
-master_sites     http://cm.bell-labs.com/cm/cs/who/bwk/
+master_sites     ${homepage}
 distname         awk
-checksums        md5 b63342525afee1cc5e3a4211cbf87fae
+checksums        md5 6678ed668b12c5f3051a6e88732c23d8 \
+                 sha1 433317b8ed6d68bbfb18667384edfe64344b8074 \
+                 rmd160 d06c8dddbd1086e853b45738c56a4f507cbcd402
 dist_subdir      ${name}/${version}
 
-patchfiles       patch-run.c
+extract.mkdir    yes
 
-pre-extract {
-	file mkdir ${worksrcpath}
+patchfiles       patch-makefile patch-run.c
+
+configure {
+	reinplace s|__CFLAGS__|${configure.cflags}| ${worksrcpath}/makefile
+	reinplace s|__CC__|${configure.cc}| ${worksrcpath}/makefile
 }
 
-extract.dir      ${worksrcpath}
-
-use_configure    no
-
 build.target
-build.args       CFLAGS="-DHAS_ISBLANK"
 
 destroot {
 	xinstall ${worksrcpath}/a.out ${destroot}${prefix}/bin/nawk
-	xinstall ${worksrcpath}/awk.1 ${destroot}${prefix}/share/man/man1
+	xinstall ${worksrcpath}/awk.1 ${destroot}${prefix}/share/man/man1/nawk.1
 }

Added: trunk/dports/lang/nawk/files/patch-makefile
===================================================================
--- trunk/dports/lang/nawk/files/patch-makefile	                        (rev 0)
+++ trunk/dports/lang/nawk/files/patch-makefile	2009-04-22 06:58:18 UTC (rev 50015)
@@ -0,0 +1,19 @@
+--- makefile.orig	2009-04-21 23:56:03.000000000 -0700
++++ makefile	2009-04-21 23:56:05.000000000 -0700
+@@ -24,14 +24,14 @@
+ 
+ CFLAGS = -g
+ CFLAGS = -O2
+-CFLAGS =
++CFLAGS = -DHAS_ISBLANK __CFLAGS__
+ 
+ CC = gcc -Wall -g -Wwrite-strings
+ CC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov
+ CC = gcc -Wall -g
+ CC = cc
+ CC = gcc -O4
+-CC = gcc -Wall -g
++CC = __CC__ -Wall -g
+ 
+ 
+ YACC = bison -y

Modified: trunk/dports/lang/nawk/files/patch-run.c
===================================================================
--- trunk/dports/lang/nawk/files/patch-run.c	2009-04-22 06:52:54 UTC (rev 50014)
+++ trunk/dports/lang/nawk/files/patch-run.c	2009-04-22 06:58:18 UTC (rev 50015)
@@ -1,6 +1,6 @@
 --- run.c.orig	Tue Dec 28 23:53:45 2004
 +++ run.c	Tue Dec 28 23:53:57 2004
-@@ -900,7 +900,7 @@
+@@ -902,7 +902,7 @@
  			break;
  		case 'f':	sprintf(p, fmt, getfval(x)); break;
  		case 'd':	sprintf(p, fmt, (long) getfval(x)); break;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090421/9921a6b7/attachment-0001.html>


More information about the macports-changes mailing list