source: trunk/dports/devel/readline/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       muniversal 1.0
5
6name            readline
7set milestone   6.3
8set patchlevel  003
9version         ${milestone}.${patchlevel}
10revision        1
11distname        ${name}-${milestone}
12categories      devel
13platforms       darwin freebsd
14maintainers     mcalhoun openmaintainer
15license         GPL-3+
16
17description     Library that provides command line editing
18
19long_description \
20    The GNU Readline library provides a set of functions for use by         \
21    applications that allow users to edit command lines as they are typed   \
22    in. Both Emacs and vi editing modes are available. The Readline library \
23    includes additional functions to maintain a list of previously-entered  \
24    command lines, to recall and perhaps reedit those lines, and perform    \
25    csh-like history expansion on previous commands.
26
27homepage        http://cnswww.cns.cwru.edu/~chet/readline/rltop.html
28master_sites    gnu
29
30patch_sites     gnu:${name}/${distname}-patches/
31
32set i 1
33set patchname ${name}[join [split $milestone .] ""]
34if {![regexp {0*([1-9]+)} $patchlevel -> lastpatch]} {
35    set lastpatch 0
36}
37
38# remove "-arch_only `/usr/bin/arch`"
39patchfiles-append  patch-shobj-conf.diff
40while {$i <= $lastpatch} {
41    patchfiles-append ${patchname}-[format "%03d" $i]
42    incr i
43}
44
45checksums           ${patchname}-001 \
46                    rmd160  feb98062e9407192a65ab85d62e54b947f119d97 \
47                    sha256  1a79bbb6eaee750e0d6f7f3d059b30a45fc54e8e388a8e05e9c3ae598590146f \
48                    ${patchname}-002 \
49                    rmd160  8985874564ff3d1630231e333e87d7d7596fbe63 \
50                    sha256  39e304c7a526888f9e112e733848215736fb7b9d540729b9e31f3347b7a1e0a5 \
51                    ${patchname}-003 \
52                    rmd160  bc0765b54e0e97cacfe9ddbacc123b4ce007e350 \
53                    sha256  ec41bdd8b00fd884e847708513df41d51b1243cecb680189e31b7173d01ca52f \
54                    ${distfiles} \
55                    rmd160  986262d811d9dbe1e38bc9d714853272967dca7e \
56                    sha256  56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43
57
58configure.args  --with-curses
59
60configure.universal_args-delete --disable-dependency-tracking
61
62use_parallel_build  yes
63
64# the configure script runs a program
65set merger_must_run_binaries yes
66
67depends_lib     port:ncurses
68
69post-destroot {
70    set docdir ${prefix}/share/doc/${name}
71    xinstall -d ${destroot}${docdir}/html
72    xinstall -m 0644 -W ${worksrcpath} CHANGELOG CHANGES COPYING NEWS README \
73        ${destroot}${docdir}
74    eval xinstall -m 0644 [glob ${worksrcpath}/doc/*.html] \
75        ${destroot}${docdir}/html
76}
77
78# Prior to 6.3, the "install_name" of shared libraries were
79#    libreadline.X.Y.dylib and libhistory.X.Y.dylib instead of   
80#    libreadline.X.dylib   and libhistory.X.dylib
81# Therefore, when upgrading, symlinks were installed to avoid breaking ports linked
82#    against old versions.
83# This was fixed in 6.3.
84# For 6.4, therefore, the following should probably be removed.
85# Version 6.1 hasn't been around for over three years (r76438), so only create a
86#    link for 6.2.
87platform darwin {
88    post-destroot {
89        foreach f {history readline} {
90            foreach v {6.2} {
91                ln -sf lib${f}.${milestone}.dylib ${destroot}${prefix}/lib/lib${f}.${v}.dylib
92            }
93        }
94    }
95}
96
97if {[variant_isset universal]} {
98
99    configure.args-append   bash_cv_must_reinstall_sighandlers=no \
100                            bash_cv_func_sigsetjmp=present \
101                            bash_cv_func_strcoll_broken=no \
102                            bash_cv_func_ctype_nonascii=yes
103}
104
105livecheck.version   ${milestone}
Note: See TracBrowser for help on using the repository browser.