MPMacPorts |
Object representation of the MacPorts system
Superclass: NSObject
Declared In: MPMacPorts.h
This class represents a single instance of the MacPorts installation system on a user's machine. There is usually only one instance of this per machine, even though there might be more than one in some cases.
sharedInstance |
Returns an MPMacPorts object that represents the MacPorts system on user's machine.
+ (MPMacPorts *)sharedInstance;
sync |
Synchronizes the ports tree without checking for upgrades to the MacPorts base.
- (void)sync;
selfUpdate |
Synchronizes the ports tree and checks for upgrades to MacPorts base.
- (void)selfUpdate;
The selfupdate port command is available only on Mac OS X systems.
search: |
Returns an NSDictionary of ports. Calls [self search:query caseSensiitve:YES].
- (NSDictionary *)search:(NSString *)query;
query
The keys are NSString names of the ports whilst the values are the respective MPPort objects
search:caseSensitive: |
Returns an NSDictionary of ports. Calls [self search:query caseSensitive:sensitivity matchStyle:@"regex"].
- (NSDictionary *)search:(NSString *)query caseSensitive:(BOOL)sensitivity;
query
sensitivity
The keys are NSString names of the ports whilst the values are the respective MPPort objects
search:caseSensitive:matchStyle: |
Returns an NSDictionary of ports. Calls [self search:query caseSensitive:sensitivity matchStyle:style field:@"name"].
- (NSDictionary *)search:(NSString *)query caseSensitive:(BOOL)sensitivity matchStyle:(NSString *)style;
query
sensitivity
style
The keys are NSString names of the ports whilst the values are the respective MPPort objects
search:caseSensitive:matchStyle:field: |
Returns an NSDictionary of ports
- (NSDictionary *)search:(NSString *)query caseSensitive:(BOOL)sensitivity matchStyle:(NSString *)style field:(NSString *)fieldName;
query
sensitivity
style
fieldName
The keys are NSString names of the ports whilst the values are the respective MPPort objects
depends: |
Returns an NSArray of NSString port names that a port depends on
- (NSArray *)depends:(MPPort *)port;
port
exec:withTarget:withOptions:withVariants: |
Executes specific target of given MPPort
- (void)exec:(MPPort *)port withTarget:(NSString *)target withOptions:(NSArray *)options withVariants:(NSArray *)variants;
port
target
options
variants
See -exec: withOptions: withVariants: in MPPort for discussion of this method.
prefix |
Returns the NSString path to the directory where ports are installed.
- (NSString *)prefix;
sources: |
Returns an NSArray of NSStrings for the paths to MacPorts sources or port trees
- (NSArray *)sources:(BOOL)refresh;
refresh
A refresh value of YES will refresh the ports tree whilst a value of NO will not refresh the tree.
sources |
Returns an NSArray of NSStrings of paths to various port trees enabled on User's system
- (NSArray *)sources;
These file paths are listed in opt/local/etc/macports/sources.conf. Each port tree contains the different files for each port.
pathToPortIndex: |
Returns the NSURL of the portIndex file on this MacPorts system for a given ports tree
- (NSURL *)pathToPortIndex:(NSString *)source;
source
The PortIndex is a list of serialized Tcl key-value lists, one list per line. This is where ports are searched for.
version |
Returns an NSString indicating the version of the currently running MacPorts system
- (NSString *)version;
Last Updated: Sunday, July 13, 2008