[62451] trunk/dports/graphics/dcraw/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Jan 8 04:06:22 PST 2010


Revision: 62451
          http://trac.macports.org/changeset/62451
Author:   ryandesign at macports.org
Date:     2010-01-08 04:06:21 -0800 (Fri, 08 Jan 2010)
Log Message:
-----------
dcraw: ease upgrade from ufraw < 0.16; see #16525

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

Modified: trunk/dports/graphics/dcraw/Portfile
===================================================================
--- trunk/dports/graphics/dcraw/Portfile	2010-01-08 12:04:28 UTC (rev 62450)
+++ trunk/dports/graphics/dcraw/Portfile	2010-01-08 12:06:21 UTC (rev 62451)
@@ -50,6 +50,20 @@
     configure.ldflags-append ${configure.universal_ldflags}
 }
 
+pre-configure {
+    # ufraw 0.15 and earlier provided its own copy of dcraw, but 0.16 now
+    # depends on the dcraw port instead. To prevent activation conflicts
+    # when upgrading to ufraw 0.16, ensure an old dcraw-providing ufraw
+    # is not active.
+    if {[file exists ${prefix}/bin/ufraw]} {
+        set ufraw_minimum_version 0.16
+        set ufraw_installed_version [exec ufraw --version 2>&1 | awk "/^ufraw/ {print \$2}"]
+        if {[rpm-vercomp ${ufraw_installed_version} ${ufraw_minimum_version}] < 0} {
+            return -code error "Please deactivate your currently-installed ufraw port, then try again"
+        }
+    }
+}
+
 pre-build {
     build.args          CC=${configure.cc} \
                         CFLAGS="[join ${configure.cflags}]" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100108/dce6c421/attachment.html>


More information about the macports-changes mailing list