/[gentoo-alt]/trunk/prefix/app-shells/bash/bash-3.0-r13.ebuild
Gentoo

Diff of /trunk/prefix/app-shells/bash/bash-3.0-r13.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1492 Revision 1493
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.0-r13.ebuild,v 1.2 2005/10/20 16:51:39 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-3.0-r13.ebuild,v 1.4 2006/03/23 23:07:21 vapier Exp $
4 4
5EAPI="prefix" 5EAPI="prefix"
6 6
7inherit eutils flag-o-matic toolchain-funcs 7inherit eutils flag-o-matic toolchain-funcs
8 8
84 84
85 # Add strnlen function for non-glibc systems, as one of Fedora's patches 85 # Add strnlen function for non-glibc systems, as one of Fedora's patches
86 # requires it. 86 # requires it.
87 epatch "${FILESDIR}"/${P}-strnlen.patch 87 epatch "${FILESDIR}"/${P}-strnlen.patch
88 88
89 sed -i 's:-lcurses:-lncurses:' configure || die "sed configure"
90
91 epatch "${FILESDIR}"/${P}-pathnames.patch 89 epatch "${FILESDIR}"/${P}-pathnames.patch
92 sed -i -e "s:\@PREFIX\@:${EPREFIX}:g" config-top.h pathnames.h.in \ 90 sed -i -e "s:\@PREFIX\@:${EPREFIX}:g" config-top.h pathnames.h.in \
93 || die "sed failed." 91 || die "sed failed."
94} 92}
95 93
109 # reading Bug 7714 first. If you still build it statically, 107 # reading Bug 7714 first. If you still build it statically,
110 # don't come crying to use with bugs ;). 108 # don't come crying to use with bugs ;).
111 #use static && export LDFLAGS="${LDFLAGS} -static" 109 #use static && export LDFLAGS="${LDFLAGS} -static"
112 use nls || myconf="${myconf} --disable-nls" 110 use nls || myconf="${myconf} --disable-nls"
113 111
114 echo 'int main(){}' > "${T}"/term-test.c 112 # Force linking with system curses ... the bundled termcap lib
115 if ! $(tc-getCC) -static -lncurses "${T}"/term-test.c 2> /dev/null ; then 113 # sucks bad compared to ncurses
116 export bash_cv_termcap_lib=gnutermcap
117 else
118 export bash_cv_termcap_lib=libcurses
119 myconf="${myconf} --with-ncurses" 114 myconf="${myconf} --with-curses"
120 fi
121 115
122 econf \ 116 econf \
123 $(use_with afs) \ 117 $(use_with afs) \
124 --disable-profiling \ 118 --disable-profiling \
125 --without-gnu-malloc \ 119 --without-gnu-malloc \
126 ${myconf} || die 120 ${myconf} || die
127 # Make sure we always link statically with ncurses
128 sed -i "/^TERMCAP_LIB/s:-lncurses:-Wl,-Bstatic -lncurses -Wl,-Bdynamic:" Makefile || die "sed failed"
129 emake -j1 || die "make failed" # see bug 102426 121 emake -j1 || die "make failed" # see bug 102426
130} 122}
131 123
132src_install() { 124src_install() {
133 einstall || die 125 einstall || die

Legend:
Removed from v.1492  
changed lines
  Added in v.1493

  ViewVC Help
Powered by ViewVC 1.1.20