source: trunk/dports/sysutils/afsctool/Portfile @ 71632

Last change on this file since 71632 was 71632, checked in by raimue@…, 9 years ago

sysutils/afsctool: Add livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 71632 2010-09-18 15:10:42Z raimue@macports.org $
2
3PortSystem      1.0
4
5name            afsctool
6version         1.6.4
7set distversion 34
8categories      sysutils
9platforms       macosx
10license         GPLv3
11maintainers     raimue openmaintainer
12description     Utility for manipulating HFS+ compressed files
13long_description \
14    AFSC (Apple File System Compression) tool is an utility that can be used to \
15    apply HFS+ compression to file(s), decompress HFS+ compressed file(s), or \
16    get information about existing HFS+ compressed file(s). Mac OS 10.6 or \
17    later is required.
18
19homepage        http://web.me.com/brkirch/brkirchs_Software/afsctool/afsctool.html
20master_sites    http://web.me.com/brkirch/
21distname        ${name}_${distversion}
22use_zip yes
23
24checksums       md5     d0f2b79676c0f3d8c22e95fcf859a05f \
25                sha1    216d7ff54bad947781d9b49f9754c5d3c07349be \
26                rmd160  d692dc656deb32da090f4f40b4e94a62d808332d
27
28depends_lib     port:zlib
29
30pre-fetch {
31    if {"darwin" == ${os.platform} && ${os.major} < 10} {
32        ui_error "${name} ${version} is only compatible with Mac OS X 10.6 or later"
33        return -code error "incompatible Mac OS X version"
34    }
35}
36
37use_configure   no
38universal_variant yes
39
40build {
41    if {![variant_isset universal]} {
42        set flags "${configure.cflags} ${configure.ldflags} ${configure.ld_archflags}"
43    } else {
44        set flags "${configure.universal_cflags} ${configure.universal_ldflags}"
45    }
46    system "cd ${worksrcpath} && ${configure.cc} ${flags} -lz -framework CoreServices -o afsctool afsctool.c"
47}
48
49destroot {
50    xinstall -W ${worksrcpath} -m 755 ${name} ${destroot}${prefix}/bin
51    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
52    xinstall -W ${worksrcpath} -m 644 License.txt ${destroot}${prefix}/share/doc/${name}
53}
54
55livecheck.type regex
56livecheck.url http://web.me.com/brkirch/brkirchs_Software/afsctool/rss.xml
57livecheck.regex ${name}\\s+(\\d+(?:\\.\\d+)+)
Note: See TracBrowser for help on using the repository browser.