[27979] trunk/dports/archivers/hffzip/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 16 17:35:52 PDT 2007
Revision: 27979
http://trac.macosforge.org/projects/macports/changeset/27979
Author: nox at macports.org
Date: 2007-08-16 17:35:52 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
hffzip:
* Added universal support.
* Added documentation installation.
* Changed long_description to something more useful.
* Added sha1 and rmd160 checksums and livecheck.
Modified Paths:
--------------
trunk/dports/archivers/hffzip/Portfile
Modified: trunk/dports/archivers/hffzip/Portfile
===================================================================
--- trunk/dports/archivers/hffzip/Portfile 2007-08-17 00:20:45 UTC (rev 27978)
+++ trunk/dports/archivers/hffzip/Portfile 2007-08-17 00:35:52 UTC (rev 27979)
@@ -1,32 +1,61 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
name hffzip
version 1.01
categories archivers
platforms darwin
-maintainers nomaintainer at macports.org
+maintainers nomaintainer
description HFFzip is a file compressor based upon Huffman coding.
-long_description ${description}
+long_description \
+ The Huffman algorithm uses a binary tree, and has complexity \
+ O(N*N) for compression and O(NlogN) for decompression. Although \
+ this file compressor is not so good as other compression programs \
+ (like gzip), HFFzip is right for embedded systems, because of its \
+ little size and the simple algorithm used.
+
homepage http://www.di.unipi.it/~scordino/hffzip.html
master_sites http://www.di.unipi.it/~scordino/
distname ${name}${version}
-checksums md5 d81cdfb92e03cfdb109c2728f8ba8594
+checksums md5 d81cdfb92e03cfdb109c2728f8ba8594 \
+ sha1 f22e7a39b5dbe9888d6f00994a5ee42cbca66d1d \
+ rmd160 cc73025f112b9c8f4a4d2a1eae9e5da524d63939
+
worksrcdir ${name}
-use_configure no
+post-patch {
+ cd ${worksrcpath}
+ reinplace -E "/^opzioni/s|\$| ${CFLAGS}|" Makefile
+ reinplace -E "/gcc.*${name}/s|\$| ${LDFLAGS}|" Makefile
+}
-build.target
+# Dummy configure to enable universal variant.
+configure {}
+set CFLAGS ${configure.cflags}
+set LDFLAGS ${configure.ldflags}
+
+build.target ${name}
+
destroot {
- xinstall -m 755 -d ${destroot}${prefix}/bin
- xinstall -m 755 ${worksrcpath}/hffzip ${destroot}${prefix}/bin
+ cd ${worksrcpath}
+
+ xinstall ${worksrcpath}/hffzip ${destroot}${prefix}/bin
+
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 copying copyright ${destroot}${docdir}
}
-platform darwin 8 {
- build.args CC=/usr/bin/gcc-4.0
+variant universal {
+ set CFLAGS "${CFLAGS} ${configure.universal_cflags}"
+ set LDFLAGS "${LDFLAGS} ${configure.universal_ldflags}"
}
+livecheck.check regex
+livecheck.url ${homepage}
+livecheck.regex "HFFzip (\\d+(?:\\.\\d+)*)"
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070816/bf966111/attachment.html
More information about the macports-changes
mailing list