[89682] trunk/dports/games/fortune/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Feb 6 11:23:52 PST 2012


Revision: 89682
          http://trac.macports.org/changeset/89682
Author:   ryandesign at macports.org
Date:     2012-02-06 11:23:51 -0800 (Mon, 06 Feb 2012)
Log Message:
-----------
fortune: whitespace changes / reformatting / add modeline

Modified Paths:
--------------
    trunk/dports/games/fortune/Portfile

Modified: trunk/dports/games/fortune/Portfile
===================================================================
--- trunk/dports/games/fortune/Portfile	2012-02-06 18:54:41 UTC (rev 89681)
+++ trunk/dports/games/fortune/Portfile	2012-02-06 19:23:51 UTC (rev 89682)
@@ -1,69 +1,73 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
-name			fortune
-version			6.2.0-RELEASE
-categories		games
-license			BSD
-installs_libs	no
-maintainers		nomaintainer
-description		Infamous electronic fortune-cookie generator
-long_description	${description}
-platforms		darwin freebsd
-homepage		http://www.freebsd.org/
-use_bzip2		yes
+name                fortune
+version             6.2.0-RELEASE
+categories          games
+platforms           darwin freebsd
+maintainers         nomaintainer
+license             BSD
+installs_libs       no
 
-master_sites    macports
+description         Infamous electronic fortune-cookie generator
 
-checksums		md5 6185fe31e512e8b23ac5cc58ede27919
+long_description    ${description}
 
-worksrcdir		${name}
+homepage            http://www.freebsd.org/
+master_sites        macports
+use_bzip2           yes
 
-patchfiles	\
-		patch-fortune-Makefile patch-strfile-Makefile \
-		patch-unstr-Makefile patch-datfiles-Makefile \
-		patch-strfile.h
+checksums           md5     6185fe31e512e8b23ac5cc58ede27919
 
+worksrcdir          ${name}
+
+patchfiles          patch-fortune-Makefile \
+                    patch-strfile-Makefile \
+                    patch-unstr-Makefile \
+                    patch-datfiles-Makefile \
+                    patch-strfile.h
+
 post-patch {
-	reinplace "s|/usr|${prefix}|" ${worksrcpath}/fortune/pathnames.h
-	reinplace "s|/usr/share|${prefix}/share|" ${worksrcpath}/fortune/fortune.6
-	reinplace "s|/usr/games/fortune|${prefix}/bin/fortune|" ${worksrcpath}/fortune/fortune.6
-	reinplace "s|XXPREFIX|${prefix}|" ${worksrcpath}/fortune/Makefile
+    reinplace "s|/usr|${prefix}|" ${worksrcpath}/fortune/pathnames.h
+    reinplace "s|/usr/share|${prefix}/share|" ${worksrcpath}/fortune/fortune.6
+    reinplace "s|/usr/games/fortune|${prefix}/bin/fortune|" ${worksrcpath}/fortune/fortune.6
+    reinplace "s|XXPREFIX|${prefix}|" ${worksrcpath}/fortune/Makefile
 }
 
-use_configure	no
+use_configure       no
 
 variant universal {}
 
-build.type		bsd
+build.type          bsd
 
-build.env-append	CFLAGS="[get_canonical_archflags]" \
-					CC=${configure.cc}
+build.env-append    CFLAGS="[get_canonical_archflags]" \
+                    CC=${configure.cc}
 
 set datfiles "fortunes fortunes.dat fortunes-o fortunes-o.dat \
-		fortunes2-o fortunes2-o.dat limerick \
-		limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
-		startrek startrek.dat zippy zippy.dat"
+        fortunes2-o fortunes2-o.dat limerick \
+        limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
+        startrek startrek.dat zippy zippy.dat"
 
 destroot {
-	xinstall -m 755 -d ${destroot}${prefix}/share/games/fortune
-	xinstall -m 755 ${worksrcpath}/fortune/fortune \
-		${worksrcpath}/strfile/strfile ${worksrcpath}/unstr/unstr \
-		${destroot}${prefix}/bin
-	xinstall -m 644 ${worksrcpath}/fortune/fortune.6.gz \
-		${destroot}${prefix}/share/man/man6
-	xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
-		${destroot}${prefix}/share/man/man8
-	xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
-		${destroot}${prefix}/share/man/man8/unstr.8.gz
-	
-	foreach datfile $datfiles {
-		file copy ${worksrcpath}/datfiles/${datfile} \
-			${destroot}${prefix}/share/games/fortune
-	}
+    xinstall -m 755 -d ${destroot}${prefix}/share/games/fortune
+    xinstall -m 755 ${worksrcpath}/fortune/fortune \
+        ${worksrcpath}/strfile/strfile ${worksrcpath}/unstr/unstr \
+        ${destroot}${prefix}/bin
+    xinstall -m 644 ${worksrcpath}/fortune/fortune.6.gz \
+        ${destroot}${prefix}/share/man/man6
+    xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
+        ${destroot}${prefix}/share/man/man8
+    xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
+        ${destroot}${prefix}/share/man/man8/unstr.8.gz
+    
+    foreach datfile $datfiles {
+        file copy ${worksrcpath}/datfiles/${datfile} \
+            ${destroot}${prefix}/share/games/fortune
+    }
 }
 
 platform darwin {
-        patchfiles-append patch-fortune.c patch-strfile.c patch-unstr.c
+    patchfiles-append patch-fortune.c patch-strfile.c patch-unstr.c
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120206/542a720a/attachment.html>


More information about the macports-changes mailing list