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

Last change on this file since 101826 was 101826, checked in by jeremyhu@…, 7 years ago

nedit: Set license per COPYRIGHT file

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