[29894] trunk/dports/archivers/lzma/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Sun Oct 14 09:12:47 PDT 2007
Revision: 29894
http://trac.macosforge.org/projects/macports/changeset/29894
Author: nox at macports.org
Date: 2007-10-14 09:12:47 -0700 (Sun, 14 Oct 2007)
Log Message:
-----------
lzma:
* Changed docdir name to a versioned one.
* Added sha1 and rmd160 checksums.
* Now prevents extraction directly into ${workpath}.
* ${distname} is now more flexible.
* Added livecheck.
Modified Paths:
--------------
trunk/dports/archivers/lzma/Portfile
Modified: trunk/dports/archivers/lzma/Portfile
===================================================================
--- trunk/dports/archivers/lzma/Portfile 2007-10-14 16:02:10 UTC (rev 29893)
+++ trunk/dports/archivers/lzma/Portfile 2007-10-14 16:12:47 UTC (rev 29894)
@@ -4,6 +4,7 @@
name lzma
version 4.43
+revision 1
categories archivers
platforms darwin
maintainers nomaintainer
@@ -16,12 +17,21 @@
homepage http://www.7-zip.org/sdk.html
master_sites sourceforge:sevenzip
-distname lzma443
-checksums md5 c4e1b467184c7cffd4371c74df2baf0f
+distname lzma[strsed ${version} {/\.//}]
use_bzip2 yes
-worksrcdir C/7zip/Compress/LZMA_Alone
+checksums md5 c4e1b467184c7cffd4371c74df2baf0f \
+ sha1 1667abfb40da82d53fa2690f3cd58a0e7e751e55 \
+ rmd160 f4f19c9f9bd8ded26318208e75ac14c8869c4ef8
+worksrcdir ${distname}/C/7zip/Compress/LZMA_Alone
+
+extract.dir ${workpath}/${distname}
+
+pre-extract {
+ file mkdir ${workpath}/${distname}
+}
+
use_configure no
build.args -f makefile.gcc
@@ -30,8 +40,14 @@
}
destroot {
- xinstall -m 755 -s ${worksrcpath}/lzma ${destroot}${prefix}/bin/lzma_alone
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${workpath} CPL.html LGPL.txt history.txt lzma.txt \
- ${destroot}${prefix}/share/doc/${name}
+ xinstall -s ${worksrcpath}/lzma ${destroot}${prefix}/bin/lzma_alone
+
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 -W ${workpath}/${distname} CPL.html LGPL.txt history.txt lzma.txt \
+ ${destroot}${docdir}
}
+
+livecheck.check regex
+livecheck.regex {(\d+(?:\.\d+)*):}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071014/71a8f0a7/attachment.html
More information about the macports-changes
mailing list