Ticket #25261: Portfile.2

File Portfile.2, 2.1 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)
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$
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6PortGroup           github 1.0
7
8github.setup        anoopjohn gphpedit 0.9.98
9categories          gnome editors
10platforms           darwin
11maintainers         ryandesign openmaintainer
12license             GPL-3+
13
14description         a small UTF-8 compatible text editor for the GNOME \
15                    desktop environment, built using Scintilla.
16
17long_description    ${name} is ${description}. It is designed for PHP and \
18                    HTML text editing.
19
20homepage            http://www.gphpedit.org/
21
22checksums           rmd160  8c52741a9e4a394fabadb93936cf3219b8f56a7b \
23                    sha256  c70dc63ab6fbc3e75ab9f02bd26c577302f327fe5a73303361d888ee86715ae4
24
25depends_build       port:autoconf \
26                    port:automake \
27                    port:intltool \
28                    port:pkgconfig
29
30depends_lib         port:gvfs \
31                    port:libtool \
32                    port:libxml2 \
33                    path:bin/php:php5 \
34                    port:webkit-gtk
35
36patchfiles          patch-autogen.sh.diff \
37                    patch-compiler.diff
38
39variant universal {}
40
41post-patch {
42    reinplace "s|@ARCHFLAGS@|[get_canonical_archflags]|g" ${worksrcpath}/src/gtkscintilla2/Makefile \
43        ${worksrcpath}/src/gtkscintilla2/scintilla/gtk/makefile
44    reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/src/gtkscintilla2/Makefile \
45        ${worksrcpath}/src/gtkscintilla2/scintilla/gtk/makefile
46    reinplace "s|@CXX@|${configure.cxx}|g" ${worksrcpath}/src/gtkscintilla2/scintilla/gtk/makefile
47}
48
49# tidy's platform.h shadows QScintilla's Platform.h on case-insensitive filesystems
50if {[file exists ${prefix}/include/Platform.h]} {
51    conflicts_build-append tidy
52}
53
54configure.cmd       ./autogen.sh
55
56configure.args      --disable-silent-rules
57
58# intltool needs to be run with the correct version of perl
59configure.env-append INTLTOOL_PERL=${prefix}/bin/perl5.12
60
61use_parallel_build   no