stderred added

This commit is contained in:
Kolan Sh 2012-05-21 11:54:57 +04:00
parent d5f441071b
commit 750dc1632a
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1 @@
EBUILD stderred-9999.ebuild 985 RMD160 f4bd51845a855e21920bf71513f1d7200d63c71b SHA1 e2e14c3d32219036aa4f414553508d31c39cc955 SHA256 6d91768b2f486de739d8c71123a71b7ddbff4b414e63c3e41ad4d25e549ab248

View File

@ -0,0 +1,57 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/albinoloverats/stderred.git"}
inherit git-2
KEYWORDS=""
else
SRC_URI=""
KEYWORDS="-* ~x86 ~amd64"
fi
DESCRIPTION="Standard error output colorizer"
HOMEPAGE="https://github.com/albinoloverats/stderred"
SLOT="0"
LICENSE="GPL-3"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
src_prepare() {
if [[ ${PV} == "9999" ]] ; then
# Allow user patches to be applied without modifying the ebuild
epatch_user
fi
}
src_compile() {
if [[ amd64 == ${ARCH} ]]; then
make both
else
make lib/stderred
fi
}
src_install() {
if [[ amd64 == ${ARCH} ]]; then
install -d ${D}//usr/lib32
install -d ${D}//usr/lib64
install lib64/*.so ${D}/usr/lib64
install lib/*.so ${D}/usr/lib32
else
install -d ${D}//usr/lib32
install lib/*.so ${D}/usr/lib32
fi
}