source: trunk/dports/www/uzbl/Portfile

Last change on this file was 121269, checked in by jeremyhu@…, 3 years ago

misc: Cleanup configure.cxx_stdlib related logic now that we can assume base 2.3 or newer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 121269 2014-06-21 20:18:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        Dieterbe uzbl 2012.05.14
8revision            1
9categories          www
10license             GPL-3
11platforms           darwin
12maintainers         ryandesign openmaintainer
13
14description         Uzbl Web Browser
15
16long_description    ${name} is a web browser that adheres to the UNIX philosophy.
17
18homepage            http://www.uzbl.org/
19
20checksums           rmd160  a6a1c2b7eb11a80c6c01b9bd8a93a82125656c9d \
21                    sha256  4b4b3baf2339250b81818b12918af51a33f353a580856fe27eb193f71a4294cf
22
23depends_build       port:pkgconfig
24
25depends_lib         port:gtk2 \
26                    path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
27                    port:libsoup
28
29depends_run         port:python27
30
31post-patch {
32    foreach f [concat [glob ${worksrcpath}/bin/*] [glob ${worksrcpath}/examples/data/scripts/*]] {
33        if {[file isfile ${f}]} {
34            reinplace -E "s|#!/usr/bin/env python2?|#!${prefix}/bin/python2.7|g" ${f}
35        }
36    }
37}
38
39use_configure       no
40
41variant universal {}
42
43build.args          PREFIX=${prefix} \
44                    CC="${configure.cc} [get_canonical_archflags]"
45
46eval destroot.args  ${build.args}
47
48platform darwin {
49    if {${configure.cxx_stdlib} eq "libstdc++"} {
50       depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
51       depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
52    }
53}
Note: See TracBrowser for help on using the repository browser.