[148726] trunk/dports/graphics/xfig/Portfile

khindenburg at macports.org khindenburg at macports.org
Sun May 15 10:23:41 PDT 2016


Revision: 148726
          https://trac.macports.org/changeset/148726
Author:   khindenburg at macports.org
Date:     2016-05-15 10:23:41 -0700 (Sun, 15 May 2016)
Log Message:
-----------
xfig: add modeline + whitespace

Modified Paths:
--------------
    trunk/dports/graphics/xfig/Portfile

Modified: trunk/dports/graphics/xfig/Portfile
===================================================================
--- trunk/dports/graphics/xfig/Portfile	2016-05-15 16:30:12 UTC (rev 148725)
+++ trunk/dports/graphics/xfig/Portfile	2016-05-15 17:23:41 UTC (rev 148726)
@@ -1,3 +1,4 @@
+# -*- 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
@@ -2,61 +3,69 @@
 
-name			xfig
-version			3.2.5b
-revision		8
-categories		graphics x11
-license			Permissive
-maintainers		nomaintainer
-description		Facility for Interactive Generation of figures under X11
-long_description	\
-				Xfig is a menu-driven tool that allows the user to draw and \
-				manipulate objects interactively in an X window.  The \
-				resulting pictures can be saved, printed on PostScript \
-				printers or converted to a variety of other formats (e.g. to \
-				allow inclusion in LaTeX documents).
-homepage		http://xfig.org/
-platforms		darwin
-master_sites	sourceforge:mcj
-distname		${name}.${version}
-distfiles		${distname}.full${extract.suffix}
-checksums		md5     499b0ce103a6b353453bf7e327f9a3b9 \
-				sha1    0730d7e6bc217c0de02682efb0078821512bb542 \
-				rmd160  aad4cfd808c116d34218e9890a898652e4f52ab6
-depends_lib		port:Xaw3d \
-				port:xorg-libXi \
-				port:libpng \
-				port:jpeg \
-				port:zlib
-depends_run		port:ghostscript \
-				port:transfig
-use_xmkmf		yes
-xmkmf.args-append	\
-				-DUseSeparateConfDir=NO -DBuildHtmlManPages=NO
-patchfiles		patch-Imakefile \
-				patch-fig.h \
-                patch-f_util.c \
-                patch-w_keyboard.c \
-                patch-f_readeps.c \
-                patch-w_export.c \
-                patch-w_print.c \
-                patch-w_util.c \
-                patch-main_c.diff \
-                patch-libpng-1.5.diff
+name                xfig
+version             3.2.5b
+revision            8
+categories          graphics x11
+license             Permissive
+maintainers         nomaintainer
 
+description         Facility for Interactive Generation of figures under X11
+long_description    \
+    Xfig is a menu-driven tool that allows the user to draw and \
+    manipulate objects interactively in an X window.  The \
+    resulting pictures can be saved, printed on PostScript \
+    printers or converted to a variety of other formats (e.g. to \
+    allow inclusion in LaTeX documents).
+
+homepage            http://xfig.org/
+platforms           darwin
+master_sites        sourceforge:mcj
+
+distname            ${name}.${version}
+distfiles           ${distname}.full${extract.suffix}
+
+checksums           md5     499b0ce103a6b353453bf7e327f9a3b9 \
+                    sha1    0730d7e6bc217c0de02682efb0078821512bb542 \
+                    rmd160  aad4cfd808c116d34218e9890a898652e4f52ab6
+
+depends_lib         port:Xaw3d \
+                    port:xorg-libXi \
+                    port:libpng \
+                    port:jpeg \
+                    port:zlib
+
+depends_run         port:ghostscript \
+                    port:transfig
+
+use_xmkmf           yes
+xmkmf.args-append   -DUseSeparateConfDir=NO -DBuildHtmlManPages=NO
+
+patchfiles          patch-Imakefile \
+                    patch-fig.h \
+                    patch-f_util.c \
+                    patch-w_keyboard.c \
+                    patch-f_readeps.c \
+                    patch-w_export.c \
+                    patch-w_print.c \
+                    patch-w_util.c \
+                    patch-main_c.diff \
+                    patch-libpng-1.5.diff
+
 post-extract {
-	foreach d "${worksrcpath}/Doc ${worksrcpath}/Libraries" {
-		fs-traverse x ${d} {
-			if {[file isdirectory ${x}]} {
-				file attributes ${x} -permissions 0755
-			} else {
-				file attributes ${x} -permissions 0644
-			}
-		}
-	}
+    foreach d "${worksrcpath}/Doc ${worksrcpath}/Libraries" {
+        fs-traverse x ${d} {
+            if {[file isdirectory ${x}]} {
+                file attributes ${x} -permissions 0755
+            } else {
+                file attributes ${x} -permissions 0644
+            }
+        }
+    }
 }
 
 post-patch {
-	reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/Imakefile
-	reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/Imakefile
+    reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/Imakefile
+    reinplace "s|__DESTROOT|${destroot}|g" ${worksrcpath}/Imakefile
 }
-destroot.target	install.all install.man
+
+destroot.target install.all install.man
 post-destroot {
@@ -75,10 +84,10 @@
 
 # https://trac.macports.org/ticket/25935
 if {[string match "*gcc-4.2" ${configure.compiler}]} {
-	# Fix font selection bug when w_fontpanel.o is compiled with optimization by gcc 4.2
-	pre-build {
-		system -W ${worksrcpath} "${build.cmd} CDEBUGFLAGS=-O0 w_fontpanel.o"
-	}
+    # Fix font selection bug when w_fontpanel.o is compiled with optimization by gcc 4.2
+    pre-build {
+        system -W ${worksrcpath} "${build.cmd} CDEBUGFLAGS=-O0 w_fontpanel.o"
+    }
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160515/fc0ecc2a/attachment-0001.html>


More information about the macports-changes mailing list