Ticket #16369: Portfile

File Portfile, 2.1 KB (added by tlr@…, 16 years ago)

updated portfile to build jed 0.99-18 against slang2

Line 
1# $Id: Portfile 36333 2008-04-27 10:47:30Z ryandesign@macports.org $
2PortSystem 1.0
3name            jed
4version         0.99-18
5categories      editors
6maintainers     nomaintainer
7description     JED is a powerful editor for programmers.
8long_description        JED is a powerful editor designed for use by \
9                        programmers, its drop-down menu facility make it \
10                        one of the friendliest text editors around. Hence \
11                        it is ideal for composing simple email messages \
12                        as well as editing complex programs in a variety \
13                        of computer languages.
14homepage        http://www.jedsoft.org/jed/
15platforms       darwin
16master_sites    ftp://space.mit.edu/pub/davis/jed/v0.99/ \
17                ftp://space.mit.edu/pub/davis/jed/v0.99/old/
18use_bzip2       yes
19checksums       md5 5378c8e7805854018d9ec5c3cfadf637 \
20                sha1 fa4b3313fdde0466546e36100b0de2d9cc75806d \
21                rmd160 6925b67eab24d6dd2d5b5a975c350cfda515632d
22depends_lib     port:slang2
23patchfiles      patch-pty.c \
24                patch-misc.c
25configure.args  --mandir=${prefix}/share/man --with-slang=/opt/local
26configure.cppflags-append       "-L${prefix}/lib"
27configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"
28configure.env   JED_ROOT=${prefix}/share/jed
29destroot        {
30                xinstall ${worksrcpath}/src/objs/jed ${destroot}${prefix}/bin
31
32                xinstall ${worksrcpath}/doc/manual/jed.1 ${destroot}${prefix}/share/man/man1/
33
34                xinstall -d ${destroot}${prefix}/share/jed/lib
35                foreach f [glob -nocomplain [file join ${worksrcpath}/lib *]] {
36                        if {![file isdirectory $f] } {
37                                xinstall $f ${destroot}${prefix}/share/jed/lib/
38                        }
39                }
40
41                xinstall -d ${destroot}${prefix}/share/jed/lib/colors
42                foreach f [glob -nocomplain [file join ${worksrcpath}/lib/colors *]] {
43                        if {![file isdirectory $f] } {
44                                xinstall $f ${destroot}${prefix}/share/jed/lib/colors/
45                        }
46                }
47
48                xinstall -d ${destroot}${prefix}/share/jed/lib/colors/Xjed
49                foreach f [glob -nocomplain [file join ${worksrcpath}/lib/colors/Xjed *]] {
50                        if {![file isdirectory $f] } {
51                                xinstall $f ${destroot}${prefix}/share/jed/lib/colors/Xjed/
52                        }
53                }
54}