Ticket #51747: qupzilla.diff

File qupzilla.diff, 3.5 KB (added by RJVB (René Bertin), 8 years ago)
Line 
1/Volumes/Debian/MP9/site-ports/www/QupZilla
2]0;1 Portia.local:/Volumes/Debian/MP9/site-ports/www/QupZilla (Darwin)[:0] =897--- /opt/local/var/macports/sources/svn.macports.org/trunk/dports/www/QupZilla/Portfile        2016-06-30 23:04:25.000000000 +0200
3+++ Portfile    2016-07-02 22:39:32.000000000 +0200
4@@ -3,16 +3,16 @@
5 
6 PortSystem          1.0
7 PortGroup           github 1.0
8-PortGroup           qmake 1.0
9+PortGroup           qmake5 1.0
10 
11-github.setup        QupZilla qupzilla 1.8.9 v
12+github.setup        QupZilla qupzilla 2.0.1 v
13 name                QupZilla
14 categories          www
15 platforms           darwin
16 maintainers         ryandesign openmaintainer
17 license             GPL-3+
18 
19-description         fast lightweight web browser made with QtWebKit
20+description         fast lightweight web browser made with QtWebEngine
21 
22 long_description    QupZilla is a ${description}. QupZilla has all the \
23                     standard features you expect from a web browser, \
24@@ -22,16 +22,58 @@
25 
26 homepage            http://www.qupzilla.com/
27 
28-checksums           rmd160  fbc98400ad00f51a6c6630d0fe36754d160e3a79 \
29-                    sha256  628358724b0ccb1a4bfc4d97edc44f64d86dac14371e1ce196a5ed676662e92b
30+checksums           rmd160  9e15a1d820fe70c22f760e241649517ccf765d5d \
31+                    sha256  765a70cc2015be4ec5942fc23304f9f811b8c46c04ec3afb30c2f3654c65ac89
32 
33-depends_run-append  port:qt4-mac-sqlite3-plugin
34+# this procedure should be provided by the Qt5 PortGroup (and has been submitted)
35+if {![info exists qt5.depends_component]} {
36+    proc qt5.depends_component {first args} {
37+        global qt5_component_lib
38+        global qt5.using_kde
39+        # join ${first} and (the optional) ${args}
40+        set args [linsert $args[set list {}] 0 ${first}]
41+        if {[info exists qt5.using_kde] && ${qt5.using_kde}} {
42+            set qt5main "qt5-kde"
43+        } else {
44+            set qt5main "qt5"
45+        }
46+        foreach comp ${args} {
47+            if {${comp} eq "qt5"} {
48+                if {[info exists qt5.using_kde] && ${qt5.using_kde}} {
49+                    global qt5_dependency
50+                    depends_lib-append ${qt5_dependency}
51+                } else {
52+                    depends_lib-append port:${qt5main}
53+                }
54+            } else {
55+                set portname "${qt5main}-${comp}"
56+                if {[info exists qt5_component_lib] && [info exists qt5_component_lib(${comp})]} {
57+                    # an explicit dependency pattern was given, e.g. path:foo
58+                    depends_lib-append "$qt5_component_lib(${comp}):${portname}"
59+                } else {
60+                    depends_lib-append port:${portname}
61+                }
62+            }
63+        }
64+    }
65+}
66+
67+qt5.depends_component \
68+                    qt5 qtwebengine
69+depends_lib-append \
70+                    port:openssl
71 
72-patchfiles          patch-mac-macdeploy.sh.diff
73+patchfiles          patch-mac-macdeploy.sh.diff \
74+                    patch-mac=macports.diff
75 
76 build.args-append   QUPZILLA_PREFIX=${prefix}/
77 
78 destroot {
79     system -W ${worksrcpath} "./mac/macdeploy.sh true"
80-    copy ${worksrcpath}/bin/QupZilla.app ${destroot}${applications_dir}
81+    xinstall -m 755 -d ${destroot}${qt_apps_dir}
82+    copy ${worksrcpath}/bin/QupZilla.app ${destroot}${qt_apps_dir}
83+    platform darwin {
84+        system "echo \"#!/bin/sh\nexport KDE_SESSION_VERSION=5\nexec \\\"${qt_apps_dir}/QupZilla.app/Contents/MacOS/QupZilla\\\" \\\"\\\$\@\\\"\" > ${destroot}${prefix}/bin/qupzilla"
85+        system "chmod 755 ${destroot}${prefix}/bin/qupzilla"
86+    }
87 }