diff --git a/dev-util/colormake/colormake-9999.ebuild b/dev-util/colormake/colormake-9999.ebuild new file mode 100644 index 00000000..d2c0a003 --- /dev/null +++ b/dev-util/colormake/colormake-9999.ebuild @@ -0,0 +1,42 @@ +# 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:-"https://github.com/pagekite/Colormake.git"} + inherit git-r3 + KEYWORDS="" +else + SRC_URI="${HOMEPAGE}${P}.tar.gz" + KEYWORDS="-* ~x86 ~amd64" +fi + +DESCRIPTION="Colorizing wrapper around make" + +HOMEPAGE="http://bre.klaki.net/programs/colormake/" + +SLOT="0" + +LICENSE="GPL-2" + +IUSE="" + +DEPEND="" + +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-cmake.patch + if [[ ${PV} == "9999" ]] ; then + # Allow user patches to be applied without modifying the ebuild + epatch_user + fi +} + +src_install() { + dobin colormake{,.pl} || die +} diff --git a/dev-util/colormake/files/colormake-9999-cmake.patch b/dev-util/colormake/files/colormake-9999-cmake.patch new file mode 100644 index 00000000..f19c8e50 --- /dev/null +++ b/dev-util/colormake/files/colormake-9999-cmake.patch @@ -0,0 +1,15 @@ +--- colormake 2019-02-13 16:16:56.933437336 +0300 ++++ colormake 2019-02-13 16:19:20.779409415 +0300 +@@ -7,6 +7,12 @@ + # on the screen. + # + ++# CMake uses its own color scheme ++if [ -f CMakeCache.txt ]; then ++ make $* ++ exit $? ++fi ++ + if [ "$TERM" = "dumb" ];then + # As suggested by Alexander Korkov ... + exec make "$@" diff --git a/profiles/desktop/package.accept_keywords b/profiles/desktop/package.accept_keywords index b1ca671e..5113a752 100644 --- a/profiles/desktop/package.accept_keywords +++ b/profiles/desktop/package.accept_keywords @@ -90,6 +90,7 @@