source: trunk/dports/archivers/lzma/Portfile

Last change on this file was 133710, checked in by ryandesign@…, 2 years ago

lzma: update to 4.65; use the right -arch flags and add a universal variant; use unversioned documentation directory; rewrite master_sites to avoid redirects; become maintainer; add modeline

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 133710 2015-03-09 08:04:30Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            lzma
7version         4.65
8categories      archivers
9license         public-domain
10platforms       darwin
11maintainers     ryandesign openmaintainer
12
13description     high compression ratio archiver
14
15long_description \
16    LZMA is default and general compression method of 7z \
17    format in 7-Zip program. LZMA provides high compression \
18    ratio and very fast decompression.
19
20homepage        http://www.7-zip.org/sdk.html
21master_sites    sourceforge:project/sevenzip/LZMA%20SDK/${version}/
22distname        lzma[strsed ${version} {/\.//}]
23use_bzip2       yes
24
25checksums       rmd160  70953d4ee8542addf566953e0ed62e9c75a016b5 \
26                sha256  c935fd04dd8e0e8c688a3078f3675d699679a90be81c12686837e0880aa0fa1e
27
28extract.mkdir   yes
29post-extract {
30    # Convert DOS to UNIX line endings so we can patch
31    reinplace "s|\r||g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
32}
33
34patchfiles      patch-lzma.1 \
35                patch-makefile.gcc
36post-patch {
37    reinplace "s|@CC@|${configure.cc} [get_canonical_archflags cc]|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
38    reinplace "s|@CXX@|${configure.cxx} [get_canonical_archflags cxx]|g" ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
39}
40
41use_configure   no
42
43variant universal {}
44
45build.dir       ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone
46build.type      gnu
47build.args      -f makefile.gcc
48
49installs_libs   no
50
51destroot {
52    xinstall -s ${worksrcpath}/CPP/7zip/Compress/LZMA_Alone/lzma ${destroot}${prefix}/bin/lzma_alone
53    xinstall ${worksrcpath}/lzma.1 ${destroot}${prefix}/share/man/man1/lzma_alone.1
54
55    set docdir ${prefix}/share/doc/${name}/
56    xinstall -d ${destroot}${docdir}
57    xinstall -m 0644 -W ${worksrcpath} history.txt lzma.txt \
58        ${destroot}${docdir}
59}
60
61notes "
62The LZMA SDK program is installed as \"lzma_alone\", to avoid conflict with LZMA Utils
63"
64
65livecheck.type  regex
66livecheck.regex {(\d+(?:\.\d+)*):}
Note: See TracBrowser for help on using the repository browser.