Ticket #12870: gtk-theme-switch-2.0.4_1.diff

File gtk-theme-switch-2.0.4_1.diff, 1.6 KB (added by nox@…, 17 years ago)
  • Portfile

     
    11# $Id$
    22
    33PortSystem              1.0
     4
    45name                    gtk-theme-switch
    56version                 2.0.4
     7revision        1
    68categories              x11
    79maintainers             jbenninghoff@mac.com
    810description             command-line theme switcher for gtk2
     
    1315
    1416homepage                http://www.muhri.net/nav.php3?node=gts
    1517master_sites            http://ftp.debian.org/debian/pool/main/g/gtk-theme-switch/
    16 distfiles       gtk-theme-switch_${version}.tar.gz
     18worksrcdir      ${distname}
     19distname        ${name}_${version}
    1720platforms               darwin
    18 checksums               md5 ea213872031bebcb0f3d736352a5aae7
    1921
    20 depends_lib             lib:gtk-engines2:gtk-engines2
     22checksums       md5 ea213872031bebcb0f3d736352a5aae7 \
     23                sha1 3011bd8660b4c52771ffeed5a8337c8376b76511 \
     24                rmd160 13c66e1fe866461fe1236230da9a3a72c138515b
    2125
    2226build.target    switch2
    2327
    2428use_configure   no
    2529
    2630destroot {
    27         xinstall -m 755 ${worksrcpath}/switch2 ${destroot}${prefix}/bin
    28         xinstall -m 644 ${worksrcpath}/switch.1 \
    29                 ${destroot}${prefix}/share/man/man1/switch2.1
     31    xinstall ${worksrcpath}/switch2 ${destroot}${prefix}/bin
     32
     33    xinstall -m 0644 ${worksrcpath}/switch.1 \
     34        ${destroot}${prefix}/share/man/man1/switch2.1
     35
     36    set docdir ${prefix}/share/doc/${name}-${version}
     37    xinstall -d ${destroot}${docdir}
     38    xinstall -m 0644 -W ${worksrcpath} ChangeLog readme todo ${destroot}${docdir}
     39}
     40
     41variant universal {
     42    post-patch {
     43        reinplace -E "/^CFLAGS =/s|\$| ${configure.universal_cflags}|" ${worksrcpath}/Makefile
     44    }
    3045}
    3146
    3247livecheck.check regex