[108291] trunk/dports/editors/hexfiend/Portfile
cal at macports.org
cal at macports.org
Wed Jul 17 15:55:36 PDT 2013
Revision: 108291
https://trac.macports.org/changeset/108291
Author: cal at macports.org
Date: 2013-07-17 15:55:36 -0700 (Wed, 17 Jul 2013)
Log Message:
-----------
HexFiend: Provide separate subport for HexFiend.framework, closes #39213
Modified Paths:
--------------
trunk/dports/editors/hexfiend/Portfile
Modified: trunk/dports/editors/hexfiend/Portfile
===================================================================
--- trunk/dports/editors/hexfiend/Portfile 2013-07-17 22:53:49 UTC (rev 108290)
+++ trunk/dports/editors/hexfiend/Portfile 2013-07-17 22:55:36 UTC (rev 108291)
@@ -17,7 +17,12 @@
maintainers dweber cal openmaintainer
license BSD
-description HexFiend is a fast and clever hex editor
+# required to build on < Lion
+patchfiles framework-sources-HFByteArrayEditScript.m.patch
+platform darwin 11 {
+ patchfiles-delete \
+ framework-sources-HFByteArrayEditScript.m.patch
+}
long_description \n\
* Insert, delete, rearrange. Hex Fiend is not limited to in-place changes like some hex editors.\n\
@@ -31,30 +36,39 @@
* Data inspector. Interpret data as integer or floating point, signed or unsigned, big or little endian...\n\
* Smooth scrolling. No separate pages - scroll like any text document.
-# required to build on < Lion
-patchfiles framework-sources-HFByteArrayEditScript.m.patch
-platform darwin 11 {
- patchfiles-delete \
- framework-sources-HFByteArrayEditScript.m.patch
-}
+if {${subport} eq ${name}} {
+ description HexFiend is a fast and clever hex editor
-post-patch {
- # this is required for builds on 32 bit systems, because NSTag is a signed
- # integer and these values (NSUTF16BigEndianStringEncoding and
- # NSUTF16LittleEndianStringEncoding) both have the MSB set making them not
- # representable in signed 32 bit integers.
- # Applying these on 64 bit systems is safe, too, because the leading 4 bytes
- # will be cut off by a cast.
- reinplace "s/2415919360/-1879047936/g" ${worksrcpath}/English.lproj/MainMenu.xib
- reinplace "s/2483028224/-1811939072/g" ${worksrcpath}/English.lproj/MainMenu.xib
+ post-patch {
+ # this is required for builds on 32 bit systems, because NSTag is
+ # a signed integer and these values (NSUTF16BigEndianStringEncoding and
+ # NSUTF16LittleEndianStringEncoding) both have the MSB set making them
+ # not representable in signed 32 bit integers.
+ # Applying these on 64 bit systems is safe, too, because the leading
+ # 4 bytes will be cut off by a cast.
+ reinplace "s/2415919360/-1879047936/g" ${worksrcpath}/English.lproj/MainMenu.xib
+ reinplace "s/2483028224/-1811939072/g" ${worksrcpath}/English.lproj/MainMenu.xib
+ }
+
+ xcode.target HexFiend_2
+ xcode.configuration Release
+
+ destroot {
+ copy "${worksrcpath}/build/Release/Hex Fiend.app" ${destroot}${applications_dir}
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 ${worksrcpath}/License.txt ${destroot}${prefix}/share/doc/${name}
+ }
}
-xcode.target HexFiend_2
-xcode.configuration Release
+subport HexFiend-framework {
+ description The HexFiend Framework is an embeddable Cocoa hex editor component from the HexFiend editor
-destroot {
- copy "${worksrcpath}/build/Release/Hex Fiend.app" ${destroot}${applications_dir}
- xinstall -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 ${worksrcpath}/License.txt ${destroot}${prefix}/share/doc/${name}
+ 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}"
+ }
}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130717/1d7dc066/attachment-0001.html>
More information about the macports-changes
mailing list