[146291] trunk/dports/aqua/djview/Portfile

nicos at macports.org nicos at macports.org
Thu Mar 3 06:09:54 PST 2016


Revision: 146291
          https://trac.macports.org/changeset/146291
Author:   nicos at macports.org
Date:     2016-03-03 06:09:54 -0800 (Thu, 03 Mar 2016)
Log Message:
-----------
djview: update to 4.10.6
fix livecheck
add subport djview-qt5

Modified Paths:
--------------
    trunk/dports/aqua/djview/Portfile

Modified: trunk/dports/aqua/djview/Portfile
===================================================================
--- trunk/dports/aqua/djview/Portfile	2016-03-03 14:03:55 UTC (rev 146290)
+++ trunk/dports/aqua/djview/Portfile	2016-03-03 14:09:54 UTC (rev 146291)
@@ -2,10 +2,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           qt4 1.0
 
 name                djview
-version             4.10.5
+version             4.10.6
 categories          aqua graphics www
 license             GPL-2+ MIT
 maintainers         nicos openmaintainer
@@ -25,14 +24,38 @@
 patchfiles          patch-powerpc.diff \
                     patch-makefile-qmake-workaround.diff 
 
-checksums           rmd160  6fbdc99db79ed96d0944a6c9c32f72a57dd54936 \
-                    sha256  a0b302807106053d1983659ebb0139c7b1c393b3e6407f1f47990d7e3c5d7b3d
+checksums           rmd160  9c8a5d878a594e4f87d3c1a392674148076061ee \
+                    sha256  8446f3cd692238421a342f12baa365528445637bffb96899f319fe762fda7c21
 
 depends_lib-append \
     port:djvulibre
 
 universal_variant yes
 
+if {$subport eq $name} {
+    PortGroup           qt4 1.0
+    conflicts           djview-qt5
+} else {
+    PortGroup           qt5 1.0
+    conflicts           ${name}
+}
+
+subport djview-qt5 {
+    #Location of qmake
+    configure.env-append QMAKE=${prefix}/libexec/qt5/bin/qmake \
+                         QMAKESPEC=macx-g++
+
+    if {${os.major} >= 13} {
+        #On 10.9 onwards, we need to update the minimum deployment target
+        pre-configure {
+            reinplace "s|QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6|QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9|g" \
+                ${worksrcpath}/src/djview.pro
+        }
+        #Changing the deployment target requires autoreconf
+        use_autoreconf       yes
+    }
+}
+
 configure.ldflags
 configure.args \
     --disable-nsdejavu \
@@ -51,5 +74,6 @@
     copy ${worksrcpath}/src/djview.app ${destroot}${applications_dir}
 }
 
+livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
 livecheck.name      djvu
 livecheck.distname  DjView
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160303/bce9f17b/attachment.html>


More information about the macports-changes mailing list