[29827] users/rhwood/MacPorts.Framework
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 11 04:18:28 PDT 2007
Revision: 29827
http://trac.macosforge.org/projects/macports/changeset/29827
Author: rhwood at macports.org
Date: 2007-10-11 04:18:27 -0700 (Thu, 11 Oct 2007)
Log Message:
-----------
Add methods (NSArray *)depends and (void)exec:(NSString *)target to implement the MacPorts API methods mportdepends and mportexec functions.
Note that exec:target is an empty method for now.
Modified Paths:
--------------
users/rhwood/MacPorts.Framework/MPPort.h
users/rhwood/MacPorts.Framework/MPPort.m
Modified: users/rhwood/MacPorts.Framework/MPPort.h
===================================================================
--- users/rhwood/MacPorts.Framework/MPPort.h 2007-10-11 07:32:48 UTC (rev 29826)
+++ users/rhwood/MacPorts.Framework/MPPort.h 2007-10-11 11:18:27 UTC (rev 29827)
@@ -22,6 +22,8 @@
- (NSString *)name;
- (NSString *)version;
+- (NSArray *)depends;
+- (void)exec:(NSString *)target;
- (void) setPortWithTclListAsString:(NSString *)string;
- (void) addDependencyAsPortName:(NSString *)dependency;
Modified: users/rhwood/MacPorts.Framework/MPPort.m
===================================================================
--- users/rhwood/MacPorts.Framework/MPPort.m 2007-10-11 07:32:48 UTC (rev 29826)
+++ users/rhwood/MacPorts.Framework/MPPort.m 2007-10-11 11:18:27 UTC (rev 29827)
@@ -117,6 +117,18 @@
return [self objectForKey:@"version"];
}
+- (NSArray *)depends {
+ return [[[NSArray arrayWithArray:[self valueForKey:@"depends_build"]]
+ arrayByAddingObjectsFromArray:[self valueForKey:@"depends_lib"]]
+ arrayByAddingObjectsFromArray:[self valueForKey:@"depends_run"]];
+}
+
+- (void)exec:(NSString *)target {
+ MPInterpreter *interpreter;
+ interpreter = [MPInterpreter sharedInterpreter];
+// [interpreter evaluateArrayAsString:];
+}
+
#pragma NSMutableDictionary Protocal
- (unsigned)count {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071011/7616bbb0/attachment.html
More information about the macports-changes
mailing list