Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/kshdb/, app-shells/kshdb/files/
Date: Mon, 04 Nov 2019 00:00:24
Message-Id: 1572825551.579bc83a9d8018574434dd946ff9fa0af91c25e6.floppym@gentoo
1 commit: 579bc83a9d8018574434dd946ff9fa0af91c25e6
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 3 23:58:47 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 3 23:59:11 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=579bc83a
7
8 app-shells/kshdb: new package
9
10 Package-Manager: Portage-2.3.78_p6, Repoman-2.3.17_p102
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 app-shells/kshdb/Manifest | 1 +
14 .../kshdb-1.0.0-remove-COLORFGBG-message.patch | 47 ++++++++++++++++++++++
15 app-shells/kshdb/kshdb-1.0.0.ebuild | 23 +++++++++++
16 app-shells/kshdb/metadata.xml | 8 ++++
17 4 files changed, 79 insertions(+)
18
19 diff --git a/app-shells/kshdb/Manifest b/app-shells/kshdb/Manifest
20 new file mode 100644
21 index 00000000000..88cb0b05759
22 --- /dev/null
23 +++ b/app-shells/kshdb/Manifest
24 @@ -0,0 +1 @@
25 +DIST kshdb-1.0.0.tar.gz 153633 BLAKE2B 91e5d77e1a74f98149ef4c953c34b6a4ac43f68c930092bde6f5313be6d581072fb8ef39a500204e5eb544e1e6bc53d1f5f7800ba1d333020f6908bbde2268f6 SHA512 f010b3b739f1a9fdead52c251a536405f8cbae67882c554b034ef115a9d9ecd60438d883d51dd282a747068e108ad8e5d9442380b6563a2aa262c35b423ee1dd
26
27 diff --git a/app-shells/kshdb/files/kshdb-1.0.0-remove-COLORFGBG-message.patch b/app-shells/kshdb/files/kshdb-1.0.0-remove-COLORFGBG-message.patch
28 new file mode 100644
29 index 00000000000..48db4dbccfd
30 --- /dev/null
31 +++ b/app-shells/kshdb/files/kshdb-1.0.0-remove-COLORFGBG-message.patch
32 @@ -0,0 +1,47 @@
33 +From a989aef80767d6608f3c3c9db007c5aafd022358 Mon Sep 17 00:00:00 2001
34 +From: rocky <rocky@×××.org>
35 +Date: Sun, 3 Nov 2019 18:23:07 -0500
36 +Subject: [PATCH] Remove COLORFGBG message from term-background.sh
37 +
38 +---
39 + init/term-background.sh | 12 ++++--------
40 + 1 file changed, 4 insertions(+), 8 deletions(-)
41 +
42 +diff --git a/init/term-background.sh b/init/term-background.sh
43 +index 63f6e7d..716bb04 100644
44 +--- a/init/term-background.sh
45 ++++ b/init/term-background.sh
46 +@@ -57,9 +57,9 @@ get_default_bg() {
47 + # Pass as parameters R G B values in hex
48 + # On return, variable is_dark_bg is set
49 + is_dark_rgb() {
50 +- typeset r g b
51 ++ typeset -i r g b
52 + r=$1; g=$2; b=$3
53 +- if (( (16#$r + 16#$g + 16#$b) < $TERMINAL_COLOR_MIDPOINT )) ; then
54 ++ if (( (16#r + 16#g + 16#b) < TERMINAL_COLOR_MIDPOINT )) ; then
55 + is_dark_bg=1
56 + else
57 + is_dark_bg=0
58 +@@ -172,11 +172,7 @@ if (( !success )) && [[ -n $TERM ]] ; then
59 + fi
60 +
61 + if (( success )) ; then
62 +- if (( is_dark_bg == 1 )) ; then
63 +- echo "Dark background from ${method}"
64 +- else
65 +- echo "Light background from ${method}"
66 +- fi
67 ++ :
68 + elif [[ -n $COLORFGBG ]] ; then
69 + # Note that this can be wrong if
70 + # COLORFGBG was set prior invoking a terminal
71 +@@ -196,7 +192,7 @@ fi
72 + # some environment variables
73 + if is_sourced ; then
74 + if (( exitrc == 0 )) ; then
75 +- if (( $is_dark_bg == 1 )) ; then
76 ++ if (( is_dark_bg == 1 )) ; then
77 + export DARK_BG=1
78 + [[ -z $COLORFGBG ]] && export COLORFGBG='0;15'
79 + else
80
81 diff --git a/app-shells/kshdb/kshdb-1.0.0.ebuild b/app-shells/kshdb/kshdb-1.0.0.ebuild
82 new file mode 100644
83 index 00000000000..2c739287e1a
84 --- /dev/null
85 +++ b/app-shells/kshdb/kshdb-1.0.0.ebuild
86 @@ -0,0 +1,23 @@
87 +# Copyright 2019 Gentoo Authors
88 +# Distributed under the terms of the GNU General Public License v2
89 +
90 +EAPI=7
91 +
92 +inherit autotools
93 +
94 +DESCRIPTION="Korn Shell Debugger"
95 +HOMEPAGE="https://github.com/rocky/kshdb"
96 +SRC_URI="https://github.com/rocky/kshdb/archive/${PV}.tar.gz -> ${P}.tar.gz"
97 +
98 +LICENSE="GPL-2+"
99 +SLOT="0"
100 +KEYWORDS="~amd64"
101 +
102 +PATCHES=(
103 + "${FILESDIR}"/kshdb-1.0.0-remove-COLORFGBG-message.patch
104 +)
105 +
106 +src_prepare() {
107 + default
108 + eautoreconf
109 +}
110
111 diff --git a/app-shells/kshdb/metadata.xml b/app-shells/kshdb/metadata.xml
112 new file mode 100644
113 index 00000000000..de09ffd8b08
114 --- /dev/null
115 +++ b/app-shells/kshdb/metadata.xml
116 @@ -0,0 +1,8 @@
117 +<?xml version="1.0" encoding="UTF-8"?>
118 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
119 +<pkgmetadata>
120 + <maintainer type="person">
121 + <email>floppym@g.o</email>
122 + <name>Mike Gilbert</name>
123 + </maintainer>
124 +</pkgmetadata>