Ticket #14300: 0001-Portfile-contribution-for-py-gtksourceview2.patch

File 0001-Portfile-contribution-for-py-gtksourceview2.patch, 1.9 KB (added by jaysoffian@…, 17 years ago)
  • new file python/py-gtksourceview2/Portfile

    From ae0c6fecad1b7ff499e96798292fb30172addbe8 Mon Sep 17 00:00:00 2001
    From: Jay Soffian <jay@soffian.org>
    Date: Tue, 12 Feb 2008 20:45:02 -0500
    Subject: [PATCH] Portfile contribution for py-gtksourceview2
    
    This port provides the Python bindings for gtksourceview2
    
    Signed-off-by: Jay Soffian <jay@soffian.org>
    ---
     python/py-gtksourceview2/Portfile |   33 +++++++++++++++++++++++++++++++++
     1 files changed, 33 insertions(+), 0 deletions(-)
     create mode 100644 python/py-gtksourceview2/Portfile
    
    diff --git a/python/py-gtksourceview2/Portfile b/python/py-gtksourceview2/Portfile
    new file mode 100644
    index 0000000..32a83d4
    - +  
     1# $Id: Portfile 33081 2008-01-17 16:46:38Z nox@macports.org $
     2
     3PortSystem 1.0
     4name               py-gtksourceview2
     5version            2.1.1
     6categories         python x11
     7maintainers        nomaintainer
     8description        PyGtkSourceView2 is the Python binding to GtkSourceView 2.x
     9long_description   \
     10    PyGtkSourceView2 is a module that allows you to use GtkSourceView in Python programs.
     11
     12homepage        http://ftp.gnome.org/pub/GNOME/sources/pygtksourceview/2.1/
     13master_sites    gnome:sources/pygtksourceview/2.1/
     14distname        pygtksourceview-${version}
     15use_bzip2       yes
     16checksums               md5 d720ed1bf48e421a0b14fed9b654a974 \
     17                        sha1 7f653ae583de2688f9a9f18f9769a8d3cb23a6b0 \
     18                        rmd160 e2c6fa82930cab284992676ce7b22b5d0172691d
     19
     20depends_build   port:pkgconfig port:libxslt
     21
     22depends_lib     port:gtksourceview2 port:py-gobject
     23
     24platform darwin 7 {
     25    configure.env   CFLAGS="-I${x11prefix}/include"
     26}
     27
     28platform darwin 9 {
     29    post-patch {
     30        reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/Makefile.am
     31        reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/Makefile.in
     32    }
     33}