Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/color/
Date: Sun, 09 Apr 2017 20:47:20
Message-Id: 1491770827.8b16cfe63fe5f9eb3869a61b8ce27d8882da35ec.dilfridge@gentoo
1 commit: 8b16cfe63fe5f9eb3869a61b8ce27d8882da35ec
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 9 20:45:56 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 9 20:47:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b16cfe6
7
8 app-misc/color: EAPI bump
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 app-misc/color/color-1.2-r2.ebuild | 39 ++++++++++++++++++++++++++++++++++++++
13 1 file changed, 39 insertions(+)
14
15 diff --git a/app-misc/color/color-1.2-r2.ebuild b/app-misc/color/color-1.2-r2.ebuild
16 new file mode 100644
17 index 00000000000..e14fb8433a0
18 --- /dev/null
19 +++ b/app-misc/color/color-1.2-r2.ebuild
20 @@ -0,0 +1,39 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit eutils toolchain-funcs
27 +
28 +DESCRIPTION="Easily add ANSI colouring to shell scripts"
29 +HOMEPAGE="http://www.runslinux.net/?page_id=10"
30 +SRC_URI="http://runslinux.net/projects/color/${P}.tar.gz"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
35 +IUSE=""
36 +
37 +src_prepare() {
38 + eapply "${FILESDIR}"/${PV}-ldflags.patch
39 + default
40 + tc-export CC
41 +}
42 +
43 +src_install() {
44 + dobin color
45 + dodoc CHANGELOG README
46 +
47 + # symlink for british users.
48 + dosym color /usr/bin/colour
49 +}
50 +
51 +pkg_postinst() {
52 + elog "For information on using colour in your shell scripts,"
53 + elog "run \`color\` without any arguments."
54 + elog
55 + elog "To see all the colours available, use this command"
56 + elog " $ color --list"
57 + elog
58 + elog "More examples are available in ${EPREFIX}/usr/share/doc/${PF}."
59 +}