[74956] trunk/dports/textproc/pdfjam/Portfile

dports at macports.org dports at macports.org
Sun Jan 9 15:27:07 PST 2011


Revision: 74956
          http://trac.macports.org/changeset/74956
Author:   dports at macports.org
Date:     2011-01-09 15:26:59 -0800 (Sun, 09 Jan 2011)
Log Message:
-----------
pdfjam: add preactivate hook to avoid conflicts by deactivating old
version of texlive-bin-extra that contains pdfjam (see #27258)

Modified Paths:
--------------
    trunk/dports/textproc/pdfjam/Portfile

Modified: trunk/dports/textproc/pdfjam/Portfile
===================================================================
--- trunk/dports/textproc/pdfjam/Portfile	2011-01-09 22:29:19 UTC (rev 74955)
+++ trunk/dports/textproc/pdfjam/Portfile	2011-01-09 23:26:59 UTC (rev 74956)
@@ -52,3 +52,14 @@
     xinstall -m 644 -W ${worksrcpath} COPYING PDFjam-README.html VERSION \
        ${destroot}${prefix}/share/doc/${name}
 }
+
+pre-activate {
+    # texlive-bin-extra used to contain pdfjam, but doesn't
+    # anymore. If the old version is installed, deactivate it to avoid
+    # a conflict.
+    if {[file exists $prefix/bin/pdfjam] 
+        && ![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
+        && [rpm-vercomp [lindex $vers 1] 19536] < 0} {
+        registry_deactivate texlive-bin-extra "" [list ports_nodepcheck 1]
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110109/cff25ae7/attachment.html>


More information about the macports-changes mailing list