summaryrefslogtreecommitdiff
path: root/app-misc/color
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/color')
-rw-r--r--app-misc/color/Manifest7
-rw-r--r--app-misc/color/color-1.2-r1.ebuild38
-rw-r--r--app-misc/color/color-1.2-r2.ebuild39
-rw-r--r--app-misc/color/files/1.2-ldflags.patch23
-rw-r--r--app-misc/color/metadata.xml14
5 files changed, 121 insertions, 0 deletions
diff --git a/app-misc/color/Manifest b/app-misc/color/Manifest
new file mode 100644
index 000000000000..8fac6953e5ba
--- /dev/null
+++ b/app-misc/color/Manifest
@@ -0,0 +1,7 @@
+AUX 1.2-ldflags.patch 404 SHA256 bd816f6dce14438c690f50875299325aebcc5056408d4941c0a2eb5a39db63ef SHA512 44c774102cf9800b38d0831be640758a802cb2fdc2949036617ee23a47565944d514ecbee6532d2f426c766aef48814f362f7e0cb27ce8b280295af106426380 WHIRLPOOL 8003efb17de2b41af8660a65b990c4379090bcaa4ac088c96f3dd09de2d0d13e87458041eb20be2f75682f6a4bb87197dea9a653174ef0982ad74de4865e0877
+DIST color-1.2.tar.gz 10040 SHA256 7862fffb3d948b47435803461732f7dea4af64c2714219df7f929e20cb818bd9 SHA512 58f7d379bca3352b2e39eab83d2fa5891df86c45722541eb810becce813c8e866f28b856ed244a75b173f0dab5dbdc84ceb91d96175dcd2484e29abb98ba87ac WHIRLPOOL 9fbde967107e278ef2a65418cce3011bf4c7ab78b6a2d620e83d2524362b1456edd45479c9dc4308a5a69c0721f90bb061842589086297afce0652250890b5ae
+EBUILD color-1.2-r1.ebuild 928 SHA256 cafa3ea99d4588c99dced3d0f81b4f3cdc38c4bc260fb822f153b18588124c83 SHA512 7f0243170bcc20ee29f9cde198a2e8c77fb46b2a1b22f0e32bdfc0f1046671773ca8ebb87927f5ba1bce8688bee879e490a69de2dfeb58fa4586a630e688b403 WHIRLPOOL 97f5910adef16bb3a3665bc69d9c4cf439886632235707370ace144983d0bb5572fe4800f0d9cde19251612b64318a72a318d4fbd3a8af525ed2872f3d359cac
+EBUILD color-1.2-r2.ebuild 906 SHA256 1acc11c6589359b8128fe53d2a576463ec1e50168b45a244c9a6b2d82256eba3 SHA512 3305932ee6e4e7ed87f8b40ae8069e40a6e0979da7dc5d5c20fef37c43bfd35fd6fccea3439de76bf2eebfa8dfa727537e4ce55e6c65c92321403f2b2a60d645 WHIRLPOOL 5b403f83b9a3115db8e187bf5b3653256dc1256a4b6052b889a4c7f070419706645821c671b1ad6f54a6ec47be62e34652c50eeb550bd63ac3385b5e422da733
+MISC ChangeLog 2449 SHA256 3278b17bac4fd5ae47c7cc73d4771b77fadf7b82412bd145e6f86a0e70cf56c7 SHA512 461f7bfa3ad0c2bee4f25fd21520a5f55523e72251ee5db969ab556d4ff9a48c5276991693d3a7998e51c7b57055e7d408f7d9c0f59c6bc86f276b4fedb2c002 WHIRLPOOL b2486aa62951e7a646f796868d2821eba37750867b965ec1c61ca4032203e00ce62db3572babfdf2bcecb73d170afeeb045adb3d7a61b8d6f31464236afe5386
+MISC ChangeLog-2015 3076 SHA256 cf871e605c8f64a374411d64f6199f1f86512e2aeb9f74afd6f8708b7a47b98b SHA512 fb2b0002405b6d0ee0ff8c57390f362c85fce980412529ff5a9b4aeafa4c8349cffd31145ce96950b95bf879c7542f74e8e8d618e450aa554da8ea9687555762 WHIRLPOOL 876410203fb7e9000d76e2173e2ab41571840017446fa848a82fae3c2b9c8561ab930c7ae477f012e96eeb4c89e20b0abd3e36152489926447b1e57ba246f1ac
+MISC metadata.xml 588 SHA256 ce094a4de517da03839ff34f84e0fa16a77c9c0f61b725e1f6330e742ad68d3a SHA512 eb169977c0c6512fc4a6bdd31083a0175bc2c5688f6eafc36807dd82494e2bea9dd263f3c2982ac059f50589cbcfbaf03b1e49eff20f7fc99c1f1b76c5f0fae6 WHIRLPOOL b05229e033e2b94a1f49d25672df47c065b7871ffb9aeb8416cf24695d631e219a70f52b3c32829b25075ad90b071457bdda3e9df0616f28624075af68cb3569
diff --git a/app-misc/color/color-1.2-r1.ebuild b/app-misc/color/color-1.2-r1.ebuild
new file mode 100644
index 000000000000..5a0666ada122
--- /dev/null
+++ b/app-misc/color/color-1.2-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Easily add ANSI colouring to shell scripts"
+HOMEPAGE="http://www.runslinux.net/?page_id=10"
+SRC_URI="http://runslinux.net/projects/color/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+ tc-export CC
+}
+
+src_install() {
+ dobin color || die "dobin failed"
+ dodoc CHANGELOG README || die
+
+ # symlink for british users.
+ dosym color /usr/bin/colour || die
+}
+
+pkg_postinst() {
+ elog "For information on using colour in your shell scripts,"
+ elog "run \`color\` without any arguments."
+ elog
+ elog "To see all the colours available, use this command"
+ elog " $ color --list"
+ elog
+ elog "More examples are available in ${EPREFIX}/usr/share/doc/${PF}."
+}
diff --git a/app-misc/color/color-1.2-r2.ebuild b/app-misc/color/color-1.2-r2.ebuild
new file mode 100644
index 000000000000..e14fb8433a05
--- /dev/null
+++ b/app-misc/color/color-1.2-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Easily add ANSI colouring to shell scripts"
+HOMEPAGE="http://www.runslinux.net/?page_id=10"
+SRC_URI="http://runslinux.net/projects/color/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+src_prepare() {
+ eapply "${FILESDIR}"/${PV}-ldflags.patch
+ default
+ tc-export CC
+}
+
+src_install() {
+ dobin color
+ dodoc CHANGELOG README
+
+ # symlink for british users.
+ dosym color /usr/bin/colour
+}
+
+pkg_postinst() {
+ elog "For information on using colour in your shell scripts,"
+ elog "run \`color\` without any arguments."
+ elog
+ elog "To see all the colours available, use this command"
+ elog " $ color --list"
+ elog
+ elog "More examples are available in ${EPREFIX}/usr/share/doc/${PF}."
+}
diff --git a/app-misc/color/files/1.2-ldflags.patch b/app-misc/color/files/1.2-ldflags.patch
new file mode 100644
index 000000000000..9c95eda73b0e
--- /dev/null
+++ b/app-misc/color/files/1.2-ldflags.patch
@@ -0,0 +1,23 @@
+diff --git a/Makefile b/Makefile
+index 79c5b33..452e091 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,4 @@
+-CC = cc
++CC ?= cc
+ #CFLAGS = -W -Wall -O2 -g
+ INCLUDE = $(wildcard *.h)
+ OBJS = color.o
+@@ -6,8 +6,11 @@ EXE = color
+
+ all: $(EXE)
+
++OBJS: color.c
++ $(CC) $(CFLAGS) -c $^ $@
++
+ $(EXE): $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $^
++ $(CC) $(LDFLAGS) -o $@ $^
+
+ install: all
+ cp $(EXE) /usr/local/bin
diff --git a/app-misc/color/metadata.xml b/app-misc/color/metadata.xml
new file mode 100644
index 000000000000..7a2823d5e0fc
--- /dev/null
+++ b/app-misc/color/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Color is a nifty little utility that you can call from shell scripts,
+ that will let you easily use ANSI escape codes (for colors, bold,
+ underline, etc) to your shell scripts without having to memorize escape
+ sequences and type it every time you want a little red...
+ </longdescription>
+</pkgmetadata>