/[gentoo-x86]/app-shells/fish/fish-1.23.1-r2.ebuild
Gentoo

Contents of /app-shells/fish/fish-1.23.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jun 6 06:17:52 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.3: +2 -2 lines
marked x86 per bug 419725

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/fish/fish-1.23.1-r2.ebuild,v 1.3 2012/06/05 18:53:39 xmw Exp $
4
5 EAPI="4"
6
7 inherit base autotools eutils
8
9 DESCRIPTION="fish is the Friendly Interactive SHell"
10 HOMEPAGE="http://fishshell.com/"
11 SRC_URI="http://fishshell.com/files/${PV}/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
16 IUSE="X vanilla"
17
18 DEPEND="sys-libs/ncurses
19 sys-devel/bc
20 sys-devel/gettext
21 www-client/htmlview
22 X? ( x11-misc/xsel )"
23 RDEPEND="${DEPEND}"
24
25 PATCHES=(
26 "${FILESDIR}/${PN}-1.23.0-glibc-2.8.patch"
27 "${FILESDIR}/${PN}-1.22.3-gettext.patch"
28 "${FILESDIR}/${P}-gentoo-alt.patch"
29 )
30
31 src_prepare() {
32 base_src_prepare
33
34 if ! use vanilla ; then
35 epatch "${FILESDIR}"/${P}-fish_indent.patch
36 epatch "${FILESDIR}"/${P}-multi-line_prompts.patch
37 fi
38
39 eautoreconf
40 }
41
42 src_configure() {
43 # Set things up for fish to be a default shell.
44 # It has to be in /bin in case /usr is unavailable.
45 # Also, all of its utilities have to be in /bin.
46 econf \
47 docdir="${EPREFIX}"/usr/share/doc/${PF} \
48 --without-xsel \
49 --bindir="${EPREFIX}"/bin
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install || die "make install failed"
54 }
55
56 pkg_postinst() {
57 elog
58 elog "To use ${PN} as your default shell, you need to add ${EPREFIX}/bin/${PN}"
59 elog "to ${EPREFIX}/etc/shells."
60 elog
61 ewarn "Many files moved to ${EROOT}usr/share/fish/completions from ${EROOT}etc/fish.d/."
62 ewarn "Delete everything in ${EROOT}etc/fish.d/ except fish_interactive.fish."
63 ewarn "Otherwise, fish won't notice updates to the installed files,"
64 ewarn "because the ones in /etc will override the new ones in /usr."
65 echo
66 }

  ViewVC Help
Powered by ViewVC 1.1.20