diff --git a/app-misc/stderred/Manifest b/app-misc/stderred/Manifest new file mode 100644 index 00000000..96f6e38c --- /dev/null +++ b/app-misc/stderred/Manifest @@ -0,0 +1 @@ +EBUILD stderred-9999.ebuild 985 RMD160 f4bd51845a855e21920bf71513f1d7200d63c71b SHA1 e2e14c3d32219036aa4f414553508d31c39cc955 SHA256 6d91768b2f486de739d8c71123a71b7ddbff4b414e63c3e41ad4d25e549ab248 diff --git a/app-misc/stderred/stderred-9999.ebuild b/app-misc/stderred/stderred-9999.ebuild new file mode 100644 index 00000000..1e3f7129 --- /dev/null +++ b/app-misc/stderred/stderred-9999.ebuild @@ -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 +}