source: trunk/dports/editors/scite/Portfile

Last change on this file was 97534, checked in by ryandesign@…, 4 years ago

scite: only conflict with tidy on case-insensitive filesystems

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 97534 2012-09-08 05:54:36Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       conflicts_build 1.0
6
7name            scite
8version         3.2.2
9categories      editors
10platforms       darwin
11maintainers     nomaintainer
12license         MIT
13
14description     SciTE is a SCIntilla based Text Editor.
15
16long_description \
17    Originally built to demonstrate Scintilla, it has grown to be a generally \
18    useful editor with facilities for building and running programs. It is best \
19    used for jobs with simple configurations.
20
21homepage        http://scintilla.sourceforge.net/SciTE.html
22master_sites    sourceforge:project/scintilla/SciTE/${version}
23distname        ${name}[strsed ${version} {g/\.//}]
24extract.suffix  .tgz
25
26depends_build   port:pkgconfig
27depends_lib     port:gtk2
28
29checksums       rmd160  0e0e79eee0dca1ee3f2d391f1a6e006763aa48ba \
30                sha256  9f17fe2a5dc294bd1077bf64f713bb06733eec271bab770841e55474e6c781c8
31
32worksrcdir      ${name}
33
34patch.dir       ${workpath}
35
36patchfiles      patch-scite-makefile.diff
37
38# tidy's platform.h shadows scintilla's Platform.h on case-insensitive filesystems; see #28230
39if {[file exists ${prefix}/include/Platform.h]} {
40    conflicts_build tidy
41}
42
43use_configure   no
44
45variant universal {}
46
47set sysrootflags ""
48if {${configure.sdkroot} != ""} {
49    set sysrootflags "-isysroot ${configure.sdkroot}"
50}
51
52build.dir       ${worksrcpath}/gtk
53
54build.args      CCOMP="${configure.cc} ${sysrootflags} [get_canonical_archflags cc]" \
55                CC="${configure.cxx} ${sysrootflags} [get_canonical_archflags cxx]" \
56                prefix=${prefix}
57
58use_parallel_build  yes
59
60pre-build {
61    ui_debug "Building scintilla"
62    set cmd "make [join ${build.args}] [portbuild::build_getjobsarg]"
63    ui_debug "Assembled command: '${cmd}'"
64    system -W ${workpath}/scintilla/gtk ${cmd}
65}
66
67destroot.destdir    prefix=${destroot}${prefix}
68
69post-destroot {
70    xinstall -m 444 ${worksrcpath}/doc/scite.1 ${destroot}${prefix}/share/man/man1
71    set docdir ${prefix}/share/doc/${name}
72    xinstall -d ${destroot}${docdir}
73    xinstall -m 644 -W ${workpath}/scite License.txt README ${destroot}${docdir}
74}
75
76livecheck.distname  SciTE
Note: See TracBrowser for help on using the repository browser.