source: trunk/dports/editors/nedit/Portfile @ 89222

Last change on this file since 89222 was 89222, checked in by raimue@…, 8 years ago

editors/nedit:
Fix a segmentation fault on startup caused by wrong buffer size, closes #30854

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 89222 2012-01-21 17:40:22Z raimue@macports.org $
2
3PortSystem 1.0
4
5name             nedit
6version          5.5
7revision         2
8categories       editors
9maintainers      nomaintainer
10homepage         http://www.nedit.org/
11description      A multi-purpose text editor for the X Window System.
12long_description \
13    NEdit is a multi-purpose text editor for the X Window System, which \
14    combines a standard, easy to use, graphical user interface with the \
15    thorough functionality and stability required by users who edit text \
16    eight hours a day. It provides intensive support for development in a \
17    wide variety of languages, text processors, and other tools, but at \
18    the same time can be used productively by just about anyone who needs \
19    to edit text.
20platforms        darwin
21
22regsub -all      \\. $version _ xversion
23master_sites     sourceforge:project/nedit/nedit-source/${version} \
24                 ftp://ftp.nedit.org/pub/NEdit/v${xversion}/
25distname         ${name}-${version}-src
26use_bzip2        yes
27checksums        md5 48cb3dce52d44988f3a4d7c6f47b6bbe
28
29depends_lib      lib:libXm:openmotif \
30                 port:xpm
31
32worksrcdir       ${name}-${version}
33
34patchfiles       patch-Makefile.macosx \
35                 patch-segfault.diff
36
37use_configure    no
38
39build.target    macosx
40build.args      MOTIFLINK="${configure.ldflags} -lXm" \
41                MOTIFDIR=${prefix} \
42                LDFLAGS="${configure.ldflags}" \
43                CFLAGS="${configure.cppflags} ${configure.cflags} -DBUILD_UNTESTED_NEDIT" \
44                CPPFLAGS="${configure.cppflags}" \
45                CC="${configure.cc}"
46
47destroot {
48    xinstall -s -m 555 ${worksrcpath}/source/nedit \
49        ${destroot}${prefix}/bin/nedit
50    xinstall -m 444 ${worksrcpath}/doc/nedit.man \
51        ${destroot}${prefix}/share/man/man1/nedit.1
52
53    xinstall -s -m 555 ${worksrcpath}/source/nc \
54        ${destroot}${prefix}/bin/nedit-nc
55    xinstall -m 444 ${worksrcpath}/doc/nc.man \
56        ${destroot}${prefix}/share/man/man1/nedit-nc.1
57}
58
59livecheck.regex {/nedit-source/(\d+(?:\.\d+)+)/}
Note: See TracBrowser for help on using the repository browser.