diff options
-rw-r--r-- | app-misc/color/ChangeLog | 10 | ||||
-rw-r--r-- | app-misc/color/color-1.2-r1.ebuild | 39 | ||||
-rw-r--r-- | app-misc/color/files/1.2-ldflags.patch | 23 |
3 files changed, 70 insertions, 2 deletions
diff --git a/app-misc/color/ChangeLog b/app-misc/color/ChangeLog index 51eb98db4fd3..0765c5d4a158 100644 --- a/app-misc/color/ChangeLog +++ b/app-misc/color/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/color -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/color/ChangeLog,v 1.22 2008/03/27 21:25:11 jer Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/color/ChangeLog,v 1.23 2010/09/18 14:59:51 jlec Exp $ + +*color-1.2-r1 (18 Sep 2010) + + 18 Sep 2010; Justin Lecher <jlec@gentoo.org> +files/1.2-ldflags.patch, + +color-1.2-r1.ebuild: + Respecting LDFLAGS, 337900 27 Mar 2008; Jeroen Roovers <jer@gentoo.org> color-1.2.ebuild: Stable for HPPA (bug #214913). 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..4d110545ffcf --- /dev/null +++ b/app-misc/color/color-1.2-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/color/color-1.2-r1.ebuild,v 1.1 2010/09/18 14:59:51 jlec Exp $ + +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/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 |