source: trunk/dports/gnome/librsvg/Portfile @ 16899

Last change on this file since 16899 was 16899, checked in by rhwood, 12 years ago

Bug: 7727
Submitted by: rhwood@…
Reviewed by: rhwood@…
Approved by: rhwood@…
Obtained from:

Fix post-install syntax error

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1# $Id: Portfile,v 1.16 2006/03/12 10:31:24 rhwood Exp $
2PortSystem 1.0
3name            librsvg
4version         2.12.7
5revision                1
6description     Gnome implementation of rsvg.
7long_description        ${description}
8maintainers     gnome-darwinports@opendarwin.org
9categories      gnome
10platforms       darwin
11homepage        http://librsvg.sourceforge.net/
12master_sites    gnome:sources/${name}/2.12/
13checksums       sha1 2dbb387bca326d44c24348bd48b39b12bd3ab365
14
15depends_lib     port:libcroco port:libgsf port:libart_lgpl port:libxml2
16use_bzip2       yes
17configure.args  --mandir=${prefix}/share/man --enable-pixbuf-loader \
18                --with-svgz
19configure.env   CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
20                CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress"
21post-install {
22        set fl [open "grep -c svg ${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders" ]
23        set data [read $fl]
24        close $fl
25        if {$data == 0} {
26                ui_msg "Updating ${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
27                system "gdk-pixbuf-query-loaders > ${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders"
28        }
29}
30variant use-sys-deps {
31        depends_lib     lib:libcroco-0.6:libcroco lib:libgsf-1.1:libgsf lib:libart_lgpl_2:libart_lgpl lib:libxml2:libxml2
32}
Note: See TracBrowser for help on using the repository browser.