[49252] trunk/dports/textproc/figlet

toby at macports.org toby at macports.org
Mon Apr 6 00:34:35 PDT 2009


Revision: 49252
          http://trac.macports.org/changeset/49252
Author:   toby at macports.org
Date:     2009-04-06 00:34:34 -0700 (Mon, 06 Apr 2009)
Log Message:
-----------
significant cleanup, universal build, warning fix, etc

Modified Paths:
--------------
    trunk/dports/textproc/figlet/Portfile
    trunk/dports/textproc/figlet/files/patch-Makefile

Modified: trunk/dports/textproc/figlet/Portfile
===================================================================
--- trunk/dports/textproc/figlet/Portfile	2009-04-06 07:33:41 UTC (rev 49251)
+++ trunk/dports/textproc/figlet/Portfile	2009-04-06 07:34:34 UTC (rev 49252)
@@ -1,29 +1,35 @@
 # $Id$
 
-PortSystem		1.0
+PortSystem 1.0
 
-name			figlet
-version			2.2.2
+name            figlet
+version         2.2.2
+categories      textproc amusements
+maintainers     toby
+description     banner-like program prints strings as ASCII art
+long_description \
+    FIGlet is a program for making large letters out of ordinary text
+homepage        http://www.figlet.org/
+platforms       darwin freebsd
 
-categories		textproc amusements
-maintainers		nomaintainer
+master_sites    ftp://ftp.figlet.org/pub/figlet/program/unix/
+distname        ${name}[string map {"." ""} ${version}]
 
-description		banner-like program prints strings as ASCII art
-long_description	FIGlet is a program for making large letters out of ordinary text
+checksums       md5 9fcf4f1651b8e6d3f56f1ef665285b2e \
+                sha1 138aa027f90c0d68429c7b71af4e51c176bab92b \
+                rmd160 fc39809b1f5d5e498d722d49ae88132528633d9f
 
-homepage		http://www.figlet.org/
-platforms		darwin freebsd
+patchfiles      patch-Makefile patch-figlet.6 patch-chkfont.c
 
-master_sites	ftp://ftp.informatik.rwth-aachen.de/pub/comp/Linux/gentoo/distfiles/ \
-				ftp://ftp.kaist.ac.kr/gentoo/distfiles/
-#				ftp://ftp.figlet.org/pub/figlet/program/unix/
-distname		"${name}[string map {"." ""} ${version}]"
+configure {
+    reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/Makefile"
+    reinplace "s|__CC__|${configure.cc}|" "${worksrcpath}/Makefile"
+    reinplace "s|__CFLAGS__|${configure.cflags}|" "${worksrcpath}/Makefile"
+}
 
-checksums		md5 9fcf4f1651b8e6d3f56f1ef665285b2e
-patchfiles		patch-Makefile patch-figlet.6
+destroot.destdir    DESTROOT=${destroot}
 
-use_configure	no
-
-build.env		PREFIX=$prefix
-
-destroot.destdir	PREFIX=${destroot}${prefix}
+post-destroot {
+    file attributes ${destroot}${prefix}/bin/figlist -permissions +x
+    file attributes ${destroot}${prefix}/bin/showfigfonts -permissions +x
+}

Modified: trunk/dports/textproc/figlet/files/patch-Makefile
===================================================================
--- trunk/dports/textproc/figlet/files/patch-Makefile	2009-04-06 07:33:41 UTC (rev 49251)
+++ trunk/dports/textproc/figlet/files/patch-Makefile	2009-04-06 07:34:34 UTC (rev 49252)
@@ -1,42 +1,28 @@
---- Makefile.orig	2005-07-05 02:57:46.000000000 -0700
-+++ Makefile	2006-09-24 07:55:17.000000000 -0700
+--- Makefile.orig	2009-04-06 00:19:30.000000000 -0700
++++ Makefile	2009-04-06 00:27:20.000000000 -0700
 @@ -11,19 +11,19 @@
  # Don't change this even if your shell is different. The only reason
  # for changing this is if sh is not in the same place.
  SHELL = /bin/sh
 -CC = gcc
 -CFLAGS = -g
-+CC ?= cc
-+#CFLAGS = -g
++CC = __CC__
++CFLAGS = __CFLAGS__
  
  # Where the executables should be put
 -DESTDIR = /usr/local/bin
-+DESTDIR = $(PREFIX)/bin
++DESTDIR = $(DESTROOT)__PREFIX__/bin
  
  # Where the man page should be put
 -MANDIR = /usr/local/man/man6
-+MANDIR = $(PREFIX)/share/man/man6
++MANDIR = $(DESTROOT)__PREFIX__/share/man/man6
  
  # Where figlet will search first for fonts (the ".flf" files).
 -DEFAULTFONTDIR = /usr/local/share/figlet
-+DEFAULTFONTDIR = $(PREFIX)/share/figlet
++DEFAULTFONTDIR = $(DESTROOT)__PREFIX__/share/figlet
  # Use this definition if you can't put things in /usr/local/share/figlet
 -DEFAULTFONTDIR = fonts
 +#DEFAULTFONTDIR = fonts
  
  # The filename of the font to be used if no other is specified
  #   (standard.flf is recommended, but any other can be used).
-@@ -47,6 +47,7 @@
- 
- chkfont: chkfont.c
- 	$(CC) $(CFLAGS) -o chkfont chkfont.c
-+	chmod a+x chkfont
- 
- clean:
- 	rm -f *.o figlet chkfont
-@@ -60,3 +61,5 @@
- 	cp showfigfonts $(DESTDIR)
- 	cp fonts/*.flf $(DEFAULTFONTDIR)
- 	cp fonts/*.flc $(DEFAULTFONTDIR)
-+	strip ${DESTDIR}/figlet ${DESTDIR}/chkfont
-+	chmod a+x ${DESTDIR}/figlist ${DESTDIR}/showfigfonts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090406/440d4544/attachment.html>


More information about the macports-changes mailing list