Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××××××××××××.de>
To: gentoo-user@l.g.o
Cc: Dale <rdalek1967@×××××.com>
Subject: Re: [gentoo-user] eix and bad colors.
Date: Sun, 09 Dec 2012 14:34:33
Message-Id: 1355063590.25845.1@numa-i
In Reply to: Re: [gentoo-user] eix and bad colors. by Dale
1 On 12/08/2012 12:26:35 AM, Dale wrote:
2 > If I figure out something or Helmut's config works, I'll post back.
3 >
4
5 Here is my ebuild app-portage/eix-99999999.ebuild in my local overlay.
6 Hopefully it helps,
7 Helmut.
8
9 # Copyright 1999-2012 Gentoo Foundation
10 # Distributed under the terms of the GNU General Public License v2
11 # $Header: $
12
13 EAPI=5
14
15 EGIT_REPO_URI="git://git.berlios.de/${PN}"
16 EGIT_PROJECT="${PN}.git"
17 [ -n "${EVCS_OFFLINE}" ] || EGIT_REPACK=true
18 WANT_LIBTOOL=none
19 PLOCALES="de ru"
20 inherit autotools bash-completion-r1 eutils git-2 l10n multilib
21
22 DESCRIPTION="Search and query ebuilds, portage incl. local settings,
23 ext. overlays, version changes, and more"
24 HOMEPAGE="http://eix.berlios.de"
25 SRC_URI=""
26 PROPERTIES="live"
27
28 LICENSE="GPL-2"
29 SLOT="0"
30 KEYWORDS=""
31 IUSE="clang debug +dep doc nls optimization security
32 strong-optimization sqlite tools zsh-completion"
33
34 RDEPEND="app-shells/push
35 sqlite? ( >=dev-db/sqlite-3 )
36 nls? ( virtual/libintl )"
37 DEPEND="${RDEPEND}
38 clang? ( sys-devel/clang )
39 sys-devel/gettext"
40
41 pkg_setup() {
42 if has_version "<${CATEGORY}/${PN}-0.25.3"; then
43 local eixcache="${EROOT}/var/cache/${PN}"
44 ! test -f "${eixcache}" || rm -f -- "${eixcache}"
45 fi
46 }
47
48 src_prepare() {
49 epatch_user
50 eautopoint
51 eautoreconf
52 }
53
54 src_configure() {
55 econf $(use_with sqlite) $(use_with doc extra-doc) \
56 $(use_with zsh-completion) \
57 $(use_enable nls) $(use_enable tools separate-tools) \
58 $(use_enable security) $(use_enable optimization) \
59 $(use_enable strong-optimization) $(use_enable debug
60 debugging) \
61 $(use_with prefix always-accept-keywords) \
62 $(use_with dep dep-default) \
63 $(use_with clang nongnu-cxx clang++) \
64
65 --with-ebuild-sh-default="/usr/$(get_libdir)/portage/bin/ebuild.sh" \
66 --with-portage-rootpath="${ROOTPATH}" \
67 --with-eprefix-default="${EPREFIX}" \
68 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
69 --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
70 }
71
72 src_install() {
73 default
74 dobashcomp bash/eix
75 keepdir "/var/cache/${PN}"
76 fowners portage:portage "/var/cache/${PN}"
77 fperms 775 "/var/cache/${PN}"
78 }
79
80 pkg_postinst() {
81 # fowners in src_install doesn't work for owner/group portage:
82 # merging changes this owner/group back to root.
83 use prefix || chown portage:portage "${EROOT}var/cache/${PN}"
84 local obs="${EROOT}var/cache/eix.previous"
85 ! test -f "${obs}" || ewarn "Found obsolete ${obs}, please
86 remove it"
87 }