[27235] trunk/dports/print/gv

source_changes at macosforge.org source_changes at macosforge.org
Wed Jul 25 08:10:37 PDT 2007


Revision: 27235
          http://trac.macosforge.org/projects/macports/changeset/27235
Author:   yves at macports.org
Date:     2007-07-25 08:10:36 -0700 (Wed, 25 Jul 2007)

Log Message:
-----------
rev 3, fix the build with Xaw3d in prefix, add a letter default paper variant and do some cleanup

Revision Links:
--------------
    http://trac.macosforge.org/projects/macports/changeset/3

Modified Paths:
--------------
    trunk/dports/print/gv/Portfile

Added Paths:
-----------
    trunk/dports/print/gv/files/patch-config.Unix

Modified: trunk/dports/print/gv/Portfile
===================================================================
--- trunk/dports/print/gv/Portfile	2007-07-25 15:06:18 UTC (rev 27234)
+++ trunk/dports/print/gv/Portfile	2007-07-25 15:10:36 UTC (rev 27235)
@@ -2,39 +2,46 @@
 
 PortSystem 1.0
 
-name	   gv
-version	   3.5.8
-revision   2
-categories	print
-maintainers	nomaintainer at macports.org
+name        gv
+version     3.5.8
+revision    3
+categories  print
+maintainers nomaintainer at macports.org
+homepage    http://wwwthep.physik.uni-mainz.de/~plass/gv/
+platforms   darwin
 
-description	PostScript and PDF previewer
-long_description	   gv is an X11 PostScript and PDF previewer based on Tim Theisen's \
-			   ghostview-1.5. It uses the Xaw3d widget set, thus providing a \
-			   much nicer look and it's said to be a bit faster.
+description PostScript and PDF previewer
+long_description \
+    gv is a X11 PostScript and PDF previewer based on Tim Theisen's \
+    ghostview-1.5. It uses the Xaw3d widget set, thus providing a \
+    much nicer look and it's said to be a bit faster.
 
-homepage	http://wwwthep.physik.uni-mainz.de/~plass/gv/
-platforms	darwin
-master_sites	ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/
-checksums	md5 8f2f0bd97395d6cea52926ddee736da8
+master_sites    ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/
+checksums       md5 8f2f0bd97395d6cea52926ddee736da8
 
-depends_lib	lib:libXaw3d.7:Xaw3d
-depends_run	bin:gs:ghostscript
+depends_lib     port:Xaw3d
+depends_run     bin:gs:ghostscript
 
-patchfiles	patch-setenv.c
+patchfiles      patch-config.Unix patch-setenv.c
 post-patch	{
-		reinplace "s|DIR    = /usr/local|DIR    = ${prefix}|" "${worksrcpath}/config.Unix"
-		reinplace "s|/man/man1|/share/man/man1|g" ${worksrcpath}/config.Unix
-		reinplace "s|##aaa##|aaa|" "${worksrcpath}/source/paths.h"
+    cd ${worksrcpath}
+    reinplace "s|__PREFIX__|${prefix}|" config.Unix
+    reinplace "s|##aaa##|aaa|" source/paths.h
+    copy doc/gv.man source
 }
 
-use_xmkmf	yes
-pre-build	{
-		file copy "${worksrcpath}/doc/gv.man" "${worksrcpath}/source"
-}
+use_xmkmf       yes
 
+destroot.target install install.man
+destroot.args   DOCHTMLDIR=${prefix}/share/doc/gv
 post-destroot	{
-		cd ${worksrcpath}/source
-		system "make DESTDIR=${destroot} DOCHTMLDIR=${prefix}/share/doc/gv install.man"
-		file delete -force ${destroot}/usr
+    cd ${destroot}
+    move etc/X11 ${destroot}${prefix}/etc
+    delete usr
 }
+
+variant letter {
+    post-patch {
+        reinplace "s|a4|letter|" ${worksrcpath}/config.Unix
+    }
+}

Added: trunk/dports/print/gv/files/patch-config.Unix
===================================================================
--- trunk/dports/print/gv/files/patch-config.Unix	                        (rev 0)
+++ trunk/dports/print/gv/files/patch-config.Unix	2007-07-25 15:10:36 UTC (rev 27235)
@@ -0,0 +1,33 @@
+--- config.Unix.orig	2007-07-24 17:22:09.000000000 -0400
++++ config.Unix	2007-07-24 17:22:57.000000000 -0400
+@@ -32,16 +32,16 @@
+ XCOMM --------------------------------------------------------------------
+ XCOMM  Destination directories.
+ XCOMM --------------------------------------------------------------------
+-      GV_BINDIR    = /usr/local/bin/
+-      GV_DOCDIR    = /usr/local/doc/gv/
+-      GV_LIBDIR    = /usr/local/lib/gv/
+-      GV_MANDIR    = /usr/local/man/man1/
++      GV_BINDIR    = __PREFIX__/bin/
++      GV_DOCDIR    = __PREFIX__/doc/gv/
++      GV_LIBDIR    = __PREFIX__/lib/gv/
++      GV_MANDIR    = __PREFIX__/share/man/man1/
+ 
+ XCOMM --------------------------------------------------------------------
+ XCOMM --- The name of the Xaw3d library.
+ XCOMM --------------------------------------------------------------------
+ XCOMM XAWLIB = -lXaw
+-      XAWLIB = -lXaw3d
++      XAWLIB = -L__PREFIX__/lib -lXaw3d
+ 
+ XCOMM --------------------------------------------------------------------
+ XCOMM  As far as the Xaw3d header files are concerned it is by
+@@ -56,7 +56,7 @@
+ XCOMM     ln -s /home/aaa/Xaw3d X11
+ XCOMM     ln -s /home/aaa/Xaw3d Xaw3d
+ XCOMM --------------------------------------------------------------------
+-XCOMM XAW3D_HEADERS = -I/home/aaa/Xaw3d
++      XAW3D_HEADERS = -I__PREFIX__/include
+ 
+ XCOMM --------------------------------------------------------------------
+ XCOMM  Print Command

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070725/3aeb7b30/attachment.html


More information about the macports-changes mailing list