[60840] trunk/dports/databases/gdbm/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Nov 25 05:51:01 PST 2009


Revision: 60840
          http://trac.macports.org/changeset/60840
Author:   ryandesign at macports.org
Date:     2009-11-25 05:50:59 -0800 (Wed, 25 Nov 2009)
Log Message:
-----------
gdbm: don't install info file and manpage outside of destroot; closes #21050 (maintainer timeout)

Modified Paths:
--------------
    trunk/dports/databases/gdbm/Portfile

Modified: trunk/dports/databases/gdbm/Portfile
===================================================================
--- trunk/dports/databases/gdbm/Portfile	2009-11-25 13:35:34 UTC (rev 60839)
+++ trunk/dports/databases/gdbm/Portfile	2009-11-25 13:50:59 UTC (rev 60840)
@@ -5,7 +5,7 @@
 
 name		gdbm
 version 	1.8.3
-revision	1
+revision	2
 categories	databases
 maintainers	digdog
 description	The GNU database manager
@@ -35,6 +35,18 @@
 post-patch {
 	reinplace "s|-o \$(BINOWN) -g \$(BINGRP)||g" ${worksrcpath}/Makefile.in
 }
-destroot.destdir	prefix=${destroot}${prefix}
+destroot.destdir	INSTALL_ROOT=${destroot}
 
+post-install {
+    # gdbm @1.8.3_1 installed files outside the destroot; remove them if found
+    foreach file {share/info/gdbm.info share/man/man3/gdbm.3} {
+        set filepath ${prefix}/${file}
+        if {[file exists ${filepath}]} {
+            if {[catch {delete ${filepath}}]} {
+                ui_warn "Cannot delete ${filepath}; please remove it manually"
+            }
+        }
+    }
+}
+
 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091125/73dd4149/attachment.html>


More information about the macports-changes mailing list