# $Id: Portfile 35941 2008-04-10 20:34:00Z waqar@macports.org $ PortSystem 1.0 name osxutils version 1.7 categories sysutils PortGroup xcode 1.0 maintainers waqar@macports.org description Command line utilities for Finder commands long_description \ osxutils is a package of potentially useful Mac-oriented \ command line utilities for Mac OS X version 10.0 or later. \ These tools represent an effort in bringing command line \ control over certain aspects of the Mac OS, in particular \ file meta-data such as Finder flags, heritage file Type and \ Creator codes, comments and suffixes/file extensions. homepage http://sourceforge.net/projects/osxutils platforms macosx master_sites sourceforge use_zip yes distname ${name}-${version}-src-xcode worksrcdir ${name} checksums md5 7f404befd8909fa4b06adcd71c5afe22 \ sha1 5cbd1badf4cd7fe36431baf5e1358a68f9967eac \ rmd160 b91fa4644ee8348c0013f55aaa9d0d8f2e46dafe use_configure no build {} destroot { set bt {getfcomment geticon hfsdata lsmac mkalias \ setfcomment setfctypes setfflags seticon setlabel \ setsuffix wsupdate} foreach item ${bt} { system "cd ${worksrcpath}/$item && \ ${build.cmd} DSTROOT=${destroot} \ INSTALL_PATH=${prefix}/bin install \ INSTALL_MODE_FLAG=755" system "cd ${worksrcpath}/$item && \ cp $item.1 ${destroot}${prefix}/share/man/man1" } set it {cpath google rcmac setvolume trash wiki} foreach item ${it} { system "cd ${worksrcpath}/$item && \ cp $item ${destroot}${prefix}/bin" system "cd ${worksrcpath}/$item && \ cp $item.1 ${destroot}${prefix}/share/man/man1" } system "cd ${worksrcpath}/osxutils && \ cp osxutils ${destroot}${prefix}/bin" file delete -force ${destroot}/usr }