# $Id: Portfile 75231 2011-01-18 16:19:01Z jmr@macports.org $ PortSystem 1.0 name gtk-theme-switch version 2.0.4 revision 2 categories x11 maintainers mac.com:jbenninghoff description command-line theme switcher for gtk2 long_description \ Command-line replacement for gnomecc theme switcher with optional \ GUI (if passed the --preview or --dock switch) homepage http://www.muhri.net/nav.php3?node=gts master_sites http://ftp.debian.org/debian/pool/main/g/gtk-theme-switch/ worksrcdir ${distname} distname ${name}_${version} platforms darwin checksums md5 ea213872031bebcb0f3d736352a5aae7 \ sha1 3011bd8660b4c52771ffeed5a8337c8376b76511 \ rmd160 13c66e1fe866461fe1236230da9a3a72c138515b depends_build port:pkgconfig depends_lib port:gtk2 build.target switch2 use_configure no destroot { xinstall ${worksrcpath}/switch2 ${destroot}${prefix}/bin xinstall -m 0644 ${worksrcpath}/switch.1 \ ${destroot}${prefix}/share/man/man1/switch2.1 set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} ChangeLog readme todo ${destroot}${docdir} } variant universal { post-patch { reinplace -E "/^CFLAGS =/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile } } livecheck.type regex livecheck.url ${master_sites}?M=D livecheck.regex ${name}_(\\d+(?:\\.\\d+)*)