[88675] trunk/dports/aqua/TeXShop3/Portfile
jwa at macports.org
jwa at macports.org
Sat Jan 7 09:15:33 PST 2012
Revision: 88675
http://trac.macports.org/changeset/88675
Author: jwa at macports.org
Date: 2012-01-07 09:15:29 -0800 (Sat, 07 Jan 2012)
Log Message:
-----------
started from an old, polish for Lion, i.e. drop some architecture fixes not needed, drop a file to install, drop old, obsolete versions
Modified Paths:
--------------
trunk/dports/aqua/TeXShop3/Portfile
Modified: trunk/dports/aqua/TeXShop3/Portfile
===================================================================
--- trunk/dports/aqua/TeXShop3/Portfile 2012-01-07 16:52:14 UTC (rev 88674)
+++ trunk/dports/aqua/TeXShop3/Portfile 2012-01-07 17:15:29 UTC (rev 88675)
@@ -29,8 +29,15 @@
checksums sha1 edf89e4cb9d8fb5428fe7ad5c5ec8eedf0507c91 \
rmd160 e965e25076cf8907674d5ed666ee4e3ae9958b9f
-# force 32-bit, ticket #20291
-#supported_archs i386 ppc
+pre-fetch {
+ platform darwin {
+ if {${os.major} < 11} {
+ ui_err "${name} requires at least 10.7, Lion"
+ return -code error "This version is for 10.7, Lion, and later only"
+ }
+ }
+}
+
post-extract {
set sparkle "Sparkle.framework/Versions/A/Sparkle"
set ogrekit "OgreKit.framework/Versions/A/OgreKit"
@@ -38,21 +45,9 @@
# thin the bundled frameworks
system "cd ${worksrcpath} && lipo -thin ${configure.build_arch} $sparkle -output $sparkle"
system "cd ${worksrcpath} && lipo -thin ${configure.build_arch} $ogrekit -output $ogrekit"
- } elseif {${os.major} == 8} {
- # Tiger chokes on the x86_64
- system "cd ${worksrcpath} && lipo -remove x86_64 $sparkle -output $sparkle"
}
}
-patch {
- reinplace "s|defaultConfigurationName = Debug|defaultConfigurationName = Release|" ${worksrcpath}/TeXShop.xcodeproj/project.pbxproj
- reinplace "s|GCC_VERSION_i386 = 4\.0|GCC_VERSION_i386 = [lindex [split ${configure.objc} -] 1]|g" ${worksrcpath}/3rdparty/OgreKit/OgreKit.xcodeproj/project.pbxproj
- reinplace "s|GCC_VERSION_ppc = 3\.3|GCC_VERSION_ppc = [lindex [split ${configure.objc} -] 1]|g" ${worksrcpath}/3rdparty/OgreKit/OgreKit.xcodeproj/project.pbxproj
- reinplace "s|GCC_VERSION = 4\.0|GCC_VERSION = [lindex [split ${configure.objc} -] 1]|" ${worksrcpath}/TeXShop.xcodeproj/project.pbxproj
- reinplace "s|GCC_VERSION = 4\.0|GCC_VERSION = [lindex [split ${configure.objc} -] 1]|" ${worksrcpath}/3rdparty/TeX-mdimporter/TeX.xcodeproj/project.pbxproj
-}
-
-
build.target ${propername}
xcode.project ${propername}.xcodeproj
@@ -62,19 +57,11 @@
destroot.target ${propername}
eval xcode.destroot.settings INSTALL_MODE_FLAG=755 ${xcode.build.settings}
+
post-destroot {
file delete -force ${destroot}${applications_dir}/TeX.mdimporter
-
-# xinstall -m 755 ${filespath}/lilypond.engine ${destroot}${applications_dir}/${propername}.app/Contents/Resources/${propername}/Engines/Lilypond.engine
-# reinplace s|@@PREFIX@@|${prefix}|g ${destroot}${applications_dir}/${propername}.app/Contents/Resources/${propername}/Engines/Lilypond.engine
}
-platforms darwin 11 {
- supported_archs i386 x86_64
-}
-
-#notes "If you intend to use the Lilypond engine, please copy ${applications_dir}/${propername}.app/Contents/Resources/${propername}/Engines/Lilypond.engine to ~/Library/${propername}/Engines/Lilypond.engine"
-
livecheck.type regex
livecheck.url http://pages.uoregon.edu/koch/texshop/version.html
livecheck.regex ${propername} Changes (\\d+\\.\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120107/617f0aeb/attachment.html>
More information about the macports-changes
mailing list