1 |
commit: 1845b47edb131f35b0140f6dea39022626496fec |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 21 16:42:36 2014 +0000 |
4 |
Commit: Reinis Danne <rei4dan <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jan 21 16:42:36 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1845b47e |
7 |
|
8 |
app-admin/eselect: Added eselect alternatives branch live |
9 |
|
10 |
Package-Manager: portage-2.2.8-prefix |
11 |
|
12 |
--- |
13 |
app-admin/eselect/ChangeLog | 7 +++- |
14 |
app-admin/eselect/eselect-9999.ebuild | 70 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 76 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-admin/eselect/ChangeLog b/app-admin/eselect/ChangeLog |
18 |
index eb13ccd..a3e27a1 100644 |
19 |
--- a/app-admin/eselect/ChangeLog |
20 |
+++ b/app-admin/eselect/ChangeLog |
21 |
@@ -1,7 +1,12 @@ |
22 |
# ChangeLog for app-admin/eselect |
23 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
24 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
25 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect/ChangeLog,v 1.179 2011/01/22 21:38:52 ulm Exp $ |
26 |
|
27 |
+*eselect-9999 (21 Jan 2014) |
28 |
+ |
29 |
+ 21 Jan 2014; Sébastien Fabbro <bicatali@g.o> +eselect-9999.ebuild: |
30 |
+ app-admin/eselect: Added eselect alternatives branch live |
31 |
+ |
32 |
*eselect-1.4-r100 (08 Dec 2013) |
33 |
|
34 |
08 Dec 2013; Justin Lecher <jlec@g.o> +eselect-1.4-r100.ebuild: |
35 |
|
36 |
diff --git a/app-admin/eselect/eselect-9999.ebuild b/app-admin/eselect/eselect-9999.ebuild |
37 |
new file mode 100644 |
38 |
index 0000000..83f48e9 |
39 |
--- /dev/null |
40 |
+++ b/app-admin/eselect/eselect-9999.ebuild |
41 |
@@ -0,0 +1,70 @@ |
42 |
+# Copyright 1999-2014 Gentoo Foundation |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+# $Header: $ |
45 |
+ |
46 |
+EAPI=5 |
47 |
+ |
48 |
+ |
49 |
+EGIT_REPO_URI="git://github.com/gentoo-science/eselect.git" |
50 |
+EGIT_BRANCH="alternatives" |
51 |
+ |
52 |
+inherit autotools git-r3 bash-completion-r1 |
53 |
+ |
54 |
+DESCRIPTION="Gentoo's multi-purpose configuration and management tool" |
55 |
+HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Eselect" |
56 |
+ |
57 |
+LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-2.5 )" |
58 |
+SLOT="0" |
59 |
+IUSE="doc emacs vim-syntax" |
60 |
+ |
61 |
+RDEPEND="sys-apps/sed |
62 |
+ || ( |
63 |
+ sys-apps/coreutils |
64 |
+ sys-freebsd/freebsd-bin |
65 |
+ app-misc/realpath |
66 |
+ )" |
67 |
+DEPEND="${RDEPEND} |
68 |
+ doc? ( dev-python/docutils )" |
69 |
+RDEPEND="!app-admin/eselect-news |
70 |
+ ${RDEPEND} |
71 |
+ sys-apps/file |
72 |
+ sys-libs/ncurses" |
73 |
+ |
74 |
+PDEPEND="emacs? ( app-emacs/eselect-mode ) |
75 |
+ vim-syntax? ( app-vim/eselect-syntax )" |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ emake |
83 |
+ use doc && emake html |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ emake DESTDIR="${D}" install |
88 |
+ newbashcomp misc/${PN}.bashcomp ${PN} |
89 |
+ dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt |
90 |
+ use doc && dohtml *.html doc/* |
91 |
+ |
92 |
+ # needed by news module |
93 |
+ keepdir /var/lib/gentoo/news |
94 |
+ if use prefix; then |
95 |
+ sed -i \ |
96 |
+ "s:ALTERNATIVESDIR_ROOTLESS=\"${EPREFIX}:ALTERNATIVESDIR_ROOTLESS=\":" \ |
97 |
+ "${ED}"/usr/share/eselect/libs/alternatives-common.bash || die |
98 |
+ else |
99 |
+ fowners root:portage /var/lib/gentoo/news |
100 |
+ fperms g+w /var/lib/gentoo/news |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+pkg_postinst() { |
105 |
+ # fowners in src_install doesn't work for the portage group: |
106 |
+ # merging changes the group back to root |
107 |
+ if ! use prefix; then |
108 |
+ chgrp portage "${EROOT}/var/lib/gentoo/news" \ |
109 |
+ && chmod g+w "${EROOT}/var/lib/gentoo/news" |
110 |
+ fi |
111 |
+} |