1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit bash-completion-r1
8 DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
9 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect"
10 SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"
12 LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-3.0 )"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15 IUSE="doc emacs vim-syntax"
20 sys-freebsd/freebsd-bin
24 doc? ( dev-python/docutils )"
29 PDEPEND="emacs? ( app-emacs/eselect-mode )
30 vim-syntax? ( app-vim/eselect-syntax )"
38 emake DESTDIR="${D}" install
39 newbashcomp misc/${PN}.bashcomp ${PN}
40 dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
43 dodoc *.html doc/*.html doc/*.css
46 # needed by news module
47 keepdir /var/lib/gentoo/news
49 fowners root:portage /var/lib/gentoo/news
50 fperms g+w /var/lib/gentoo/news
55 # fowners in src_install doesn't work for the portage group:
56 # merging changes the group back to root
58 chgrp portage "${EROOT}/var/lib/gentoo/news" \
59 && chmod g+w "${EROOT}/var/lib/gentoo/news"