source: trunk/dports/net/libproxy/Portfile @ 65623

Last change on this file since 65623 was 65623, checked in by ryandesign@…, 11 years ago

libproxy: indicate that patch-fnonblock.diff is now upstream

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 65623 2010-03-29 04:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           archcheck 1.0
6PortGroup           cmake 1.0
7
8name                libproxy
9version             0.4.0
10revision            3
11categories          net
12maintainers         devans openmaintainer
13platforms           darwin
14homepage            http://code.google.com/p/${name}/
15master_sites        googlecode
16
17description         A library that provides automatic proxy configuration management.
18
19
20long_description    Libproxy exists to answer the question: Given a \
21                    network resource, how do I reach it? It handles all \
22                    the details, enabling you to get back to programming.
23
24checksums           md5     b22c95df70a40949e99add5171fc3084 \
25                    sha1    4d9dc92dd40255a51e541099b39d9852563dbc6a \
26                    rmd160  9375f6926cf7c301e4f96a018ca5278c7c8c5c45
27
28post-patch {
29    if {![variant_isset kde]} {
30        reinplace /px_check_modules(KDE4/d \
31            ${worksrcpath}/libproxy/CMakeLists.txt
32    }
33}
34
35depends_build-append \
36    port:pkgconfig
37
38depends_lib \
39    port:xorg-libX11 \
40    port:xorg-libXmu \
41    port:gconf \
42    port:python26
43
44# patch to libproxy/modules/config_gnome.cpp corresponds to upstream commit r628
45# patch to libproxy/CMakeLists.txt corresponds to upstream commit r587
46# patch to libproxy/modules/pacrunner_webkit.cpp corresponds to upstream commits r608 and r616
47# patch to libproxy/libproxy-1.0.pc.in corresponds to upstream commit r622
48patchfiles          patch-fnonblock.diff \
49                    patch-libproxy-CMakeLists.txt.diff \
50                    patch-libproxy-modules-pacrunner_webkit.cpp.diff \
51                    patch-libproxy-libproxy-1.0.pc.in.diff
52
53configure.args-append \
54    -D__pkg_config_checked_KDE4=YES
55
56configure.python    ${prefix}/bin/python2.6
57
58variant no_gnome description "Disable GNOME support" {
59    post-patch {
60        reinplace /px_check_modules(GNOME/d \
61            ${worksrcpath}/libproxy/CMakeLists.txt
62    }
63
64    depends_lib-delete port:gconf
65}
66
67variant no_x11 requires no_gnome conflicts kde {
68        post-patch {
69            reinplace /px_check_modules(X11/d \
70                ${worksrcpath}/libproxy/CMakeLists.txt
71        }
72
73        depends_lib-delete port:xorg-libX11 port:xorg-libXmu
74}
75
76variant kde conflicts no_x11 description {Enable kde plugin (requires X11)} {
77        depends_lib-append port:kde4libs
78        configure.args-delete -D__pkg_config_checked_KDE4=YES
79}
80
81livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.