[27928] trunk/dports/devel/otest/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 16 02:28:30 PDT 2007


Revision: 27928
          http://trac.macosforge.org/projects/macports/changeset/27928
Author:   nox at macports.org
Date:     2007-08-16 02:28:30 -0700 (Thu, 16 Aug 2007)

Log Message:
-----------
otest:
 * Updated to 41.
 * Ported to xcode portgroup.
 * Added universal support.
 * Added sha1 and rmd160 checksums and livecheck.

Modified Paths:
--------------
    trunk/dports/devel/otest/Portfile

Modified: trunk/dports/devel/otest/Portfile
===================================================================
--- trunk/dports/devel/otest/Portfile	2007-08-16 09:12:21 UTC (rev 27927)
+++ trunk/dports/devel/otest/Portfile	2007-08-16 09:28:30 UTC (rev 27928)
@@ -1,29 +1,60 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem			1.0
+PortGroup			xcode 1.0
+
 name				otest
-version				25
-revision			1
+version				41
 categories			devel
-maintainers			nomaintainer at macports.org
+maintainers			nomaintainer
 description			Unit testing framework for Objective-C
-long_description	OCUnit is a testing framework for Objective C in the Mac OS X, Mac OS X Server, YellowBox/Cocoa and WebObjects environments.  This Objective C testing framework is a based on SUnit, Kent Beck's Smalltalk unit testing framework, also available for Java under the name JUnit, and is distributed as open source.
+
+long_description	OCUnit is a testing framework for Objective C in the Mac OS X, \
+					Mac OS X Server, YellowBox/Cocoa and WebObjects environments. \
+					This Objective C testing framework is a based on SUnit, Kent \
+					Beck's Smalltalk unit testing framework, also available for Java \
+					under the name JUnit, and is distributed as open source.
+
 homepage            http://sente.epfl.ch/software/ocunit/
-platforms			darwin
-
 master_sites		http://www.sente.ch/pub/software/OCUnit/
-distname			OCUnitSourceDistribution_v${version}
-checksums			md5 3260eb3fd4b0ddcf358ce7a9cdcbe7c8
-depends_lib			path:/Library/Frameworks/SenTestingKit.framework:sentestingkit 
-					
-extract.post_args	| gnutar -x
+distname			OCUnitHome-v${version}
+dist_subdir			otest
+extract.suffix		.tgz
 
-worksrcdir 			OCUnitSourceDistribution/OCUnit/otest
+depends_run			port:sentestingkit
 
-use_configure		no
-build.env			INSTALL_PATH=${prefix}/bin
-build.type 			pbx
+checksums			md5 292cc78f477ca75890f455b5d9f9d04d \
+					sha1 4ce07d4688a2dacfa37e2b315f8e849d6d5d17c1 \
+					rmd160 40ae3553853c83de96a221f1d779fea0a5fdecf4
 
-build.target
-destroot			{system "cd ${worksrcpath} && ditto -v build/otest \
-					   ${destroot}${prefix}/bin/otest "}
+worksrcdir			[strsed ${distname} {/-.*$//}]/OCUnit/SourceCode/${name}
+
+xcode.project			${name}.xcode
+xcode.configuration		RootDeployment
+xcode.destroot.path		${prefix}/bin
+
+# Dummy configure to enable universal variant
+use_configure	yes
+configure		{}
+
+post-patch {
+	cd ${worksrcpath}
+	reinplace "s/~//" ${name}.1 ${xcode.project}/project.pbxproj
+	reinplace "s|/usr/local|${prefix}/share|" ${xcode.project}/project.pbxproj
+}
+
+post-activate {
+	ui_info "To enable the use of MacPorts otest tool inside XCode, you should set the OTEST"
+	ui_info "environment variable to:"
+	ui_info "	${prefix}/bin/otest"
+}
+
+variant universal {
+	build.args		"ARCHS=\"i386 ppc\""
+	destroot.args	"ARCHS=\"i386 ppc\""
+}
+
+livecheck.check	regex
+livecheck.url	${homepage}
+livecheck.regex	{New in Release v(\d+)}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070816/66c99ddb/attachment.html


More information about the macports-changes mailing list