[27853] trunk/dports/aqua/ihook/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Aug 15 02:24:16 PDT 2007


Revision: 27853
          http://trac.macosforge.org/projects/macports/changeset/27853
Author:   nox at macports.org
Date:     2007-08-15 02:24:16 -0700 (Wed, 15 Aug 2007)

Log Message:
-----------
ihook:
 * Ported to xcode portgroup.
 * Enabled universal support.
 * Added sha1 and rmd160 checksums and livecheck.

Modified Paths:
--------------
    trunk/dports/aqua/ihook/Portfile

Modified: trunk/dports/aqua/ihook/Portfile
===================================================================
--- trunk/dports/aqua/ihook/Portfile	2007-08-15 08:54:32 UTC (rev 27852)
+++ trunk/dports/aqua/ihook/Portfile	2007-08-15 09:24:16 UTC (rev 27853)
@@ -1,49 +1,50 @@
 # $Id$
-PortSystem 1.0
 
+PortSystem		1.0
+PortGroup		xcode 1.0
+
 name			ihook
+set my_name		iHook
 version			1.1.0
 categories		aqua
-maintainers		nomaintainer at macports.org
+maintainers		nomaintainer
+
 description		A graphical interface frontend for commandline executables
 long_description	iHook is a graphical frontend for any commandline \
 					executable. It gives scripts a pleasant Aqua face, \
 					and allows script writers to provide graphical \
 					feedback without having to learn one of the higher \
 					APIs available for Mac OS X. 
+
 homepage		http://rsug.itd.umich.edu/software/ihook/
-master_sites	${homepage}/files/
+master_sites	${homepage}files/
 distname		${name}-${version}-src
 worksrcdir		${name}-${version}
 extract.suffix	.tgz
-checksums		md5 5d8582eaa62f633095eb5d4ee31d10b9
-platforms		darwin
 
-use_configure	no
-set appName		iHook
+checksums		md5 5d8582eaa62f633095eb5d4ee31d10b9 \
+				sha1 73f434d9bd9238a7c36014c1dd656f9b9eba1616 \
+				rmd160 5b384f008739ba8cffd5380aa8ea7bcf3c6d7eec
 
-pre-build {
-	cd ${worksrcpath}
-	system "cc -framework Security -o shookexec selfrepair.c shookexec.c"
-}
-build.type		pbx
-build.target	-configuration Deployment -target ${appName}
+# Dummy configure to enable universal variant
+use_configure	yes
+configure		{}
 
-set xcodebuilddir	build
-platform darwin 8 {
-	if {$xcodeversion == "2.1"} {
-		set xcodebuilddir	build/Deployment
+if {! [variant_isset universal]} {
+	set arch ${os.arch}
+	if {! [string compare ${os.arch} powerpc]} {
+		set arch ppc
 	}
+
+	xcode.build.settings-append		ARCHS=${arch}
+	xcode.destroot.settings-append	ARCHS=${arch}
 }
 
-destroot {
-	cd ${worksrcpath}
-	set appPath ${destroot}/Applications/MacPorts
-	xinstall -d -m 0755 ${appPath}
-	system "cp -R ${xcodebuilddir}/${appName}.app ${appPath}/${appName}.app"
-	set docPath ${destroot}${prefix}/share/doc/${name}
-	xinstall -d -m 0755 ${docPath}
-	xinstall -m 0644 "${appName} Lexicon.rtf" ${docPath}
-	xinstall -m 0644 "${appName} README.rtf" ${docPath}
+xcode.destroot.settings-append SKIP_INSTALL=yes
+
+post-destroot {
+	xinstall -d ${destroot}/Applications/MacPorts
+	copy ${worksrcpath}/build/UninstalledProducts/iHook.app \
+		${destroot}/Applications/MacPorts
 }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070815/47edb0ce/attachment.html


More information about the macports-changes mailing list