Browse Source

colormake-9999 added

master
Kolan Sh 2 years ago
parent
commit
ba2b9eda91
  1. 42
      dev-util/colormake/colormake-9999.ebuild
  2. 15
      dev-util/colormake/files/colormake-9999-cmake.patch
  3. 1
      profiles/desktop/package.accept_keywords

42
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
}

15
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 "$@"

1
profiles/desktop/package.accept_keywords

@ -90,6 +90,7 @@
<dev-util/cargo-0.28 ~amd64
dev-util/cbindgen ~amd64
<dev-util/cmake-3.12 ~amd64
=dev-util/colormake-9999 **
<dev-util/glade-3.21 ~amd64
<dev-util/kbuild-0.2 ~amd64
<dev-util/perf-5 ~amd64

Loading…
Cancel
Save