Skip to content

Commit

Permalink
HexFiend: dropping subport HexFiend-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh authored and neverpanic committed Nov 3, 2020
1 parent d6a1bb5 commit b9c09dc
Showing 1 changed file with 13 additions and 28 deletions.
41 changes: 13 additions & 28 deletions editors/HexFiend/Portfile
Expand Up @@ -36,34 +36,19 @@ minimum_xcodeversions {11 8.0}
patch.pre_args -p1
patchfiles 0001-xcode-Disable-Sparkle.patch

if {${subport} eq ${name}} {
description HexFiend is a fast and clever hex editor

xcode.scheme Release+MAS
xcode.configuration Release+MAS
xcode.build.settings \
CODE_SIGN_IDENTITY=- \
CODE_SIGN_STYLE=Manual
build.pre_args -derivedDataPath ${worksrcpath}

destroot {
copy "${worksrcpath}/build/Release+MAS/Hex Fiend.app" ${destroot}${applications_dir}
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/License.txt ${destroot}${prefix}/share/doc/${name}
}
}

subport HexFiend-framework {
description The HexFiend Framework is an embeddable Cocoa hex editor component from the HexFiend editor

xcode.target HexFiend_Framework
xcode.configuration Release

destroot {
copy "${worksrcpath}/build/Release/HexFiend.framework" ${destroot}${frameworks_dir}
set framework_lib ${frameworks_dir}/HexFiend.framework/Versions/A/HexFiend
system "install_name_tool -id ${framework_lib} ${destroot}${framework_lib}"
}
description HexFiend is a fast and clever hex editor

xcode.scheme Release+MAS
xcode.configuration Release+MAS
xcode.build.settings \
CODE_SIGN_IDENTITY=- \
CODE_SIGN_STYLE=Manual
build.pre_args -derivedDataPath ${worksrcpath}

destroot {
copy "${worksrcpath}/build/Release+MAS/Hex Fiend.app" ${destroot}${applications_dir}
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/License.txt ${destroot}${prefix}/share/doc/${name}
}

if {${os.platform} ne "darwin" || ${os.major} < 12} {
Expand Down

0 comments on commit b9c09dc

Please sign in to comment.