source: trunk/dports/sysutils/asprint/Portfile

Last change on this file was 95899, checked in by jmr@…, 5 years ago

correct license formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 95899 2012-07-26 10:56:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                asprint
7version             0.5.0
8revision            1
9categories          sysutils
10platforms           darwin
11maintainers         perlhacker.org:sepp
12license             Apache-2
13
14description         prints out the contents of a compiled AppleScript file
15
16long_description    ${name} is a command-line program that pretty-prints the \
17                    contents of compiled AppleScript (.scpt) files using \
18                    ANSI escape sequences.
19
20homepage            http://hasseg.org/asprint/
21fetch.type          git
22git.url             http://hasseg.org/git-public/asprint.git
23git.branch          89398c852a26fca0fb8696b9bfc0c61a3caeb16e
24
25platform darwin 8 {
26    pre-fetch {
27        ui_error "${name} requires Mac OS X 10.5 or greater."
28        return -code error "incompatible Mac OS X version"
29    }
30}
31
32patchfiles          patch-Makefile.diff \
33                    patch-asprint.pod.diff
34
35use_configure       no
36
37variant universal {}
38if {[variant_isset universal]} {
39    set archflags ${configure.universal_cflags}
40} else {
41    set archflags ${configure.cc_archflags}
42}
43
44build.args          COMPILER="${configure.cc} ${archflags}"
45build.target-append ${name}.1
46
47destroot {
48    xinstall -m 755 -W ${worksrcpath} asprint ${destroot}${prefix}/bin
49    xinstall -m 644 -W ${worksrcpath} asprint.1 ${destroot}${prefix}/share/man/man1
50    set docdir ${destroot}${prefix}/share/doc/${name}
51    xinstall -d ${docdir}
52    xinstall -m 644 -W ${worksrcpath}/deployment-files readme.txt ${docdir}
53}
54
55livecheck.type      regex
56livecheck.regex     ${name}-v(\[0-9.\]+)\\.
Note: See TracBrowser for help on using the repository browser.