Revision
76355
Author
landonf@macports.org
Date
2011-02-20 10:47:36 -0800 (Sun, 20 Feb 2011)

Log Message

The installed zzcat binary conflicts with libzzip; zzuff upstream has renamed it to 'zzat', but a new release is not yet available,
so we'll rename it locally.

See also: http://caca.zoy.org/ticket/86

Modified Paths

Diff

Modified: trunk/dports/security/zzuf/Portfile (76354 => 76355)


--- trunk/dports/security/zzuf/Portfile	2011-02-20 18:41:51 UTC (rev 76354)
+++ trunk/dports/security/zzuf/Portfile	2011-02-20 18:47:36 UTC (rev 76355)
@@ -4,6 +4,7 @@
 
 name		  zzuf
 version		  0.13
+revision	  1
 categories	  security
 platforms	  darwin
 maintainers	  pmq
@@ -22,3 +23,16 @@
 
 checksums	  sha1 19f904d63d045194885639c381a607ca86a319b5 \
               rmd160 ef9988a6d97f213090227a0b6d87e4d942ed8c15
+
+# zzcat conflicts with libzzip; zzuff upstream has renamed it
+# to 'zzat', but a new release is not yet available.
+# See also: http://caca.zoy.org/ticket/86
+#
+post-patch {
+        reinplace "s|zzcat|zzat|g" "${worksrcpath}/doc/zzcat.1.in"
+}
+
+post-destroot {
+        file rename "${destroot}/${prefix}/bin/zzcat" "${destroot}/${prefix}/bin/zzat"
+        file rename "${destroot}/${prefix}/share/man/man1/zzcat.1" "${destroot}/${prefix}/share/man/man1/zzat.1"
+}