# -*- 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 # $Id: Portfile 85434 2011-10-13 21:27:09Z dports@macports.org $ PortSystem 1.0 name libgnomecanvas version 2.30.3 revision 1 set branch [join [lrange [split ${version} .] 0 1] .] description A graphics library for GNOME. long_description The GNOMECanvas library provides a number \ of features: \ Image loading facilities. Rendering of a \ GdkPixBuf into various formats: drawables \ (windows, pixmaps), GdkRGB buffers. \ A cache interface. maintainers nomaintainer categories gnome platforms darwin license LGPL-2+ homepage http://www.gnome.org/ master_sites gnome:sources/${name}/${branch}/ checksums md5 ffcbb719c671ff5cd86e59aeba8d0b92 \ sha1 a5b07f33c44c460434dd0dad457d2fffb8a1baf9 \ rmd160 044d9980fdc0a074d72407a7fa70d99b2823817b # add a dummy +quartz variant to distinguish the binary packages, # because they must link against libgtk2-quartz instead of # libgtk2-x11. See #31303 variant quartz {} depends_build port:pkgconfig \ port:intltool configure.perl ${prefix}/bin/perl configure.env-append INTLTOOL_PERL=${prefix}/bin/perl depends_lib port:gtk2 \ port:libart_lgpl \ port:libglade2 use_bzip2 yes configure.args --enable-glade test.run yes test.target check pre-test { set libdirs {} fs-traverse {dir} ${worksrcpath} { if {[file tail ${dir}] == ".libs" && [file isdirectory ${dir}]} { lappend libdirs ${dir} continue } } test.env DYLD_LIBRARY_PATH=[join ${libdirs} :] } livecheck.type regex livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}