diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-29 00:04:41 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-29 00:04:41 +0000 |
commit | 6a87de2d8892e029c8aced4fe976ebc9b8f2546f (patch) | |
tree | ec223f2b016cee2ec3db0de12c3ac45ebcb9dd97 /app-misc/cw/cw-1.0.12.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-6a87de2d8892e029c8aced4fe976ebc9b8f2546f.tar.gz gentoo-2-6a87de2d8892e029c8aced4fe976ebc9b8f2546f.tar.bz2 gentoo-2-6a87de2d8892e029c8aced4fe976ebc9b8f2546f.zip |
Version bump.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-misc/cw/cw-1.0.12.ebuild')
-rw-r--r-- | app-misc/cw/cw-1.0.12.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/cw/cw-1.0.12.ebuild b/app-misc/cw/cw-1.0.12.ebuild new file mode 100644 index 000000000000..103009b20305 --- /dev/null +++ b/app-misc/cw/cw-1.0.12.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/cw/cw-1.0.12.ebuild,v 1.1 2005/05/29 00:04:41 ka0ttic Exp $ + +DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands" +HOMEPAGE="http://cwrapper.sourceforge.net/" +SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4" +RDEPEND="virtual/libc" + +src_unpack() { + unpack ${A} && cd ${S} + sed -i 's|\(CWLIB=\)/usr/local/lib/cw|\1/usr/lib/cw|' bin/colorcfg || \ + die "sed failed" +} + +src_compile() { + econf || die "econf failed" + emake local || die "emake failed" +} + +src_install() { + insinto /usr/share/cw + doins etc/* + + exeinto /usr/lib/cw + doexe def/* + + doman man/* + dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README* + + cd ${S}/bin + dobin cw cwu colorcfg + # app-misc/color currently conflicts; hopefully 'colors' is safe + newbin color colors +} + +pkg_postinst() { + ebegin "Updating definition files" + cwu /usr/lib/cw /usr/bin/cw >/dev/null + eend $? + + echo + einfo "To enable color-wrapper, as your user, run:" + einfo " colorcfg [1|2|3]" + einfo "to add relevant environment variables to your ~/.bash_profile" + einfo "Run colorcfg without options to see what [1|2|3] means." + einfo + einfo "After sourcing your ~/.bash_profile, commands for which definitions" + einfo "are provided should have colored output." + einfo + einfo "To enable/disable colored output, run: 'colors [on|off]'." + echo +} |