[34861] trunk/dports/print/gv

takeshi at macports.org takeshi at macports.org
Sat Mar 8 21:50:15 PST 2008


Revision: 34861
          http://trac.macosforge.org/projects/macports/changeset/34861
Author:   takeshi at macports.org
Date:     2008-03-08 21:50:14 -0800 (Sat, 08 Mar 2008)

Log Message:
-----------
Updatding gv to 3.6.3

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

Added Paths:
-----------
    trunk/dports/print/gv/files/patch-setenv.c.diff

Removed Paths:
-------------
    trunk/dports/print/gv/files/patch-config.Unix
    trunk/dports/print/gv/files/patch-setenv.c

Modified: trunk/dports/print/gv/Portfile
===================================================================
--- trunk/dports/print/gv/Portfile	2008-03-09 05:07:58 UTC (rev 34860)
+++ trunk/dports/print/gv/Portfile	2008-03-09 05:50:14 UTC (rev 34861)
@@ -3,11 +3,11 @@
 PortSystem 1.0
 
 name        gv
-version     3.5.8
-revision    3
+version     3.6.3
+revision    0
 categories  print
 maintainers nomaintainer
-homepage    http://wwwthep.physik.uni-mainz.de/~plass/gv/
+homepage    http://www.gnu.org/software/gv/
 platforms   darwin
 
 description PostScript and PDF previewer
@@ -16,30 +16,18 @@
     ghostview-1.5. It uses the Xaw3d widget set, thus providing a \
     much nicer look and it's said to be a bit faster.
 
-master_sites    ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/
-checksums       md5 8f2f0bd97395d6cea52926ddee736da8
+master_sites    gnu
+checksums       md5    0947fdbccaba114ac24da339dbf7d01a         \
+                sha1   1eb09482a1b77f6db957840ba691b42947aeb364 \
+                rmd160 3c0fb1c252b305f25522abc8528dfe9489029ad3
 
 depends_lib     port:Xaw3d
 depends_run     bin:gs:ghostscript
 
-patchfiles      patch-config.Unix patch-setenv.c
-post-patch	{
-    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/config.Unix
-    reinplace "s|##aaa##|aaa|" ${worksrcpath}/source/paths.h
-    copy ${worksrcpath}/doc/gv.man ${worksrcpath}/source
-}
+patchfiles      patch-setenv.c.diff
 
-use_xmkmf       yes
+configure.args --mandir=${prefix}/share/man --infodir=${prefix}/share/info --disable-dependency-tracking
 
-destroot.target install install.man
-destroot.args   DOCHTMLDIR=${prefix}/share/doc/gv
-post-destroot	{
-    move ${destroot}/etc/X11 ${destroot}${prefix}/etc
-    delete ${destroot}/usr
+variant letter description {sets default paper size to letter} {
+	configure.args-append --with-default-papersize=letter
 }
-
-variant letter {
-    post-patch {
-        reinplace "s|a4|letter|" ${worksrcpath}/config.Unix
-    }
-}

Deleted: trunk/dports/print/gv/files/patch-config.Unix
===================================================================
--- trunk/dports/print/gv/files/patch-config.Unix	2008-03-09 05:07:58 UTC (rev 34860)
+++ trunk/dports/print/gv/files/patch-config.Unix	2008-03-09 05:50:14 UTC (rev 34861)
@@ -1,33 +0,0 @@
---- 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

Deleted: trunk/dports/print/gv/files/patch-setenv.c
===================================================================
--- trunk/dports/print/gv/files/patch-setenv.c	2008-03-09 05:07:58 UTC (rev 34860)
+++ trunk/dports/print/gv/files/patch-setenv.c	2008-03-09 05:50:14 UTC (rev 34861)
@@ -1,26 +0,0 @@
---- source/setenv.c.old	Wed Jan 14 00:26:19 2004
-+++ source/setenv.c	Wed Jan 14 00:27:35 2004
-@@ -39,7 +39,11 @@
-  */
- int
- setenv(name, value, rewrite)
-+#ifdef __APPLE__
-+    const char *name, *value;
-+#else
- 	register char *name, *value;
-+#endif
- 	int rewrite;
- {
- 	extern char **environ;
-@@ -97,7 +101,11 @@
-  */
- void
- unsetenv(name)
-+#ifdef __APPLE__
-+    const char	*name;
-+#else
- 	char	*name;
-+#endif
- {
- 	extern char **environ;
- 	register char **P;

Added: trunk/dports/print/gv/files/patch-setenv.c.diff
===================================================================
--- trunk/dports/print/gv/files/patch-setenv.c.diff	                        (rev 0)
+++ trunk/dports/print/gv/files/patch-setenv.c.diff	2008-03-09 05:50:14 UTC (rev 34861)
@@ -0,0 +1,26 @@
+--- src/setenv.c.orig	2008-03-09 14:25:10.000000000 +0900
++++ src/setenv.c	2008-03-09 14:28:22.000000000 +0900
+@@ -39,7 +39,11 @@
+  */
+ int
+ setenv(name, value, rewrite)
++#ifdef __APPLE__
++	const char *name, *value;
++#else
+ 	register char *name, *value;
++#endif
+ 	int rewrite;
+ {
+ 	extern char **environ;
+@@ -97,7 +101,11 @@
+  */
+ void
+ unsetenv(name)
++#ifdef __APPLE__
++	const char	*name;
++#else
+ 	char	*name;
++#endif
+ {
+ 	extern char **environ;
+ 	register char **P;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080308/861d36a4/attachment.html 


More information about the macports-changes mailing list