[27746] trunk/dports/aqua/CocoaDialog/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 13 09:29:38 PDT 2007


Revision: 27746
          http://trac.macosforge.org/projects/macports/changeset/27746
Author:   nox at macports.org
Date:     2007-08-13 09:29:38 -0700 (Mon, 13 Aug 2007)

Log Message:
-----------
CocoaDialog:
 * Now uses xcode portgroup and extract.suffix.
 * Added sha1 and rmd160 checksums.
 * Nice +universal support.

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

Modified: trunk/dports/aqua/CocoaDialog/Portfile
===================================================================
--- trunk/dports/aqua/CocoaDialog/Portfile	2007-08-13 15:46:40 UTC (rev 27745)
+++ trunk/dports/aqua/CocoaDialog/Portfile	2007-08-13 16:29:38 UTC (rev 27746)
@@ -1,12 +1,13 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem	1.0
+PortGroup	xcode 1.0
 
 name		CocoaDialog
 version		2.1.1
 categories	aqua sysutils
 platforms	darwin
-maintainers	nomaintainer at macports.org
+maintainers	nomaintainer
 description	common GUI controls for command-line application
 long_description	CocoaDialog is an OS X application that allows the use \
 			of common GUI controls such as file selectors, text \
@@ -15,20 +16,30 @@
 			knowledge of Cocoa, and is ideal for use in shell and \
 			Perl scripts (or Ruby, or Python, or... etc).
 
-homepage	http://cocoadialog.sourceforge.net/
+homepage		http://cocoadialog.sourceforge.net/
 master_sites	sourceforge:cocoadialog
-distfiles	${name}-src-${version}.tgz
-checksums	md5 c6d9b49a1aee3cea16d0f6da7f37cedf
+extract.suffix	.tgz
+distfiles		[suffix ${name}-src-${version}]
 
-worksrcdir	cocoadialog
-use_configure	no
+checksums		md5 c6d9b49a1aee3cea16d0f6da7f37cedf \
+				sha1 d04fd9bf821cfdf85b8a6cbcce5872290a4a14b3 \
+				rmd160 326929352d81807ab3362cc806972ee4e1de9e47
 
-build.cmd      xcodebuild
-build.args     -configuration Deployment build
-build.target   -target $name
+worksrcdir		cocoadialog
 
-destroot	{
-	xinstall -m 755 -d ${destroot}/Applications/MacPorts/
-	file copy ${worksrcpath}/build/Deployment/CocoaDialog.app \
-		${destroot}/Applications/MacPorts/
+xcode.target	${name}
+
+# Dummy configure to enable +universal.
+use_configure	yes
+configure		{}
+
+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}
 }
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070813/0823c340/attachment.html


More information about the macports-changes mailing list