source: trunk/dports/aqua/TeXShop3/Portfile @ 112821

Last change on this file since 112821 was 112347, checked in by jwa@…, 6 years ago

TeXShop3: version bump to 3.25

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 112347 2013-10-19 15:17:07Z jwa@macports.org $
3
4PortSystem      1.0
5PortGroup       xcode 1.0
6
7name            TeXShop3
8conflicts       TeXShop
9version         3.25
10
11set major       [lindex [split ${version} .] 0]
12categories      aqua editors
13license         GPL-2+
14maintainers     jwa openmaintainer
15description     TeX previewer for Mac OS X
16long_description   \
17    TeXShop is a TeX previewer for Mac OS X, written in Cocoa.  \
18    Since pdf is a native file format on OS X, TeXShop uses     \
19    "pdftex" and "pdflatex" rather than "tex" and "latex" to    \
20    typeset, these programs in the standard teTeX distribution  \
21    of TeX produce pdf output instead of dvi output.
22homepage        http://pages.uoregon.edu/koch/texshop
23master_sites    ${homepage}/texshop-64
24use_zip         yes
25distname        texshopsource[strsed ${version} {g/\.//}]
26dist_subdir     TeXShop/
27worksrcdir      texshop-${version}
28set propername  TeXShop
29
30checksums           rmd160  04620d7a886468168a301f6786157feb543538b2 \
31                    sha256  7663bf98d5ad3fbd7d314916aadc1d74613d34cb3adc6a1d938a1c8916f24cfe
32
33pre-fetch {
34    platform darwin {
35        if {${os.major} < 11} {
36            ui_error "${name} requires at least 10.7, Lion"
37            return -code error  "This version is for 10.7, Lion, and later only"
38        }
39    }
40}
41
42post-extract    {
43    set sparkle "Sparkle.framework/Versions/A/Sparkle"
44    set ogrekit "OgreKit.framework/Versions/A/OgreKit"
45    if {![variant_isset universal]} {
46        # thin the bundled frameworks
47        system "cd ${worksrcpath} && lipo -thin ${configure.build_arch} $sparkle -output $sparkle"
48        system "cd ${worksrcpath} && lipo -thin ${configure.build_arch} $ogrekit -output $ogrekit"
49    }
50}
51
52build.target    ${propername}
53build.pre_args-append   -sdk macosx10.8
54destroot.pre_args-append    -sdk macosx10.8
55
56xcode.project   ${propername}.xcodeproj
57xcode.configuration Release
58xcode.build.settings    FRAMEWORK_SEARCH_PATHS=${worksrcpath} \
59                        CONFIGURATION_BUILD_DIR=${worksrcpath}/build
60
61destroot.target     ${propername}
62eval xcode.destroot.settings INSTALL_MODE_FLAG=755 ${xcode.build.settings}
63
64post-destroot        {
65    file delete -force ${destroot}${applications_dir}/TeX.mdimporter
66}
67
68livecheck.type      regex
69livecheck.regex     TeXShop \\(v (${major}\.\[0-9.\]+)\\)
Note: See TracBrowser for help on using the repository browser.