source: trunk/dports/lang/lua50/Portfile

Last change on this file was 94950, checked in by mww@…, 5 years ago

lua50: add license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 94950 2012-07-02 18:28:07Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    lua50
6conflicts               lua
7version                 5.0.3
8categories              lang
9license                 MIT
10maintainers             nomaintainer
11description             powerful, light-weight programming language
12long_description        Lua is a powerful, light-weight programming language \
13                        designed for extending applications. Lua is also frequently \
14                        used as a general-purpose, stand-alone language.
15platforms               darwin
16homepage                http://www.lua.org
17master_sites    ${homepage}/ftp/
18checksums               md5 feee27132056de2949ce499b0ef4c480
19distname                lua-${version}
20
21depends_lib             port:readline
22
23patchfiles              patch-config \
24                                patch-Makefile
25post-patch {
26        reinplace s|@PREFIX@|${prefix}| ${worksrcpath}/config
27        reinplace s|@DESTROOT@|${destroot}| ${worksrcpath}/config
28        reinplace s|@CC@|${configure.cc}| ${worksrcpath}/config
29        reinplace "s|@CFLAGS@|${configure.cflags} [get_canonical_archflags]|" ${worksrcpath}/config
30        reinplace "s|@LDFLAGS@|[get_canonical_archflags]|" ${worksrcpath}/config ${worksrcpath}/Makefile
31}
32
33build.target    all dylib dylibbin
34
35destroot.target install dylibinstall
36post-destroot {
37        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
38        xinstall -W ${worksrcpath} -m 0644 README ${destroot}${prefix}/share/doc/${name}
39        xinstall -W ${worksrcpath} -m 0644 COPYRIGHT ${destroot}${prefix}/share/doc/${name}
40        xinstall -W ${worksrcpath} -m 0644 HISTORY ${destroot}${prefix}/share/doc/${name}
41        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html
42        foreach html [glob doc/*.html doc/*.gif] {
43                xinstall -W ${worksrcpath} -m 0644 ${html} ${destroot}${prefix}/share/doc/${name}/html
44        }
45        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/test
46        foreach test [glob test/README test/*.lua] {
47                xinstall -W ${worksrcpath} -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test
48        }
49}
50
51test.run                yes
52test.env                DYLD_LIBRARY_PATH=./lib
53
54livecheck.type  regex
55livecheck.url   ${master_sites}
56livecheck.regex "lua-(5.0(?:\\.\\d+)*)${extract.suffix}"
57
58use_parallel_build no
Note: See TracBrowser for help on using the repository browser.