[71629] trunk/dports/sysutils

raimue at macports.org raimue at macports.org
Sat Sep 18 07:51:49 PDT 2010


Revision: 71629
          http://trac.macports.org/changeset/71629
Author:   raimue at macports.org
Date:     2010-09-18 07:51:45 -0700 (Sat, 18 Sep 2010)
Log Message:
-----------
sysutils/afsctool: New port, utility for manipulating HFS+ compressed files

Added Paths:
-----------
    trunk/dports/sysutils/afsctool/
    trunk/dports/sysutils/afsctool/Portfile

Added: trunk/dports/sysutils/afsctool/Portfile
===================================================================
--- trunk/dports/sysutils/afsctool/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/afsctool/Portfile	2010-09-18 14:51:45 UTC (rev 71629)
@@ -0,0 +1,53 @@
+# $Id$
+
+PortSystem      1.0
+
+name            afsctool
+version         1.6.4
+set distversion 34
+categories      sysutils
+platforms       macosx
+license         GPLv3
+maintainers     raimue openmaintainer
+description     Utility for manipulating HFS+ compressed files
+long_description \
+    AFSC (Apple File System Compression) tool is an utility that can be used to \
+    apply HFS+ compression to file(s), decompress HFS+ compressed file(s), or \
+    get information about existing HFS+ compressed file(s). Mac OS 10.6 or \
+    later is required.
+
+homepage        http://web.me.com/brkirch/brkirchs_Software/afsctool/afsctool.html
+master_sites    http://web.me.com/brkirch/
+distname        ${name}_${distversion}
+use_zip yes
+
+checksums       md5     d0f2b79676c0f3d8c22e95fcf859a05f \
+                sha1    216d7ff54bad947781d9b49f9754c5d3c07349be \
+                rmd160  d692dc656deb32da090f4f40b4e94a62d808332d
+
+depends_lib     port:zlib
+
+pre-fetch {
+    if {"darwin" == ${os.platform} && ${os.major} < 10} {
+        ui_error "${name} ${version} is only compatible with Mac OS X 10.6 or later"
+        return -code error "incompatible Mac OS X version"
+    }
+}
+
+use_configure   no
+universal_variant yes
+
+build {
+    if {![variant_isset universal]} {
+        set flags "${configure.cflags} ${configure.ldflags} ${configure.ld_archflags}"
+    } else {
+        set flags "${configure.universal_cflags} ${configure.universal_ldflags}"
+    }
+    system "cd ${worksrcpath} && ${configure.cc} ${flags} -lz -framework CoreServices -o afsctool afsctool.c"
+}
+
+destroot {
+    xinstall -W ${worksrcpath} -m 755 ${name} ${destroot}${prefix}/bin
+    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+    xinstall -W ${worksrcpath} -m 644 License.txt ${destroot}${prefix}/share/doc/${name}
+}


Property changes on: trunk/dports/sysutils/afsctool/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100918/2b9c0fe5/attachment.html>


More information about the macports-changes mailing list