Ticket #38950: Portfile.diff
File Portfile.diff, 2.4 KB (added by audistard@…, 12 years ago) |
---|
-
Portfile
old new 4 4 5 5 name lua 6 6 conflicts lua50 7 set compat_version 5. 18 version ${compat_version}. 49 revision 47 set compat_version 5.2 8 version ${compat_version}.2 9 revision 1 10 10 categories lang 11 11 license MIT 12 12 platforms darwin … … 21 21 master_sites ${homepage}/ftp/ 22 22 23 23 checksums ${distfiles} \ 24 sha1 2b11c8e60306efb7f0734b747588f57995493db7\25 rmd160 c867c8364295d3e4fb4e4d8ebb27fa2b2312cdef24 sha1 0857e41e5579726a4cb96732e80d7aa47165eaf5 \ 25 rmd160 d17967150017e9b25a26c1ad527647cd0b9e598f 26 26 27 27 depends_lib port:readline 28 28 build.target macosx 29 29 30 test.run yes 31 test.env DYLD_LIBRARY_PATH=./lib 32 33 patchfiles patch-lua-5.1.4-3 \ 30 patchfiles patch-COPYRIGHT.diff \ 34 31 patch-Makefile.diff \ 35 32 patch-src_Makefile.diff 36 33 … … 44 41 45 42 # reinplace %PREFIX% to fix @executable_path, cf. ticket no. 28726 46 43 reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/src/Makefile 47 48 # for the pkgconfig file49 reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/lua.pc50 44 } 51 45 52 46 configure { … … 60 54 destroot.target install INSTALL_TOP=${destroot}${prefix} 61 55 post-destroot { 62 56 xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} 63 xinstall -m 0644 -W ${worksrcpath} COPYRIGHT HISTORYREADME ${destroot}${prefix}/share/doc/${name}57 xinstall -m 0644 -W ${worksrcpath} COPYRIGHT README ${destroot}${prefix}/share/doc/${name} 64 58 xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html 65 59 foreach html [glob ${worksrcpath}/doc/*.html ${worksrcpath}/doc/*.gif] { 66 60 xinstall -m 0644 ${html} ${destroot}${prefix}/share/doc/${name}/html 67 61 } 68 xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/test69 foreach test [glob ${worksrcpath}/test/README ${worksrcpath}/test/*.lua] {70 xinstall -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test71 }72 xinstall -d -m 0755 ${destroot}${prefix}/lib/pkgconfig73 xinstall -m 0644 ${worksrcpath}/etc/lua.pc ${destroot}${prefix}/lib/pkgconfig/lua.pc74 62 } 75 63 76 64 livecheck.type regex