source: trunk/dports/gnome/gedit/Portfile @ 85505

Last change on this file since 85505 was 85505, checked in by devans@…, 8 years ago

gedit: add license, no_x11 description.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 85505 2011-10-14 03:41:27Z devans@macports.org $
3
4PortSystem 1.0
5
6name            gedit
7version         2.30.4
8revision        3
9license         GPL-2
10set branch      [join [lrange [split ${version} .] 0 1] .]
11description     GNOME editor.
12long_description \
13                ${description}
14maintainers     devans openmaintainer
15categories      gnome editors
16platforms       darwin
17homepage        http://www.gnome.org/projects/gedit/
18master_sites    gnome:sources/${name}/${branch}/
19
20checksums       md5     e1eecb0a92a1a363b3d375ec5ac0fb3b \
21                sha1    ff7f4088d0b89224b84406557a7d9970323fdcc3 \
22                rmd160  b2659b8847ef02c66a70acd2f4a492555e1e4d21
23
24depends_build   port:gtk-doc \
25                port:intltool \
26                port:gnome-doc-utils \
27                port:pkgconfig
28
29depends_lib     port:gconf \
30                port:iso-codes \
31                port:enchant \
32                port:xorg-libsm
33
34use_bzip2       yes
35
36patchfiles      patch-configure.diff
37
38configure.args  --mandir=${prefix}/share/man \
39                --disable-scrollkeeper \
40                --disable-schemas-install \
41                --disable-gvfs-metadata \
42                --disable-updater
43
44variant no_x11 description {Disable X11 support} {
45        depends_lib-delete  port:xorg-libsm
46}
47
48variant python25 conflicts python26 python27 description {Use python 2.5} {
49    configure.python          ${prefix}/bin/python2.5
50    depends_lib-append        port:py25-pygtksourceview
51    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.5
52    configure.pkg_config_path ${python_framework}/lib/pkgconfig
53}
54
55variant python26 conflicts python25 python27 description {Use python 2.6} {
56    configure.python          ${prefix}/bin/python2.6
57    depends_lib-append        port:py26-pygtksourceview
58    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
59    configure.pkg_config_path ${python_framework}/lib/pkgconfig
60}
61
62variant python27 conflicts python25 python26 description {Use python 2.7} {
63    configure.python          ${prefix}/bin/python2.7
64    depends_lib-append        port:py27-pygtksourceview
65    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
66    configure.pkg_config_path ${python_framework}/lib/pkgconfig
67}
68
69if {![variant_isset python25] && ![variant_isset python26]} {
70    default_variants +python27
71}
72
73post-activate    {
74        system "${prefix}/bin/scrollkeeper-update"
75        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
76             gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
77}
78
79livecheck.type  regex
80livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
81livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.