source: users/devans/GNOME_2_27/gnome/gnome-desktop/Portfile @ 54555

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

GNOME_2_27/gnome/gnome-desktop: update to version 2.27.5.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 54555 2009-07-29 13:31:24Z devans@macports.org $
3
4PortSystem      1.0
5
6name            gnome-desktop
7version         2.27.5
8set branch      [join [lrange [split ${version} .] 0 1] .]
9maintainers     devans openmaintainer
10categories      gnome
11platforms       darwin
12description     Additional UI API for GNOME 2
13
14long_description \
15    This is a collection of APIs not included in \
16    libgnomeui as they have not undergone sufficient \
17    testing.
18
19homepage        http://www.gnome.org/
20master_sites    gnome:sources/${name}/${branch}/
21use_bzip2       yes
22
23checksums       md5     0821f55e64126d371315f81c2a5fb012 \
24                sha1    4daefadf4d854745663fbf97c856b1ddc185614e \
25                rmd160  1bc1f60951de72bc804db81081b2e10fe033efb4
26
27depends_build   port:pkgconfig \
28                port:intltool \
29                port:p5-xml-parser \
30                port:gnome-doc-utils \
31                port:gtk-doc
32
33depends_lib     port:gconf \
34                port:startup-notification \
35                port:xorg-libXrandr \
36                port:python25
37
38depends_run     port:gnome-themes
39
40patchfiles      patch-libgnome-destop-gnome-bg.c.diff \
41                patch-libgnome-destop-gnome-rr.c.diff \
42                patch-libgnome-destop-gnome-rr-config.c.diff
43
44configure.args  --with-gnome-distributor=MacPorts \
45                --x-includes=${prefix}/include \
46                --x-libraries=${prefix}/lib \
47                --disable-scrollkeeper
48
49configure.python  ${prefix}/bin/python2.5
50
51use_parallel_build  yes
52
53post-activate {
54    system "${prefix}/bin/scrollkeeper-update"
55}
56
57if {[variant_isset no_x11]} {
58    default_variants    +quartz
59}
60
61pre-configure {
62    if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {
63        set gtk_not_quartz [catch {exec grep -q GDK_WINDOWING_QUARTZ ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
64        set gtk_not_x11 [catch {exec grep -q GDK_WINDOWING_X11 ${prefix}/lib/gtk-2.0/include/gdkconfig.h}]
65        if {[variant_isset quartz] && ${gtk_not_quartz}} {
66            error "+quartz variant selected, but gtk2+x11 is installed"
67        } elseif {! [variant_isset quartz] && ${gtk_not_x11}} {
68            error "-quartz variant selected, but gtk2+quartz is installed"
69        }
70    } else {
71        error "Cannot find gdkconfig.h"
72    }
73}
74
75variant quartz requires no_x11 description {Enable Quartz rendering} {
76    depends_lib-delete      port:xorg-libXrandr
77    depends_lib-delete      port:startup-notification
78    patchfiles-append       patch-configure.diff
79}
80
81variant no_x11 {
82    configure.args-delete   --x-includes=${prefix}/include
83    configure.args-delete   --x-libraries=${prefix}/lib
84    configure.args-append   --without-x
85}
86
87livecheck.check regex
88livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
89livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.