2011-09-27 21:05:11 +00:00
|
|
|
# -*- 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
|
2006-09-08 03:14:43 +00:00
|
|
|
|
2009-09-30 17:20:34 +00:00
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup xcode 1.0
|
2018-10-02 08:18:15 +02:00
|
|
|
PortGroup github 1.0
|
2006-09-08 03:14:43 +00:00
|
|
|
|
2018-10-02 08:18:15 +02:00
|
|
|
github.setup pmougin F-Script e9aa94f2a5ec3409423f907c9423f7d1d845b893
|
2025-01-08 08:32:51 +11:00
|
|
|
# Change github.tarball_from to 'releases' or 'archive' next update
|
|
|
|
|
github.tarball_from tarball
|
2009-09-30 17:20:34 +00:00
|
|
|
name FScript
|
2011-03-10 05:56:51 +00:00
|
|
|
version 2.1
|
2018-10-02 08:18:15 +02:00
|
|
|
revision 2
|
2009-09-30 17:20:34 +00:00
|
|
|
categories aqua lang
|
|
|
|
|
platforms darwin
|
2011-02-19 22:38:55 +00:00
|
|
|
license BSD
|
2018-04-02 14:31:38 -05:00
|
|
|
maintainers {ciserlohn @ci42}
|
2007-05-26 05:24:09 +00:00
|
|
|
|
2009-09-30 17:20:34 +00:00
|
|
|
description Open-source interactive Cocoa scripting environment
|
|
|
|
|
long_description F-Script is an open-source interactive and scripting \
|
|
|
|
|
environment for Cocoa. Based on Smalltalk, F-Script \
|
|
|
|
|
provides a pure object-oriented environment that \
|
|
|
|
|
leverages Mac OS X technologies and frameworks. It \
|
|
|
|
|
aims to be a useful and fun tool for both beginners \
|
|
|
|
|
and experts, allowing interactively exploring, testing \
|
|
|
|
|
and using Cocoa-based objects and frameworks.
|
2006-09-08 03:14:43 +00:00
|
|
|
|
2018-10-02 08:18:15 +02:00
|
|
|
checksums rmd160 bdb19590caa1e8fca0253bf5b287b9046d59bd7d \
|
|
|
|
|
sha256 e4a793f292d1afab3f6cb699da2d095a76c253eea901bea53cb1aebc5a86f9cc \
|
|
|
|
|
size 1087478
|
2011-03-10 05:56:51 +00:00
|
|
|
|
|
|
|
|
patchfiles patch-FScript.xcodeproj-project.pbxproj.diff
|
2009-09-30 17:20:34 +00:00
|
|
|
|
2011-06-26 21:17:36 +00:00
|
|
|
xcode.target FScriptFramework F-Script
|
2009-09-30 17:20:34 +00:00
|
|
|
xcode.destroot.settings SKIP_INSTALL=NO
|
2011-03-10 05:56:51 +00:00
|
|
|
xcode.destroot.type ""
|
2009-09-30 17:20:34 +00:00
|
|
|
|
2012-02-11 08:55:39 +00:00
|
|
|
set is_xcode_4_x [expr [vercmp $xcodeversion 4] >= 0]
|
2011-06-26 21:17:36 +00:00
|
|
|
|
2021-01-31 09:13:53 +11:00
|
|
|
if {!$is_xcode_4_x} {
|
2011-06-26 21:17:36 +00:00
|
|
|
default_variants +ib_plugin
|
2011-03-10 05:56:51 +00:00
|
|
|
}
|
2009-09-30 17:20:34 +00:00
|
|
|
|
2013-08-31 15:55:58 +00:00
|
|
|
# It is wrong that MacPorts chooses an SDK based on deployment target.
|
2012-05-03 11:57:22 +00:00
|
|
|
macosx_deployment_target 10.6
|
2013-08-31 15:55:58 +00:00
|
|
|
compiler.blacklist {clang < 300}
|
|
|
|
|
|
2013-08-31 17:05:46 +00:00
|
|
|
platform darwin 11 {
|
2013-08-31 17:19:13 +00:00
|
|
|
if {! [file exists ${configure.sdkroot}]} {
|
|
|
|
|
depends_lib
|
|
|
|
|
depends_run
|
|
|
|
|
pre-fetch {
|
|
|
|
|
ui_error "$name requires the 10.6 SDK to install on Lion."
|
|
|
|
|
error "unsupported platform"
|
2013-08-31 17:05:46 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-08-31 15:55:58 +00:00
|
|
|
platform darwin {
|
2013-08-31 17:05:46 +00:00
|
|
|
if {${os.major} >= 12} {
|
2013-08-31 15:55:58 +00:00
|
|
|
depends_lib
|
|
|
|
|
depends_run
|
|
|
|
|
pre-fetch {
|
2013-08-31 17:05:46 +00:00
|
|
|
ui_error "$name does not build on Mountain Lion or later."
|
2013-08-31 15:55:58 +00:00
|
|
|
error "unsupported platform"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-05-03 11:57:22 +00:00
|
|
|
|
2011-06-26 21:17:36 +00:00
|
|
|
variant ib_plugin description "Install the Interface Builder Plug-in" {
|
|
|
|
|
xcode.target-append FScriptIBPlugin
|
|
|
|
|
destroot.violate_mtree yes
|
2009-01-25 00:43:22 +00:00
|
|
|
}
|
|
|
|
|
|
2011-03-10 05:56:51 +00:00
|
|
|
variant injection_service description "Enable F-Script injection service" {
|
2011-06-26 21:17:36 +00:00
|
|
|
master_sites-append http://www.fscript.org/download:injection_service
|
|
|
|
|
distfiles-append F-ScriptInjectionService.zip:injection_service
|
2011-03-10 05:56:51 +00:00
|
|
|
|
2011-06-26 21:17:36 +00:00
|
|
|
checksums-append F-ScriptInjectionService.zip \
|
|
|
|
|
sha1 58436fe48375abdfed6251a2fc2ee2b2a39d6bf1 \
|
|
|
|
|
rmd160 dd7dbf0580584f14742c5e38a5f59df4bbb5c951
|
2011-03-10 05:56:51 +00:00
|
|
|
|
2011-06-26 21:17:36 +00:00
|
|
|
destroot.violate_mtree yes
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre-configure {
|
|
|
|
|
if {[variant_isset ib_plugin] && $is_xcode_4_x} {
|
|
|
|
|
ui_error "Xcode 4.x does not support Interface Builder plug-ins.\n \
|
|
|
|
|
Please install ${name} without the Interface Builder plug-in:\n \
|
|
|
|
|
sudo port install ${name} -ib_plugin"
|
|
|
|
|
return -code error "incompatible xcode version"
|
|
|
|
|
}
|
2011-03-10 05:56:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre-build {
|
|
|
|
|
reinplace "s|MACPORTS_APP_DIR|${applications_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj
|
|
|
|
|
reinplace "s|MACPORTS_FRAMEWORK_DIR|${frameworks_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj
|
|
|
|
|
}
|
|
|
|
|
|
2009-09-30 17:20:34 +00:00
|
|
|
post-destroot {
|
2021-01-31 09:13:53 +11:00
|
|
|
if {[variant_isset ib_plugin]} {
|
2011-06-26 21:17:36 +00:00
|
|
|
set ibplugin_dir "${developer_dir}/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins"
|
|
|
|
|
xinstall -d -m 755 ${destroot}${ibplugin_dir}
|
|
|
|
|
file rename ${destroot}${applications_dir}/FScriptIBPlugin.ibplugin ${destroot}${ibplugin_dir}
|
2009-09-30 17:20:34 +00:00
|
|
|
}
|
2011-03-10 05:56:51 +00:00
|
|
|
|
2021-01-31 09:13:53 +11:00
|
|
|
if {[variant_isset injection_service]} {
|
2011-03-10 05:56:51 +00:00
|
|
|
xinstall -d ${destroot}/Library/Services
|
|
|
|
|
file rename "${workpath}/F-ScriptInjectionService/Inject F-Script into application.workflow" ${destroot}/Library/Services/
|
|
|
|
|
reinplace "s|/Library/Frameworks|${frameworks_dir}|g" "${destroot}/Library/Services/Inject F-Script into application.workflow/Contents/document.wflow"
|
|
|
|
|
}
|
2006-09-08 03:14:43 +00:00
|
|
|
}
|