DPCIManager: fix build on macOS <10.11

* set platforms to {macosx >= 12}
This commit is contained in:
aeiouaeiouaeiouaeiouaeiouaeiou
2026-02-19 03:37:40 +03:00
committed by Zhenfu Shi
parent a1df5b2cb0
commit 9e6c0c33c4
2 changed files with 17 additions and 15 deletions
+3 -2
View File
@@ -7,7 +7,7 @@ PortGroup xcode 1.0
github.setup MuntashirAkon DPCIManager 2.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 9
revision 10
categories sysutils aqua
maintainers {i0ntempest @i0ntempest} openmaintainer
license GPL-2
@@ -20,7 +20,8 @@ checksums rmd160 e48da52bbf13b2f0032ddf5d24d47090eb79174f \
sha256 fe84fa3ee9d3b8d800118b9accd5597e3150f4f518258ae3012fc343ceec0236 \
size 208257
platforms macosx
# requires Xcode 5 due to complete Auto Layout support and 10.8+ features
platforms {macosx >= 12}
depends_build-append \
port:pciids
@@ -33,10 +33,10 @@ index e500051..9e3ff67 100644
@end
diff --git a/DPCIManager/AppDelegate.m b/DPCIManager/AppDelegate.m
index 4bbd226..8343320 100644
index 4bbd226..b90f11a 100644
--- a/DPCIManager/AppDelegate.m
+++ b/DPCIManager/AppDelegate.m
@@ -223,6 +223,25 @@ -(IBAction)fetchvBIOS:(id)sender{
@@ -223,6 +223,25 @@
IOObjectRelease(service);
}
}
@@ -52,7 +52,7 @@ index 4bbd226..8343320 100644
+ NSSavePanel *sp = NSSavePanel.savePanel;
+ [sp setDirectoryURL:[NSURL URLWithString:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]]];
+ [sp setAllowedFileTypes:@[@"txt"]];
+ [sp beginSheetModalForWindow:NSApp.mainWindow completionHandler:^(NSInteger result){
+ [sp beginSheetModalForWindow:[NSApp mainWindow] completionHandler:^(NSInteger result){
+ if(result == NSFileHandlingPanelOKButton){
+ [sp orderOut:self];
+ [deviceList writeToURL:sp.URL atomically:YES encoding:NSUTF8StringEncoding error:nil];
@@ -63,21 +63,22 @@ index 4bbd226..8343320 100644
-(void)readLog:(NSData *)data{
[[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] enumerateLinesUsingBlock:^(NSString *line, BOOL *stop){
diff --git a/DPCIManager/en.lproj/MainMenu.xib b/DPCIManager/en.lproj/MainMenu.xib
index 4f74dbe..a942798 100644
index 4f74dbe..eeedf0d 100644
--- a/DPCIManager/en.lproj/MainMenu.xib
+++ b/DPCIManager/en.lproj/MainMenu.xib
@@ -1,8 +1,8 @@
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4439" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
- <deployment identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14313.18"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4439"/>
</dependencies>
<objects>
@@ -94,7 +94,7 @@
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -94,7 +92,7 @@
</menuItem>
<menuItem title="Save…" keyEquivalent="s" id="75">
<connections>
@@ -86,7 +87,7 @@ index 4f74dbe..a942798 100644
</connections>
</menuItem>
<menuItem title="Revert to Saved" id="112">
@@ -1057,7 +1057,7 @@
@@ -1057,7 +1055,7 @@
<rect key="frame" x="0.0" y="0.0" width="655" height="177"/>
<clipView key="contentView" copiesOnScroll="NO" id="4Sy-cz-lrQ">
<rect key="frame" x="1" y="0.0" width="653" height="176"/>
@@ -95,7 +96,7 @@ index 4f74dbe..a942798 100644
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" headerView="1611" id="1609">
<rect key="frame" x="0.0" y="0.0" width="653" height="153"/>
@@ -1205,7 +1205,7 @@
@@ -1205,7 +1203,7 @@
<rect key="frame" x="0.0" y="0.0" width="295" height="133"/>
<clipView key="contentView" id="9Dh-lM-uBf">
<rect key="frame" x="1" y="1" width="293" height="131"/>
@@ -104,7 +105,7 @@ index 4f74dbe..a942798 100644
<subviews>
<outlineView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" selectionHighlightStyle="none" columnReordering="NO" multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" typeSelect="NO" rowSizeStyle="automatic" viewBased="YES" indentationPerLevel="16" outlineTableColumn="1684" id="1680">
<rect key="frame" x="0.0" y="0.0" width="293" height="131"/>
@@ -1330,12 +1330,12 @@
@@ -1330,12 +1328,12 @@
</objects>
<resources>
<image name="NSActionTemplate" width="14" height="14"/>