# -*- 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 # $Id: Portfile 95899 2012-07-26 10:56:29Z jmr@macports.org $ PortSystem 1.0 name asprint version 0.5.0 revision 1 categories sysutils platforms darwin maintainers perlhacker.org:sepp license Apache-2 description prints out the contents of a compiled AppleScript file long_description ${name} is a command-line program that pretty-prints the \ contents of compiled AppleScript (.scpt) files using \ ANSI escape sequences. homepage http://hasseg.org/asprint/ fetch.type git git.url http://hasseg.org/git-public/asprint.git git.branch 89398c852a26fca0fb8696b9bfc0c61a3caeb16e platform darwin 8 { pre-fetch { ui_error "${name} requires Mac OS X 10.5 or greater." return -code error "incompatible Mac OS X version" } } patchfiles patch-Makefile.diff \ patch-asprint.pod.diff use_configure no variant universal {} if {[variant_isset universal]} { set archflags ${configure.universal_cflags} } else { set archflags ${configure.cc_archflags} } build.args COMPILER="${configure.cc} ${archflags}" build.target-append ${name}.1 destroot { xinstall -m 755 -W ${worksrcpath} asprint ${destroot}${prefix}/bin xinstall -m 644 -W ${worksrcpath} asprint.1 ${destroot}${prefix}/share/man/man1 set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath}/deployment-files readme.txt ${docdir} } livecheck.type regex livecheck.regex ${name}-v(\[0-9.\]+)\\.