Ticket #12671: unrar-universal.diff
File unrar-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 unrar 6 6 version 3.7.6 … … 9 9 maintainers max@kruschwitz.biz 10 10 11 11 description Extract, view & test RAR archives 12 12 13 long_description The unRAR utility is a minor part of the RAR archiver and \ 13 14 contains RAR uncompression algorithm. unRAR requires very \ 14 15 small volume of memory to operate. 15 homepage http://www.rarlab.com/16 16 17 homepage http://www.rarlab.com/ 17 18 master_sites ${homepage}rar/ 18 19 distname ${name}src-${version} 20 19 21 checksums md5 c6e1ae41bc140d47f4608c1ab5f01802 \ 20 22 sha1 b75966a564a799a082d1c95de5e4a44e21cf33d1 \ 21 23 rmd160 68f5738b6c9ede8de24061cc1e1e285ad5b0bf16 22 24 23 25 worksrcdir ${name} 24 26 25 use_configure no 27 configure { 28 reinplace -E "/^CXXFLAGS/s|\$| [join ${configure.cflags} " "]\\\n\ 29 LDFLAGS=[join ${configure.ldflags} " "]|" \ 30 ${worksrcpath}/makefile.unix 31 } 26 32 27 33 build.args -f makefile.unix 28 34 29 35 destroot { 30 36 set docdir ${prefix}/share/doc/${name}-${version} 31 37 32 xinstall - m 755 -d ${destroot}${docdir}33 xinstall -m 755${worksrcpath}/${name} ${destroot}${prefix}/bin34 xinstall -m 644 ${worksrcpath}/license.txt ${destroot}${docdir}38 xinstall -d ${destroot}${docdir} 39 xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin 40 xinstall -m 0644 ${worksrcpath}/license.txt ${destroot}${docdir} 35 41 } 36 42 37 universal_variant no38 39 43 livecheck.check regex 40 44 livecheck.url ${master_sites}?C=M&O=D 41 45 livecheck.regex "[strsed ${distname} {/[.0-9]*$//}](\\d+(?:\\.\\d+)*)"