source: trunk/dports/python/py27-webkitgtk/Portfile

Last change on this file was 151732, checked in by ryandesign@…, 11 months ago

py27-webkitgtk: use googlecode fetchgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151732 2016-08-21 17:46:39Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            py27-webkitgtk
7version         1.1.8
8revision        8
9categories      python www
10license         LGPL-2+
11description     Python bindings for the WebKit GTK+ port
12long_description ${description}
13maintainers     elelay openmaintainer
14homepage        http://code.google.com/p/pywebkitgtk/
15
16platforms       darwin
17depends_build   port:pkgconfig
18depends_lib     path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk port:python27 port:py27-pygtk
19
20distname        pywebkitgtk-${version}
21master_sites    googlecode:pywebkitgtk
22
23checksums       md5     158335385354ba38090c9324b37bf225 \
24                sha1    74ff2222d9aa9af6ab0aa4279b28dd2b26f5824e \
25                rmd160  e857939e65a9a409390f1fd256310988f592935f
26
27platform darwin {
28    if {${configure.cxx_stdlib} eq "libstdc++"} {
29       depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
30       depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
31    }
32}
33
34set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
35
36configure.pre_args-delete  --prefix=${prefix}
37configure.pre_args-append  --prefix=${python_prefix}
38configure.args-append      --includedir=${python_prefix}/include/python2.7
39configure.pkg_config_path  ${python_prefix}/lib/pkgconfig
40configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
41configure.python    ${prefix}/bin/python2.7
42
43post-destroot {
44        # Add a .pth file pointing to the proper location
45        # See: http://code.google.com/p/pywebkitgtk/issues/detail?id=38
46        system "echo webkit-1.0 > ${destroot}${python_prefix}/lib/python2.7/site-packages/webkit.pth"
47}
48
49livecheck.type  regex
50livecheck.url   ${homepage}
51livecheck.regex pywebkitgtk-(\\d+.\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.