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

Last change on this file was 115064, checked in by devans@…, 4 years ago

py2[67]-pygtksourceview: rebuild to remove references to libpng15.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 115064 2013-12-23 09:47:29Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            py27-pygtksourceview
7version         2.10.1
8revision        4
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      python x11
11license         LGPL
12platforms       darwin
13maintainers     nomaintainer
14description     Python bindings for GtkSourceView2
15long_description ${description}
16
17homepage        http://www.gnome.org/
18master_sites    gnome:sources/pygtksourceview/${branch}/
19distname        pygtksourceview-${version}
20
21checksums       md5     7a4dd87a515374637e1acf0b340eaa92 \
22                sha1    fe4d3ce889427d5a5ae418415fc18f36b9b02524 \
23                rmd160  867b6986beec48538bf4aa8af8a566578d16085c
24
25depends_build   port:pkgconfig \
26                port:libxslt \
27                port:docbook-xsl
28
29depends_lib     port:py27-gobject \
30                port:py27-pygtk \
31                port:gtksourceview2
32
33configure.python    ${prefix}/bin/python2.7
34set python_prefix   ${frameworks_dir}/Python.framework/Versions/2.7
35configure.pre_args  --prefix=${python_prefix}
36configure.args      --includedir=${python_prefix}/include/python2.7
37configure.pkg_config_path  ${python_prefix}/lib/pkgconfig:${prefix}/lib/pkgconfig
38
39platform darwin 9 {
40    post-patch {
41        reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/Makefile.in
42    }
43}
44
45# install text docs in ${prefix}/share/doc/${name}
46# add link to gtk-doc in devhelp search path (${prefix}/share/gtk-doc/html/*)
47# devhelp requires gtk-doc/html directory name  and .devhelp file name (less the .devhelp) to match
48
49post-destroot {
50    set docdir ${prefix}/share/doc/${name}
51    xinstall -d ${destroot}${docdir}
52    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
53         ${destroot}${docdir}
54    xinstall -d ${destroot}${prefix}/share/gtk-doc/html
55    file rename ${destroot}${python_prefix}/share/gtk-doc/html/pygtksourceview2/pygtksourceview2.devhelp \
56                ${destroot}${python_prefix}/share/gtk-doc/html/pygtksourceview2/${name}.devhelp
57    ln -s ${python_prefix}/share/gtk-doc/html/pygtksourceview2 \
58          ${destroot}${prefix}/share/gtk-doc/html/${name}
59}
60
61livecheck.type  gnome
62livecheck.name  pygtksourceview
Note: See TracBrowser for help on using the repository browser.