source: trunk/dports/editors/elvis/Portfile

Last change on this file was 118152, checked in by ryandesign@…, 3 years ago

elvis: use optimization flags to avoid runtime crash (#42949); use -arch flags and add universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 118152 2014-03-23 22:38:24Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            elvis
6version         2.2_0
7revision        4
8license         Artistic-1
9homepage        http://elvis.the-little-red-haired-girl.org/
10description     A vi/ex clone
11categories      editors
12maintainers     gmail.com:crosma
13platforms       darwin
14master_sites    ftp://ftp.cs.pdx.edu/pub/elvis/ \
15                  ftp://ftp.false.com/pub/elvis/ \
16                  ftp://the.wiretapped.net/pub/elvis/ \
17                  http://www.fh-wedel.de/pub/elvis/
18
19checksums       md5 6831b8df3e4a530395e66c2889783752
20
21variant universal {}
22
23configure.cc    "${configure.cc} ${configure.optflags} [get_canonical_archflags cc]"
24
25configure.args  --without-x
26
27patchfiles      patch-src-ref.c.diff
28
29# The x11 variant is seriously borked and needs patching to compile
30#variant         x11 {  depends_lib port:xorg-libX11 port:xorg-libOTHERS???
31#                       configure.args-delete --without-x
32#                       configure.args-append --with-x
33#
34#    configure.args-append --x-includes=${prefix}/include --x-libraries=${prefix}/lib
35#
36#    build.args-append CC="gcc -I${prefix}/include `${prefix}/bin/freetype-config --cflags`"
37#}
38pre-destroot {
39               reinplace "s|${prefix}|${destroot}${prefix}|g" ${worksrcpath}/Makefile
40               reinplace "s|sh instman.sh|MANPATH=${destroot}${prefix}/share/man sh instman.sh|" ${worksrcpath}/Makefile
41               reinplace "s|MAN/manl MAN/man1|MAN/man1|" ${worksrcpath}/instman.sh
42             }
43post-configure { reinplace "s|/etc|${prefix}/etc|g" ${worksrcpath}/Makefile
44}
45long_description   \
46Elvis is a very powerful vi/ex clone providing \
47a remarkable number of bells and whistles like, Syntax Highlighting, \
48Multiple files in multiple windows, Networking support (http and ftp).
49
Note: See TracBrowser for help on using the repository browser.