Ticket #12680: unalz-dep-doc-universal.diff
File unalz-dep-doc-universal.diff, 1.7 KB (added by nox@…, 17 years ago) |
---|
-
Portfile
1 1 # $Id$ 2 2 3 PortSystem 1.03 PortSystem 1.0 4 4 5 5 name unalz 6 version 0.506 version 0.61 7 7 categories archivers 8 8 platforms darwin 9 9 maintainers minskim@bawi.org 10 10 description unarchiver for the AlZip format 11 11 12 long_description Unalz is a BSD-licensed unarchiver for AlZip format which \ 12 13 requires proprietary and win32-only software but widely used \ 13 14 in Korea. 14 15 15 16 homepage http://www.kipple.pe.kr/win/unalz/ 16 17 master_sites ${homepage} 17 checksums md5 bc26fc608412f73aaf48db0b51e1359318 18 extract.suffix .tgz 19 19 20 depends_lib port:libiconv 21 22 checksums md5 f3ee5bad439f10e06b089b8db38b7566 \ 23 sha1 a6cab2a02b7f44957211e694b7d8d144840b2255 \ 24 rmd160 68cb957aeacfc8452e01637f7e0a50939d515ab6 25 20 26 worksrcdir unalz 21 27 22 use_configure no 28 post-patch { 29 reinplace "s|/usr/local|\$(DESTDIR)${prefix}|" ${worksrcpath}/Makefile 30 } 31 32 configure { 33 set CFLAGS [join ${configure.cflags} " "] 34 reinplace -E "/^CFLAGS/s|\$|${CFLAGS}\\\nCPPFLAGS=${CFLAGS}|" ${worksrcpath}/Makefile 35 reinplace -E "/^LDFLAGS/s|\$|[join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile 36 } 23 37 24 38 build.target posix-utf8 25 39 26 destroot { 27 xinstall -m 755 -s ${worksrcpath}/unalz ${destroot}${prefix}/bin 40 post-destroot { 41 set docdir ${prefix}/share/doc/${name}-${version} 42 xinstall -d ${destroot}${docdir} 43 xinstall -m 0644 ${worksrcpath}/readme.txt ${destroot}${docdir} 28 44 } 29 45 30 universal_variant no 46 livecheck.check regex 47 livecheck.url ${homepage} 48 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) 31 49