[27926] trunk/dports/devel/sentestingkit/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 16 02:03:02 PDT 2007
Revision: 27926
http://trac.macosforge.org/projects/macports/changeset/27926
Author: nox at macports.org
Date: 2007-08-16 02:03:01 -0700 (Thu, 16 Aug 2007)
Log Message:
-----------
sentestingkit:
* Updated to 41.
* Ported to xcode portgroup.
* Added universal support.
* Added test target
* Added sha1 and rmd160 checksums and livecheck.
Modified Paths:
--------------
trunk/dports/devel/sentestingkit/Portfile
Modified: trunk/dports/devel/sentestingkit/Portfile
===================================================================
--- trunk/dports/devel/sentestingkit/Portfile 2007-08-16 07:57:10 UTC (rev 27925)
+++ trunk/dports/devel/sentestingkit/Portfile 2007-08-16 09:03:01 UTC (rev 27926)
@@ -1,28 +1,62 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+PortGroup xcode 1.0
+
name sentestingkit
-version 25
-revision 1
+set my_name SenTestingKit
+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.
-homepage http://sente.epfl.ch/software/ocunit/
-platforms darwin
+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/
master_sites http://www.sente.ch/pub/software/OCUnit/
-distname OCUnitSourceDistribution_v${version}
-checksums md5 3260eb3fd4b0ddcf358ce7a9cdcbe7c8
-depends_lib path:/Library/Frameworks/SenFoundation.framework:senfoundation
-extract.post_args | gnutar -x
+distname OCUnitHome-v${version}
+dist_subdir otest
+extract.suffix .tgz
-worksrcdir OCUnitSourceDistribution/OCUnit/SenTestingKit
+checksums md5 292cc78f477ca75890f455b5d9f9d04d \
+ sha1 4ce07d4688a2dacfa37e2b315f8e849d6d5d17c1 \
+ rmd160 40ae3553853c83de96a221f1d779fea0a5fdecf4
-use_configure no
-build.type pbx
-build.target
+worksrcdir [strsed ${distname} {/-.*$//}]/OCUnit/SourceCode/${my_name}
-destroot {system "cd ${worksrcpath} && ditto -v build/SenTestingKit.framework \
- ${destroot}/Library/Frameworks/SenTestingKit.framework "}
+xcode.project ${my_name}.xcode
+xcode.target ${my_name}
+xcode.configuration RootDeployment
+xcode.destroot.type framework
+# Dummy configure to enable universal variant
+use_configure yes
+configure {}
+
+post-patch {
+ reinplace "s/~//" ${worksrcpath}/${xcode.project}/project.pbxproj
+}
+
+test.run yes
+
+test {
+ cd ${worksrcpath}
+ system "${build.cmd} -project ${xcode.project} \
+ -target ${xcode.target}_UnitTests \
+ -configuration ${xcode.configuration} \
+ ${build.args}"
+}
+
+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/af7771c3/attachment.html
More information about the macports-changes
mailing list