source: trunk/dports/editors/nedit/Portfile

Last change on this file was 134317, checked in by ionic@…, 2 years ago

nedit: add modeline. Fix permissions of xinstall on binary file. Revbump. Patch provided by Eitan Adler.

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