source: trunk/dports/x11/gtk-theme-switch/Portfile

Last change on this file was 75231, checked in by jmr@…, 7 years ago

gtk-theme-switch: also needs pkgconfig dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 75231 2011-01-18 16:19:01Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    gtk-theme-switch
6version                 2.0.4
7revision        2
8categories              x11
9maintainers             mac.com:jbenninghoff
10description             command-line theme switcher for gtk2
11
12long_description \
13        Command-line replacement for gnomecc theme switcher with optional \
14        GUI (if passed the --preview or --dock switch)
15
16homepage                http://www.muhri.net/nav.php3?node=gts
17master_sites            http://ftp.debian.org/debian/pool/main/g/gtk-theme-switch/
18worksrcdir      ${distname}
19distname        ${name}_${version}
20platforms               darwin
21
22checksums       md5 ea213872031bebcb0f3d736352a5aae7 \
23                sha1 3011bd8660b4c52771ffeed5a8337c8376b76511 \
24                rmd160 13c66e1fe866461fe1236230da9a3a72c138515b
25
26depends_build   port:pkgconfig
27depends_lib     port:gtk2
28
29build.target    switch2
30
31use_configure   no
32
33destroot {
34    xinstall ${worksrcpath}/switch2 ${destroot}${prefix}/bin
35
36    xinstall -m 0644 ${worksrcpath}/switch.1 \
37        ${destroot}${prefix}/share/man/man1/switch2.1
38
39    set docdir ${prefix}/share/doc/${name}-${version}
40    xinstall -d ${destroot}${docdir}
41    xinstall -m 0644 -W ${worksrcpath} ChangeLog readme todo ${destroot}${docdir}
42}
43
44variant universal {
45    post-patch {
46        reinplace -E "/^CFLAGS =/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile
47    }
48}
49
50livecheck.type  regex
51livecheck.url   ${master_sites}?M=D
52livecheck.regex ${name}_(\\d+(?:\\.\\d+)*)
53
Note: See TracBrowser for help on using the repository browser.