Ticket #35546: Portfile

File Portfile, 1.1 KB (added by greeneg (Gary Greene), 12 years ago)

Updated version of pinfo's Portfile to use LLVM compiler

Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4name            pinfo
5version         0.6.9
6categories      textproc
7maintainers     iaas.msu.ru:master
8description     Pinfo - Ncurses based info documentation browser
9long_description \
10                Pinfo is a hypertext info file viewer \
11                with a user interface similar to lynx. \
12                It is based on curses/ncurses, \
13                and can handle info pages as well as man pages. \
14                It also features regexp searching and user-defined colors/keys.
15
16platforms       darwin
17
18homepage        http://pinfo.alioth.debian.org/
19master_sites    http://alioth.debian.org/download.php/1502/
20
21checksums       md5 c3298d36537601753558b3e9240b00b7
22
23pre-patch       {       
24                reinplace "s#/usr/share/info:/usr/info:/usr/local/share/info:/usr/local/info:/opt/info#/usr/share/info:/usr/info:/usr/local/share/info:/usr/local/info:/opt/info:${prefix}/share/info#" "${worksrcpath}/src/datatypes.c"
25                }
26
27if {${configure.compiler} == "clang"} {
28    configure.compiler llvm-gcc-4.2
29}
30
31configure.cflags-append -I${prefix}/include
32
33configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info \
34                --with-ncurses --disable-nls