Ticket #21727: Portfile

File Portfile, 1.4 KB (added by nodamage@…, 15 years ago)
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$
3
4PortSystem      1.0
5name            py26-webkitgtk
6version         1.1.6
7categories      python www
8description     Python bindings for thw WebKit GTK+ port
9long_description ${description}
10maintainers     nodamage.com:nodamage openmaintainer
11platforms       darwin
12homepage        http://code.google.com/p/pywebkitgtk/
13master_sites    http://pywebkitgtk.googlecode.com/files/
14distname        pywebkitgtk-${version}
15
16checksums       md5     883f3d7386d29b6c0d00155329041854 \
17                sha1    17cced538540dd2d97b0256e2c3677cd03ee7193 \
18                rmd160  0fce023574fbd52116195bf05e57b7eff38b3245
19
20depends_lib \
21    port:webkit-gtk \
22    port:python26
23   
24set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
25
26configure.pre_args-delete  --prefix=${prefix}
27configure.pre_args-append  --prefix=${python_prefix}
28configure.args-append      --includedir=${python_prefix}/include/python2.6
29configure.pkg_config_path  ${python_prefix}/lib/pkgconfig
30
31configure.python    ${prefix}/bin/python2.6
32
33post-destroot {
34        # Add a .pth file pointing to the proper location
35        # See: http://code.google.com/p/pywebkitgtk/issues/detail?id=38
36        system "echo webkit-1.0 > ${destroot}${python_prefix}/lib/python2.6/site-packages/webkit.pth"
37}