# $Id: Portfile 35937 2008-04-10 19:38:52Z waqar@macports.org $ PortSystem 1.0 name TeXShop version 2.14 revision 5 categories editors aqua PortGroup xcode 1.0 maintainers waqar@macports.org description TeX previewer for Mac OS X long_description \ TeXShop is a TeX previewer for Mac OS X, written in Cocoa. \ Since pdf is a native file format on OS X, TeXShop uses \ "pdftex" and "pdflatex" rather than "tex" and "latex" to \ typeset, these programs in the standard teTeX distribution \ of TeX produce pdf output instead of dvi output. homepage http://www.uoregon.edu/~koch/texshop/texshop.html platforms macosx master_sites http://www.uoregon.edu/~koch/texshop use_zip yes distname texshopsource checksums md5 3093d3c7030ae512d1e5af1533d02f24 \ sha1 4ddfb52d6523b71a109c505bbda1d95785cb8f3d platform darwin 7 { pre-fetch { return -code error "\n TeXShop 2.x will not install on less than OS X 10.4 and there isn't a TeXShop 1.x port contributed as yet to accommodate 10.3.\n" } } post-extract { reinplace "s/defaultConfigurationName = Debug/defaultConfigurationName = Release/" ${worksrcpath}/${name}.xcodeproj/project.pbxproj } use_configure no build.type pbx build.target ${name} xcode.project ${name}.xcodeproj xcode.configuration Release xcode.build.settings FRAMEWORK_SEARCH_PATHS=${worksrcpath} \ CONFIGURATION_BUILD_DIR=${worksrcpath}/build destroot { system "cd ${worksrcpath} && ${build.cmd} DSTROOT=${destroot} \ INSTALL_PATH=/Applications/MacPorts -target ${name} install \ INSTALL_MODE_FLAG=755 ${xcode.build.settings}" file delete -force ${destroot}/Applications/MacPorts/TeX.mdimporter }