# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortGroup conflicts_build 1.0
description SciTE is a SCIntilla based Text Editor.
Originally built to demonstrate Scintilla, it has grown to be a generally \
useful editor with facilities for building and running programs. It is best \
used for jobs with simple configurations.
homepage http://scintilla.sourceforge.net/SciTE.html
master_sites sourceforge:project/scintilla/SciTE/${version}
distname ${name}[strsed ${version} {g/\.//}]
depends_build port:pkgconfig
checksums rmd160 0e0e79eee0dca1ee3f2d391f1a6e006763aa48ba \
sha256 9f17fe2a5dc294bd1077bf64f713bb06733eec271bab770841e55474e6c781c8
patchfiles patch-scite-makefile.diff
# tidy's platform.h shadows scintilla's Platform.h on case-insensitive filesystems; see #28230
if {[file exists ${prefix}/include/Platform.h]} {
if {${configure.sdkroot} != ""} {
set sysrootflags "-isysroot ${configure.sdkroot}"
build.dir ${worksrcpath}/gtk
build.args CCOMP="${configure.cc} ${sysrootflags} [get_canonical_archflags cc]" \
CC="${configure.cxx} ${sysrootflags} [get_canonical_archflags cxx]" \
ui_debug "Building scintilla"
set cmd "make [join ${build.args}] [portbuild::build_getjobsarg]"
ui_debug "Assembled command: '${cmd}'"
system -W ${workpath}/scintilla/gtk ${cmd}
destroot.destdir prefix=${destroot}${prefix}
xinstall -m 444 ${worksrcpath}/doc/scite.1 ${destroot}${prefix}/share/man/man1
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${workpath}/scite License.txt README ${destroot}${docdir}