Browse Source

colormake-9999 added

master
Kolan Sh 3 months ago
parent
commit
ba2b9eda91

+ 42
- 0
dev-util/colormake/colormake-9999.ebuild View File

@@ -0,0 +1,42 @@
1
+# Copyright 1999-2011 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+EAPI=4
6
+
7
+inherit eutils
8
+
9
+if [[ ${PV} == "9999" ]] ; then
10
+	EGIT_REPO_URI=${EGIT_REPO_URI:-"https://github.com/pagekite/Colormake.git"}
11
+	inherit git-r3
12
+	KEYWORDS=""
13
+else
14
+	SRC_URI="${HOMEPAGE}${P}.tar.gz"
15
+	KEYWORDS="-* ~x86 ~amd64"
16
+fi
17
+
18
+DESCRIPTION="Colorizing wrapper around make"
19
+
20
+HOMEPAGE="http://bre.klaki.net/programs/colormake/"
21
+
22
+SLOT="0"
23
+
24
+LICENSE="GPL-2"
25
+
26
+IUSE=""
27
+
28
+DEPEND=""
29
+
30
+RDEPEND="${DEPEND}"
31
+
32
+src_prepare() {
33
+	epatch "${FILESDIR}"/${P}-cmake.patch
34
+	if [[ ${PV} == "9999" ]] ; then
35
+		# Allow user patches to be applied without modifying the ebuild
36
+		epatch_user
37
+	fi
38
+}
39
+
40
+src_install() {
41
+	dobin colormake{,.pl} || die
42
+}

+ 15
- 0
dev-util/colormake/files/colormake-9999-cmake.patch View File

@@ -0,0 +1,15 @@
1
+--- colormake	2019-02-13 16:16:56.933437336 +0300
2
++++ colormake	2019-02-13 16:19:20.779409415 +0300
3
+@@ -7,6 +7,12 @@
4
+ # on the screen.
5
+ #
6
+ 
7
++# CMake uses its own color scheme
8
++if [ -f CMakeCache.txt ]; then
9
++	make $*
10
++	exit $?
11
++fi
12
++
13
+ if [ "$TERM" = "dumb" ];then
14
+    # As suggested by Alexander Korkov ...
15
+    exec make "$@"

+ 1
- 0
profiles/desktop/package.accept_keywords View File

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

Loading…
Cancel
Save