source: trunk/dports/gnome/at-spi/Portfile @ 87969

Last change on this file since 87969 was 85258, checked in by ryandesign@…, 8 years ago

at-spi: fix typo in variant description

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 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 85258 2011-10-12 06:00:06Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                at-spi
7version             1.30.1
8revision            2
9license             LGPL
10set branch          [join [lrange [split ${version} .] 0 1] .]
11description         Gnome Accesibility Technology Service
12long_description \
13   'at-spi' is a part of the Gnome Accessibility Project.  It provides a \
14   Service Provider Interface for the Assistive Technologies available on \
15   the GNOME platform, and a library against which applications can be linked.
16maintainers         devans openmaintainer
17categories          gnome
18platforms           darwin
19homepage            http://developer.gnome.org/projects/gap/
20master_sites        gnome:sources/${name}/${branch}/
21
22checksums           md5     29fdf7934e98efda5fe0ab74ab4d3f29 \
23                    sha1    d7bf78555e8025e42325437d7809e1c98a35389e \
24                    rmd160  f317c5ad38a6f79b1917f3173e77e4746f79408b
25
26depends_build       port:intltool \
27                    port:pkgconfig
28
29depends_lib         port:atk \
30                    port:gtk2 \
31                    port:libbonobo \
32                    port:xorg-libXtst
33
34use_bzip2           yes
35
36patchfiles          patch-pyatspi-Makefile.in.diff
37
38configure.args      --enable-static \
39                    --disable-xevie \
40                    --with-x \
41                    --x-includes=${prefix}/include \
42                    --x-libraries=${prefix}/lib \
43                    --disable-schemas-install
44 
45variant no_x11 description {Disable X11 support} {
46   pre-fetch {
47      return -code error "The +no_x11 (was +quartz) variant of ${name} does not work. See http://trac.macports.org/ticket/15013"
48   }
49   configure.args-delete   --with-x \
50                           --x-includes=${prefix}/include \
51                           --x-libraries=${prefix}/lib
52   configure.args-append   --without-x
53   depends_lib-delete      port:xorg-libXtst
54}
55
56variant python25 conflicts python26 python27 description {Use python 2.5} {
57    configure.python        ${prefix}/bin/python2.5
58    depends_lib-append      port:py25-gnome
59    post-patch {
60        reinplace "s|__MP_PYTHON_EXEC_DIR__|${prefix}//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages|" ${worksrcpath}/pyatspi/Makefile.in
61    }
62}
63
64variant python26 conflicts python25 python27 description {Use python 2.6} {
65    configure.python        ${prefix}/bin/python2.6
66    depends_lib-append      port:py26-gnome
67    post-patch {
68        reinplace "s|__MP_PYTHON_EXEC_DIR__|${prefix}//Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages|" ${worksrcpath}/pyatspi/Makefile.in
69    }
70}
71
72variant python27 conflicts python25 python26 description {Use python 2.7} {
73    configure.python        ${prefix}/bin/python2.7
74    depends_lib-append      port:py27-gnome
75    post-patch {
76        reinplace "s|__MP_PYTHON_EXEC_DIR__|${prefix}//Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages|" ${worksrcpath}/pyatspi/Makefile.in
77    }
78}
79
80if {![variant_isset python25] && ![variant_isset python26]} {
81    default_variants +python27
82}
83
84post-activate {
85   system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
86        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
87}
88
89livecheck.type  regex
90livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
91livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.