# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.0.ebuild,v 1.12 2009/02/27 00:43:38 vapier Exp $ EAPI="1" inherit eutils flag-o-matic toolchain-funcs multilib # Official patchlevel # See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/ PLEVEL=${PV##*_p} MY_PV=${PV/_p*} MY_P=${PN}-${MY_PV} [[ ${PV} != *_p* ]] && PLEVEL=0 READLINE_VER=6.0 READLINE_PLEVEL=0 # both readline patches are also released as bash patches patches() { local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}} [[ ${plevel} -eq 0 ]] && return 1 eval set -- {1..${plevel}} set -- $(printf "${pn}${pv/\.}-%03d " "$@") if [[ ${opt} == -s ]] ; then echo "${@/#/${DISTDIR}\/}" else local u for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do printf "${u}/${pn}-${pv}-patches/%s " "$@" done fi } DESCRIPTION="The standard GNU Bourne again shell" HOMEPAGE="http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html" SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches) $(patches ${READLINE_PLEVEL} readline ${READLINE_VER})" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="afs bashlogger examples +net nls plugins vanilla" DEPEND=">=sys-libs/ncurses-5.2-r2" RDEPEND="${DEPEND} !