1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils bash-completion-r1
9 DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
10 HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Eselect"
11 SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"
13 LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-2.5 )"
15 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16 IUSE="doc emacs vim-syntax"
21 sys-freebsd/freebsd-bin
26 doc? ( dev-python/docutils )"
31 PDEPEND="emacs? ( app-emacs/eselect-mode )
32 vim-syntax? ( app-vim/eselect-syntax )"
40 emake DESTDIR="${D}" install
41 newbashcomp misc/${PN}.bashcomp ${PN}
42 dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
43 use doc && dohtml *.html doc/*
45 # needed by news module
46 keepdir /var/lib/gentoo/news
48 fowners root:portage /var/lib/gentoo/news
49 fperms g+w /var/lib/gentoo/news
54 # fowners in src_install doesn't work for the portage group:
55 # merging changes the group back to root
57 chgrp portage "${EROOT}/var/lib/gentoo/news" \
58 && chmod g+w "${EROOT}/var/lib/gentoo/news"