source: trunk/dports/archivers/arc/Portfile

Last change on this file was 141915, checked in by khindenburg@…, 21 months ago

arc: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 141915 2015-10-31 01:43:35Z ryandesign@macports.org $
2
3PortSystem        1.0
4name              arc
5version           5.21o
6revision          1
7categories        archivers sysutils
8license           GPL-2
9description       create and extract files from dos .arc archives
10maintainers       crazic.ru:jc
11platforms         darwin
12long_description  ${description}
13homepage          http://arc.sourceforge.net/
14master_sites      sourceforge
15extract.suffix    .tgz
16
17checksums         md5 3b30c739b42b2fe8ac4ec0a05f34f284 \
18                  sha1 4b803eae04976072fae88d4dbfc4b3e45796f8f3 \
19                  rmd160 2897f62452f59efcb757cd5447d6d330df0cfdd1
20
21patchfiles        patch-Makefile patch-marc.c
22
23use_configure     no
24
25set CFLAGS        ${configure.cflags}
26
27variant universal {
28        set CFLAGS    "${CFLAGS} ${configure.universal_cflags}"
29}
30if {![variant_isset universal]} {
31        set CFLAGS    "${CFLAGS} ${configure.cc_archflags}"
32}
33
34build.args        CC=${configure.cc} \
35                  OPT="${CFLAGS}"
36
37destroot {
38        xinstall -W ${worksrcpath} ${name} m${name} ${destroot}${prefix}/bin
39        xinstall -W ${worksrcpath} -m 444 ${name}.1 ${destroot}${prefix}/share/man/man1
40
41        set docdir ${prefix}/share/doc/${name}-${version}
42        xinstall -d ${destroot}${docdir}
43        xinstall -W ${worksrcpath} -m 644 Arc[strsed ${version} {g/[^0-9]//}].doc Arcinfo COPYING LICENSE \
44                ${destroot}${docdir}
45}
46
47livecheck.regex ${name}-(\\d+(?:\\.\\d+)*\[a-z\]?)
Note: See TracBrowser for help on using the repository browser.