[113606] trunk/dports/textproc/ascii

ryandesign at macports.org ryandesign at macports.org
Wed Nov 20 09:39:03 PST 2013


Revision: 113606
          https://trac.macports.org/changeset/113606
Author:   ryandesign at macports.org
Date:     2013-11-20 09:39:03 -0800 (Wed, 20 Nov 2013)
Log Message:
-----------
ascii: update to 3.12 (#41456); license BSD; install documentation files; ensure we're UsingTheRightCompiler and -arch flags and add universal variant; the patch to the Makefile to support CFLAGS and PREFIX will be sent upstream

Modified Paths:
--------------
    trunk/dports/textproc/ascii/Portfile

Added Paths:
-----------
    trunk/dports/textproc/ascii/files/
    trunk/dports/textproc/ascii/files/patch-Makefile.diff

Modified: trunk/dports/textproc/ascii/Portfile
===================================================================
--- trunk/dports/textproc/ascii/Portfile	2013-11-20 17:27:38 UTC (rev 113605)
+++ trunk/dports/textproc/ascii/Portfile	2013-11-20 17:39:03 UTC (rev 113606)
@@ -4,10 +4,11 @@
 PortSystem          1.0
 
 name                ascii
-version             3.8
+version             3.12
 categories          textproc
 platforms           darwin
 maintainers         ryandesign openmaintainer
+license             BSD
 
 description         provides conversion between ASCII character tables
 
@@ -16,17 +17,29 @@
                     Information Interchange (ASCII) character table
 
 homepage            http://www.catb.org/~esr/ascii/
-master_sites        http://www.catb.org/~esr/ascii/
+master_sites        ${homepage}
 
-checksums           md5     8fb7540bf2a7a8e1fa0086708ed9b881
+checksums           rmd160  236ae16e87f7cf03bfd9090df5017140a013d123 \
+                    sha256  911906bb95c2e243df458df7f67cc090e16ac1a35a954c4154ea7fb85aad509e
 
+patchfiles          patch-Makefile.diff
+
 use_configure       no
 
-build.target
+variant universal {}
 
-destroot {
-    xinstall -m 755 ${worksrcpath}/ascii ${destroot}${prefix}/bin
-    xinstall -m 644 ${worksrcpath}/ascii.1 ${destroot}${prefix}/share/man/man1
+build.args          CC=${configure.cc} \
+                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]"
+
+destroot.args       PREFIX=${prefix}
+
+post-destroot {
+    set docdir ${prefix}/share/doc/${subport}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        COPYING \
+        README \
+        ${destroot}${docdir}
 }
 
 livecheck.type      regex

Added: trunk/dports/textproc/ascii/files/patch-Makefile.diff
===================================================================
--- trunk/dports/textproc/ascii/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/textproc/ascii/files/patch-Makefile.diff	2013-11-20 17:39:03 UTC (rev 113606)
@@ -0,0 +1,33 @@
+--- Makefile.orig	2012-11-23 00:57:11.000000000 -0600
++++ Makefile	2013-11-20 11:35:36.000000000 -0600
+@@ -4,10 +4,12 @@
+ 
+ CFLAGS = -O
+ 
++PREFIX = /usr
++
+ all: ascii ascii.1
+ 
+ ascii: ascii.c splashscreen.h nametable.h
+-	$(CC) -DREVISION=$(VERS) ascii.c -o ascii
++	$(CC) $(CFLAGS) -DREVISION=$(VERS) ascii.c -o ascii
+ 
+ splashscreen.h: splashscreen
+ 	sed <splashscreen >splashscreen.h -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/.*/P("&");/' 
+@@ -30,12 +32,12 @@
+ 	splint -I. -DREVISION=$(VERS) $(SPLINTOPTS) ascii.c
+ 
+ install: ascii ascii.1
+-	cp ascii $(DESTDIR)/usr/bin/ascii
+-	cp ascii.1 $(DESTDIR)/usr/share/man/man1
++	cp ascii $(DESTDIR)$(PREFIX)/bin/ascii
++	cp ascii.1 $(DESTDIR)$(PREFIX)/share/man/man1
+ 
+ uninstall:
+-	rm $(DESTDIR)/usr/bin/ascii
+-	rm $(DESTDIR)/usr/share/man/man1/ascii.1
++	rm $(DESTDIR)$(PREFIX)/bin/ascii
++	rm $(DESTDIR)$(PREFIX)/share/man/man1/ascii.1
+ 
+ SOURCES = README COPYING control Makefile ascii.c ascii.xml splashscreen nametable ascii.cgi
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131120/874bdc3d/attachment.html>


More information about the macports-changes mailing list