You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/colordiff/colordiff-1.0.13.ebuild

41 lines
1.1 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/colordiff/colordiff-1.0.13.ebuild,v 1.11 2013/10/26 16:11:46 jlec Exp $
EAPI=5
inherit prefix
DESCRIPTION="Colorizes output of diff"
HOMEPAGE="http://www.colordiff.org/"
SRC_URI="http://www.colordiff.org/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE=""
RDEPEND="
dev-lang/perl
sys-apps/diffutils"
src_prepare() {
# set proper etcdir for Gentoo Prefix
sed \
-e "s:'/etc:'@GENTOO_PORTAGE_EPREFIX@/etc:" \
-i "${S}/colordiff.pl" || die "sed etcdir failed"
eprefixify "${S}"/colordiff.pl
}
# This package has a makefile, but we don't want to run it
src_compile() { :; }
src_install() {
newbin ${PN}{.pl,}
newbin cdiff.sh cdiff
insinto /etc
doins colordiffrc colordiffrc-lightbg
dodoc BUGS CHANGES README
doman {cdiff,colordiff}.1
}