summaryrefslogtreecommitdiff
path: root/app-misc/grc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/grc
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/grc')
-rw-r--r--app-misc/grc/Manifest16
-rw-r--r--app-misc/grc/files/conf.configure27
-rw-r--r--app-misc/grc/files/grc-1.4-ipv6.patch16
-rw-r--r--app-misc/grc/files/grc-1.4-support-more-files.patch53
-rw-r--r--app-misc/grc/files/grc-1.9-bash.patch26
-rw-r--r--app-misc/grc/files/grc-1.9-configure.patch46
-rw-r--r--app-misc/grc/files/grc-1.9-domain-match.patch22
-rw-r--r--app-misc/grc/files/grc-1.9-python3.patch41
-rw-r--r--app-misc/grc/grc-1.11-r1.ebuild47
-rw-r--r--app-misc/grc/grc-1.5.ebuild41
-rw-r--r--app-misc/grc/grc-1.9.ebuild53
-rw-r--r--app-misc/grc/metadata.xml11
12 files changed, 399 insertions, 0 deletions
diff --git a/app-misc/grc/Manifest b/app-misc/grc/Manifest
new file mode 100644
index 000000000000..48331c0fa5b0
--- /dev/null
+++ b/app-misc/grc/Manifest
@@ -0,0 +1,16 @@
+AUX conf.configure 530 SHA256 7dec9e1586e095e560cae39002957c3ac45a237bcce51c6ad8fb24ec123451ba SHA512 3db952ed800a959f5a69c52c0b1b2c36e3374547469fc437f82cc30271f813cf0ddec8719b4a20b4fedb3df411f9e526cef5cfec5823b663cce1ef8a2270955b WHIRLPOOL a564cd0132942396d413428d8b14d7c1742e23f91b009f8ebff5dcfeaa69039f22edbe1dae23b1e32592145486ad74e693c3e283fd70141fd695a87f73375503
+AUX grc-1.4-ipv6.patch 408 SHA256 53eedb9312956fa57c996866bde2e31725395f0edc8b504a519b9f65666340c7 SHA512 e84fe2b3de351ab24a86e97004b83e5494cde1147c447f3ed2cb354bdb7173180738c8b760efea780d71d536473904f97d9c04ff86c19e947b47ca1f963c0dc0 WHIRLPOOL 4d54615789c733b3f8ef51b660e0732642c1893dbd8f41b03658b783bf68c92150b2c8ddd2a401afb80f7cdf43feac562efdc492e87b51f1ba6c0d5a19aeb76d
+AUX grc-1.4-support-more-files.patch 901 SHA256 9a476ce4f19a2002bcd3206b1015ba31c0d74188d8bbe703643d1b6cfc72c31f SHA512 0483c4d7adea1d813f62f7485845b470415f032726aae456fabab27486e26707931b70a12671b3e291528688e1546cb89d2cca7839b40cc2f365a6760d39edd7 WHIRLPOOL ef4fabd550e3588fb88a4b29af2ebbee37819881f350dc193be1e859cb6234593138b06f183d8243446093c2e258c5c989411613eefa5b6803f65c796e76bc1c
+AUX grc-1.9-bash.patch 805 SHA256 57a5d685e9a8cf2e60ebe6f8e2a6caed147d08c76529517a05a3a566173e3752 SHA512 75163dd8e5fc696a534291b09be0c18529ee3a7656886970ff60d65cd5fe6f3fd3bb3cd4f34237648b4fbd780482ec1b6bf496d806b8e0cd31334f33f59248f4 WHIRLPOOL 3929ffa50bb141582ee1873ba78be5dfcf9fbf3b8ec9cc6b69f42f2363210a837b26cf9b43e7493f85a4b0c6649d4501593279bdce9c08f7a2da6af2e4949f6a
+AUX grc-1.9-configure.patch 1132 SHA256 32ca8004f9ac9902bf90632c9659b5be44e4efbc2c22061247d84669f9664168 SHA512 ddbda30c650418a6900f072aa45dc45b2162d9c20c94dcef212b44e0a7f70d169f8eccd2200ca60b4be711b2e367ad5e8e2fa7f9ed4d041b34387370ac872d17 WHIRLPOOL ba7e77afb49aa6a2c3c75e03bb70c6b8431dce9a385ec15c85878c2c3c6a06f5b1bcf34706660aaebdab6d11a186fe28ef8bfe0b8f9407e3ad9afce6b20e27da
+AUX grc-1.9-domain-match.patch 613 SHA256 be7902f4b13c79000033536fe03105fc01cd6ce473b92d47e6d99c152544424c SHA512 1427c000d0401abc7dff052759c07cdc460c11ee10acb2994c414f269a94ef209ce1aa20a1717f2be7e95af9f2d1bd16ed0303906a135cb1c8fcbaa54c0558c0 WHIRLPOOL 17f0eb48637d022c9962cd3ffc3864716bf4f20bb0be66dd5890ba7060127f4db560777fa99693af21fd0e1ef3abbb1e4b68f1dbabc7947dbc4d11440c8ab53e
+AUX grc-1.9-python3.patch 1124 SHA256 3a6ebc84c4670e2f662534247ba80da9a6b5db4b4b0663902f9b9e22aaa83473 SHA512 275f45634f7d15eea8c359cf5850421ac0b057da987f053717da5ef15b82e4613051ab12f84e78ee809e71bd55382532b73d3731cdf4a10421c2e7622a236a3a WHIRLPOOL eac2278ca626a2d381c4026c2ab9b573ea1dd14adbed6b4246022506270585232d87ff9eedcd5f7eabc04c61f9b0cea3d55703cfcc0944aa8941b2ac16c8458c
+DIST grc-1.11.tar.gz 43224 SHA256 38789ffc5a56dd7c6bad24e9cf8da0a751d50ec7f3cd52de4a7fcb5f2b8304f8 SHA512 abaa18aeebf9858369b639975ae6c9a33f3111beb783b4e86463ace70de1d660efc6c17b05020862c3b2f467310f0974443f96d4f91cd322a90731c4be49206c WHIRLPOOL 2c7e9828f9e20dc7f364f49bdcf042a6902b2a727c778950c70c6974e3d36f5b2978621dc8a7c1710ff82a2011a8f41f7919b7c9b894f6f6e8d5fe92abe72e33
+DIST grc-1.9.tar.gz 29252 SHA256 269ab717dc105c124f6eb48b4b8d3ab68660c0f1244eaea140f0188cb9af4b80 SHA512 947f4b61a8d4061e99d64e25a7b5ca2bcd042580b537ea07ea6ca609d7b81b1976b301de6036be2c199c7fa25c3f32d41a887f811ad72a1a18dd63d284e61050 WHIRLPOOL de7cc676aa1b73b93be632919293d0e0a38077bee2abfde8b3805886ffb51875851d9169216c711bda24eab34a2460da40d1796bd7ea909df4c9e47874b2c244
+DIST grc_1.5.tar.gz 26363 SHA256 a2581f065236868bd8b09536616a588792f60fcba4e54d69e2cad65aae73dddc SHA512 6b95a8db5df0d99b49052deb086ac02b180810ce754c744e145e3e0508562fb632e7fdb38ec4ad039f6e998c4122b065ba53925d73268c589475e36c16aa68d7 WHIRLPOOL 1a4ee3612024c95d296772c43c1ed21ebb9e1d50e1fa4af13a6d09a1d63f59ec7f53084b68dbe0b7a4eb1300269ca714d8b972507d671e973b11822e1b4e82a9
+EBUILD grc-1.11-r1.ebuild 970 SHA256 c8083b72ba33b83ddc6f4f5d748e713e007dfe3bf6a62251823aa3bbee1a0857 SHA512 4bb3daf02a72e217e3bc078b13b70ac8af70d45f407fe7468e69cc85f22ce8bc2f663385af0cbb577c67c6db617e259669a801d8eb1ac4f232193b8447ae95cc WHIRLPOOL 626261f45c748c19ce633008881f47ca0c6973c23b9941ae4f1f42a73bc53b1f598a4b7f365d2d89c079ad3c45f28b2481a748fad8aec1578720adc0918828c9
+EBUILD grc-1.5.ebuild 902 SHA256 04a38ac6216bf4159a0cff6d34716e9983a9b9b5a22bb5de582bdd2ee10bdaf4 SHA512 e144282e3bfe98e19c203144308da05f3478dfd1e55027d5479d76a889dd1d7bda0dbb77640b45431b6cf5e466a8ce72ae9823bf6c35cb524851dc90aeab2f6b WHIRLPOOL 1531164c902c861134499418b559e9394514452bed3baea023018381cc56a5bd8a41eb742792e7479ec64ccac01e6a68c5ccb3485b623d840ad44b06bbae8270
+EBUILD grc-1.9.ebuild 1300 SHA256 9bcea036a0708a65f7d378db0e991bf1b1d7ef17cc61c5299c0247d37b1d473f SHA512 598ea4d295763dcb49e9b22528a372e9874a21c6fa4dc4ab69754326942773e83c53fd8d4314d60068b4c7102a4e15eeb75dbfb1abe3d32d54a06f5e51159080 WHIRLPOOL 95bf2a1453a12a38e6de58a3411530ef5fe80f4e77177a680afbced1c1ab8775d80568d9f702c129922b98bf2b5b136f4e736f0178d73f3123b77c9d80ffb398
+MISC ChangeLog 2720 SHA256 dfb6de7bb9301bd948e052f3a219154541eec75b0a3d31ad2ead1320a29462b0 SHA512 5fa2120d6b01958267dc6686fd98a4fddf65d1d50573ad407b7fe46687b5453c67a5a0109e1f342bba918b615b08103628a857765916c8f6452dbbdb298e33e4 WHIRLPOOL ca3845e8d07d5fb2c67235ca7faaab4773308bba3f326f3ab3e6c1c3f09f08db5a877fdf87eb09b8a1a1e9f80ab1a5bcdabba79b1f7327b966a6fde4ad4dfac2
+MISC ChangeLog-2015 5127 SHA256 fa13827c3ef7667b2da1c5edbe428f49720be33e144103c3f1fdb49f8997bc77 SHA512 a3ef32c9518a266c16b4689ff86aae9dc2a369dee0c78fd84201dae3c01b46e45238cc83866f740310b0831f9e79b22a9c4f802467c5d47bceb6666516a5adfa WHIRLPOOL 35c34744852b059063d9e965e0da4640b36a88724e7150e106b2c7b9b53c1abebcdb15174d16a65d51363e23d02e976d128aecb1fc2ac9328d78b6fc122fe537
+MISC metadata.xml 351 SHA256 0e2d67d71a9d725a550d4a2c02183f5cae243148f3a2bea7f64c8db3add6cee0 SHA512 39fabd038b08bc0fb057be0d211272b65d94cd9f1afedfd576138be1ddc1748fd673684b1c407649409f2834024cad324f78564348e9da570cde26be3282bc8b WHIRLPOOL aafb26354a70f72c0b012e2e58c2989b83e4e90e488bbdf6845c166373b86deec1bc5e4b7ef31b3b2d4b50fdffbd786dde16f0b649f52b1a456577780851f39d
diff --git a/app-misc/grc/files/conf.configure b/app-misc/grc/files/conf.configure
new file mode 100644
index 000000000000..8f26c601eba8
--- /dev/null
+++ b/app-misc/grc/files/conf.configure
@@ -0,0 +1,27 @@
+# cache functions
+regexp=\b(loading|updating|creating) cache\b
+colours=yellow bold
+.........
+# checking
+regexp=\bchecking\s*(for|if|whether|command|how|that)?(\s*to)?\b
+colours=yellow
+.........
+# result is complex
+regexp=\.\.\. .*$
+colours=cyan
+.........
+# check succeeded
+regexp=\.\.\.( \(cached\))? yes$
+colours=blue bold
+.........
+# check did not succeed
+regexp=\.\.\.( \(cached\))? no$
+colours=magenta
+.........
+# ... should be normal
+regexp=\.\.\.
+colours=default
+.........
+# creating stuff
+regexp=\bcreating\b
+colours=green
diff --git a/app-misc/grc/files/grc-1.4-ipv6.patch b/app-misc/grc/files/grc-1.4-ipv6.patch
new file mode 100644
index 000000000000..81945ea42618
--- /dev/null
+++ b/app-misc/grc/files/grc-1.4-ipv6.patch
@@ -0,0 +1,16 @@
+ conf.netstat | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/conf.netstat b/conf.netstat
+index 2dd96e3..ec2779b 100644
+--- a/conf.netstat
++++ b/conf.netstat
+@@ -19,7 +19,7 @@ regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+
+ colours=green
+ =======
+ # protocols
+-regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM)
++regexp=(^tcp6|^tcp|^udp6|^udp|^unix|^IPX|STREAM|DGRAM)
+ colours=bold blue
+ =======
+ # status
diff --git a/app-misc/grc/files/grc-1.4-support-more-files.patch b/app-misc/grc/files/grc-1.4-support-more-files.patch
new file mode 100644
index 000000000000..d90fe86bb16f
--- /dev/null
+++ b/app-misc/grc/files/grc-1.4-support-more-files.patch
@@ -0,0 +1,53 @@
+--- grc-1.4.orig/conf.gcc
++++ grc-1.4/conf.gcc
+@@ -1,7 +1,7 @@
+ #
+-regexp=\bgcc\b
+-colours=yellow
+-count=more
++regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
++colours=white bold
++count=once
+ .........
+ #
+ regexp=^[^:\s]*?:\d+:
+@@ -15,6 +15,10 @@
+ regexp=\`[A-Za-z0-9_():&*]+( const)?\'
+ colours=magenta
+ .........
++# compilation method modifiers
++regexp=\s\-(O\d?|f\S+|pthread|g\S*|c|W\S,\S+)\b
++colours=yellow
++.........
+ # -O
+ regexp=\-O\d
+ colours=green
+@@ -27,7 +31,7 @@
+ # stderr to grcat
+ #
+ # warning
+-regexp=warning:.*
++regexp=[Ww]arning[:\b]
+ colours=white
+ .........
+ regexp=warning:
+@@ -35,7 +39,7 @@
+ count=once
+ .........
+ # error
+-regexp=error:.*
++regexp=[Ee]rror[:\b]
+ colours=bold white
+ .........
+ regexp=error:
+--- grc-1.4.orig/grc.conf
++++ grc-1.4/grc.conf
+@@ -19,7 +19,7 @@
+ conf.traceroute
+
+ # gcc command
+-(^|[/\w\.]+/)g?cc\s
++(^|[/\w\.]+/)(g?cc|[gc]\+\+)\s
+ conf.gcc
+
+ # make command
diff --git a/app-misc/grc/files/grc-1.9-bash.patch b/app-misc/grc/files/grc-1.9-bash.patch
new file mode 100644
index 000000000000..5e1dcda299ee
--- /dev/null
+++ b/app-misc/grc/files/grc-1.9-bash.patch
@@ -0,0 +1,26 @@
+From 1d4f9e1ca5a27426da4dcbd3caee1e38b5d272aa Mon Sep 17 00:00:00 2001
+From: Justin Lecher <jlec@gentoo.org>
+Date: Tue, 27 Dec 2016 13:17:27 +0000
+Subject: [PATCH] Use bash internal functionalities for grc detection
+
+which is an external tool, where as type is a bash internal funciton
+and always available
+
+Signed-off-by: Justin Lecher <jlec@gentoo.org>
+---
+ grc.bashrc | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/grc.bashrc b/grc.bashrc
+index e9eba08..54e570d 100644
+--- a/grc.bashrc
++++ b/grc.bashrc
+@@ -1,6 +1,5 @@
+-GRC=`which grc`
+-if [ "$TERM" != dumb ] && [ -n "$GRC" ]
+-then
++GRC="$(type -p grc)"
++if [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
+ alias colourify="$GRC -es --colour=auto"
+ alias configure='colourify ./configure'
+ alias diff='colourify diff'
diff --git a/app-misc/grc/files/grc-1.9-configure.patch b/app-misc/grc/files/grc-1.9-configure.patch
new file mode 100644
index 000000000000..66dc4ceda80d
--- /dev/null
+++ b/app-misc/grc/files/grc-1.9-configure.patch
@@ -0,0 +1,46 @@
+From 6d7ab5f6486c6d30a685605aa5b0ecfda0434e86 Mon Sep 17 00:00:00 2001
+From: Justin Lecher <jlec@gentoo.org>
+Date: Tue, 27 Dec 2016 17:32:48 +0000
+Subject: [PATCH] More advanced regex for configure colouring
+
+Signed-off-by: Justin Lecher <jlec@gentoo.org>
+---
+ conf.configure | 21 +++++++++++++++++----
+ 1 file changed, 17 insertions(+), 4 deletions(-)
+
+diff --git a/conf.configure b/conf.configure
+index ac88ec7..e7b5d89 100644
+--- a/conf.configure
++++ b/conf.configure
+@@ -1,14 +1,27 @@
+-regexp=^checking
++# cache functions
++regexp=\b(loading|updating|creating) cache\b
++colours=yellow bold
++.........
++# checking
++regexp=\bchecking\s*(for|if|whether|command|how|that)?(\s*to)?\b
+ colours=bold blue
+ .........
++# result is complex
+ regexp=\.\.\. .*$
+ colours=bold yellow
+ .........
+-regexp=\.\.\. yes$
++# check succeeded
++regexp=\.\.\.( \(cached\))? yes$
+ colours=bold cyan
+ .........
+-regexp=\.\.\. no$
++# check did not succeed
++regexp=\.\.\.( \(cached\))? no$
+ colours=bold red
+ .........
+-regexp=\.\.\.[ ]
++# ... should be normal
++regexp=\.\.\.
+ colours=default
++.........
++# creating stuff
++regexp=\bcreating\b
++colours=green
diff --git a/app-misc/grc/files/grc-1.9-domain-match.patch b/app-misc/grc/files/grc-1.9-domain-match.patch
new file mode 100644
index 000000000000..f00fecd7c67a
--- /dev/null
+++ b/app-misc/grc/files/grc-1.9-domain-match.patch
@@ -0,0 +1,22 @@
+From 2e422109af7094d2787660f7841e7c2ab10bbcc8 Mon Sep 17 00:00:00 2001
+From: Pavel Vishnyakov <djhumster@gmail.com>
+Date: Thu, 17 Dec 2015 18:00:37 +0300
+Subject: [PATCH] Update conf.traceroute
+
+More correct way to match domains with any length.
+Can be checked her https://regex101.com/r/dI3jQ3/1
+---
+ conf.traceroute | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/conf.traceroute b/conf.traceroute
+index b6501a2..983a7cd 100644
+--- a/conf.traceroute
++++ b/conf.traceroute
+@@ -1,5 +1,5 @@
+ # hostname
+-regexp=\s\w+[\w\-\.]+\w+
++regexp=\w+[\w\-\.]+\.[a-z]+
+ colours=bold yellow
+ count=once
+ -
diff --git a/app-misc/grc/files/grc-1.9-python3.patch b/app-misc/grc/files/grc-1.9-python3.patch
new file mode 100644
index 000000000000..9f4db14a2eec
--- /dev/null
+++ b/app-misc/grc/files/grc-1.9-python3.patch
@@ -0,0 +1,41 @@
+ grc | 2 ++
+ grcat | 8 +++-----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/grc b/grc
+index 56a53b4..19afe7c 100755
+--- a/grc
++++ b/grc
+@@ -1,5 +1,7 @@
+ #! /usr/bin/python
+
++from __future__ import print_function
++
+ import os, re, string, sys, getopt, signal
+
+ def version():
+diff --git a/grcat b/grcat
+index a4e6dd9..16586e2 100755
+--- a/grcat
++++ b/grcat
+@@ -1,5 +1,7 @@
+ #! /usr/bin/python
+
++from __future__ import print_function
++
+ import sys, os, string, re, signal, errno
+
+ #some default definitions
+@@ -140,11 +142,7 @@ while not is_last:
+ # do not try to understand the optimized form below :-)
+ if 'colours' in ll:
+ colstrings = list(
+- map(
+- lambda colgroup:
+- ''.join(map(lambda x: get_colour(x), split(colgroup))),
+- split(ll['colours'], ',')
+- )
++ [''.join([get_colour(x) for x in split(colgroup)]) for colgroup in split(ll['colours'], ',')]
+ )
+ ll['colours'] = colstrings
+
diff --git a/app-misc/grc/grc-1.11-r1.ebuild b/app-misc/grc/grc-1.11-r1.ebuild
new file mode 100644
index 000000000000..dd4b617a6298
--- /dev/null
+++ b/app-misc/grc/grc-1.11-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy )
+
+inherit eutils python-r1
+
+DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
+HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
+SRC_URI="https://github.com/garabik/grc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed \
+ -e 's:#! :#!:g' \
+ -e 's:3$::g' \
+ -i grc grcat || die
+ default
+}
+
+src_install() {
+ python_foreach_impl python_doscript grc grcat
+
+ insinto /usr/share/grc
+ doins \
+ contrib/mrsmith/conf.* \
+ colourfiles/conf.*
+ insinto /etc/profile.d
+ newins grc.bashrc grc.sh
+
+ insinto /etc
+ doins grc.conf
+
+ dodoc README.markdown INSTALL TODO debian/changelog CREDITS Regexp.txt
+ doman *.1
+}
diff --git a/app-misc/grc/grc-1.5.ebuild b/app-misc/grc/grc-1.5.ebuild
new file mode 100644
index 000000000000..b20233047ba5
--- /dev/null
+++ b/app-misc/grc/grc-1.5.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit eutils python-r1
+
+DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
+HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
+SRC_URI="http://kassiopeia.juls.savba.sk/~garabik/software/${PN}/${P/-/_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.4-support-more-files.patch \
+ "${FILESDIR}"/${PN}-1.4-ipv6.patch
+}
+
+src_install() {
+ python_foreach_impl python_doscript grc grcat
+
+ insinto /usr/share/grc
+ doins conf.* "${FILESDIR}"/conf.*
+
+ insinto /etc
+ doins grc.conf
+
+ dodoc README INSTALL TODO debian/changelog CREDITS
+ doman grc.1 grcat.1
+}
diff --git a/app-misc/grc/grc-1.9.ebuild b/app-misc/grc/grc-1.9.ebuild
new file mode 100644
index 000000000000..8a0b5413f882
--- /dev/null
+++ b/app-misc/grc/grc-1.9.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_{4,5}} pypy )
+
+inherit eutils python-r1
+
+DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
+HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
+SRC_URI="https://github.com/garabik/grc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ # https://github.com/garabik/grc/pull/44
+ "${FILESDIR}"/${PN}-1.4-support-more-files.patch
+ # https://github.com/garabik/grc/pull/43
+ "${FILESDIR}"/${PN}-1.4-ipv6.patch
+ # https://github.com/garabik/grc/pull/9
+ "${FILESDIR}"/${P}-domain-match.patch
+ # https://github.com/garabik/grc/pull/45
+ "${FILESDIR}"/${P}-python3.patch
+ # https://github.com/garabik/grc/pull/46
+ "${FILESDIR}"/${P}-bash.patch
+ # https://github.com/garabik/grc/pull/47
+ "${FILESDIR}"/${P}-configure.patch
+)
+
+src_install() {
+ python_foreach_impl python_doscript grc grcat
+
+ insinto /usr/share/grc
+ doins \
+ mrsmith/conf.* \
+ conf.* \
+ grc.bashrc
+
+ insinto /etc
+ doins grc.conf
+
+ dodoc README INSTALL TODO debian/changelog CREDITS Regexp.txt
+ doman *.1
+}
diff --git a/app-misc/grc/metadata.xml b/app-misc/grc/metadata.xml
new file mode 100644
index 000000000000..d65cd2e407ea
--- /dev/null
+++ b/app-misc/grc/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">garabik/grc</remote-id>
+ </upstream>
+</pkgmetadata>