source: trunk/dports/gnome/libgnomecanvas/Portfile @ 85431

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

libglade2, libgnomecanvas: add dummy +quartz variant to distinguish
the binary packages: when gtk +quartz is installed, its library is
libgtk2-quartz instead of libgtk2-x11. (#31303, #31558)

Long-term, this probably isn't the best solution, especially since
other gtk2 dependents will probably run into the same problem, but it
fixes the current issue.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 85431 2011-10-13 20:56:34Z dports@macports.org $
3
4PortSystem  1.0
5
6name            libgnomecanvas
7version         2.30.3
8revision        1
9set branch      [join [lrange [split ${version} .] 0 1] .]
10description     A graphics library for GNOME.
11long_description        The GNOMECanvas library provides a number \
12                        of features: \
13                        Image loading facilities. Rendering of a \
14                        GdkPixBuf into various formats: drawables \
15                        (windows, pixmaps), GdkRGB buffers. \
16                        A cache interface.
17maintainers     nomaintainer
18categories      gnome
19platforms       darwin
20license     LGPL-2+
21homepage        http://www.gnome.org/
22master_sites    gnome:sources/${name}/${branch}/
23
24checksums       md5     ffcbb719c671ff5cd86e59aeba8d0b92 \
25                sha1    a5b07f33c44c460434dd0dad457d2fffb8a1baf9 \
26                rmd160  044d9980fdc0a074d72407a7fa70d99b2823817b
27
28# add a dummy +quartz variant to distinguish the binary packages,
29# because they must link against libgtk2-quartz instead of
30# libgtk2-x11. See #31303
31variant quartz {}
32
33depends_build   port:pkgconfig \
34                port:intltool
35
36configure.perl  ${prefix}/bin/perl
37configure.env-append INTLTOOL_PERL=${prefix}/bin/perl
38
39depends_lib     port:gtk2 \
40                port:libart_lgpl \
41                port:libglade2
42
43use_bzip2       yes
44
45configure.args  --enable-glade
46
47test.run        yes
48test.target     check
49
50pre-test {
51    set libdirs {}
52    fs-traverse {dir} ${worksrcpath} {
53        if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} {
54            lappend libdirs ${dir}
55
56            continue
57        }
58    }
59
60    test.env    DYLD_LIBRARY_PATH=[join ${libdirs} :]
61}
62
63livecheck.type  regex
64livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
65livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.