[27755] trunk/dports/aqua/AquaLess/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 13 14:28:25 PDT 2007


Revision: 27755
          http://trac.macosforge.org/projects/macports/changeset/27755
Author:   nox at macports.org
Date:     2007-08-13 14:28:25 -0700 (Mon, 13 Aug 2007)

Log Message:
-----------
AquaLess:
 * Ported to xcode portgroup.
 * Taken over.
 * Added sha1 and rmd160 checksums.
 * Added livecheck.
 * Added +universal support.

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

Modified: trunk/dports/aqua/AquaLess/Portfile
===================================================================
--- trunk/dports/aqua/AquaLess/Portfile	2007-08-13 20:49:40 UTC (rev 27754)
+++ trunk/dports/aqua/AquaLess/Portfile	2007-08-13 21:28:25 UTC (rev 27755)
@@ -1,12 +1,13 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem		1.0
+PortGroup		xcode 1.0
 
 name			AquaLess
 version			1.5
 categories		aqua sysutils
 platforms		darwin
-maintainers		nomaintainer at macports.org
+maintainers		nox
 homepage		http://aqualess.sourceforge.net/
 description		Cocoa pager similar to less
 
@@ -14,25 +15,43 @@
 			
 			
 master_sites		sourceforge:aqualess
-checksums		md5 7e3d04993dc09c31f1daf09dbb5e2677
+checksums		md5 7e3d04993dc09c31f1daf09dbb5e2677 \
+				sha1 754681d9bd3e85586d2e50a9697c2ca0dc3b4750 \
+				rmd160 7a574fff89463fa57e0f1a0e49ad790be2e00b93
 
 distname		${name}-${version}-src
 
-use_configure		no
+xcode.target			${name}
+xcode.destroot.settings	SKIP_INSTALL=NO
 
-build.type		pbx
-build.target
+post-patch {
+	reinplace -E "/@/s|/usr|${prefix}|" \
+		${worksrcpath}/ToolInstaller.m
 
-set appdir		build
-platform darwin 8 {
-	if {$xcodeversion == "2.1"} {
-		set appdir		build/Release
+	reinplace -E "/(MACOSX_DEPLOYMENT_TARGET|SDKROOT)_ppc =/d" \
+		${worksrcpath}/${name}.xcodeproj/project.pbxproj
+}
+
+# Dummy configure to enable universal variant.
+use_configure	yes
+configure		{}
+
+if {! [variant_isset universal]} {
+	set arch ${os.arch}
+	if {! [string compare ${arch} powerpc]} {
+		set arch ppc
 	}
+
+	xcode.build.settings-append		ARCHS=${arch}
+	xcode.destroot.settings-append	ARCHS=${arch}
 }
 
-destroot {
-		xinstall -d -m 755 ${destroot}/Applications/MacPorts
-		file copy ${worksrcpath}/${appdir}/${name}.app \
-			${destroot}/Applications/MacPorts/${name}.app
+post-destroot {
+	delete ${destroot}/Applications/MacPorts/aless
+	xinstall -m 0755 -d ${destroot}${prefix}/bin
+	xinstall -m 0755 ${destroot}/Applications/MacPorts/${name}.app/Contents/Resources/aless \
+		${destroot}${prefix}/bin
 }
 
+livecheck.distname ${name}
+

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


More information about the macports-changes mailing list