1 |
commit: 94686e9c582faa576804c20a0e2e037f701f8f5b |
2 |
Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 13 14:07:10 2019 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 13 14:08:18 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94686e9c |
7 |
|
8 |
dev-util/source-highlight: fix dark colors in GDB |
9 |
|
10 |
rev.bump to import patch from Fedora (and bump EAPI) to make functions |
11 |
names readable in syntax colored GDB output when using a dark |
12 |
background, see |
13 |
|
14 |
https://bugzilla.redhat.com/show_bug.cgi?id=1688372 |
15 |
|
16 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
17 |
Signed-off-by: Tiziano Müller <dev-zero <AT> gentoo.org> |
18 |
|
19 |
.../files/source-highlight-3.1.8-no-black.patch | 12 +++++ |
20 |
.../source-highlight-3.1.8-r1.ebuild | 55 ++++++++++++++++++++++ |
21 |
2 files changed, 67 insertions(+) |
22 |
|
23 |
diff --git a/dev-util/source-highlight/files/source-highlight-3.1.8-no-black.patch b/dev-util/source-highlight/files/source-highlight-3.1.8-no-black.patch |
24 |
new file mode 100644 |
25 |
index 00000000000..b673c2f7922 |
26 |
--- /dev/null |
27 |
+++ b/dev-util/source-highlight/files/source-highlight-3.1.8-no-black.patch |
28 |
@@ -0,0 +1,12 @@ |
29 |
+diff -up source-highlight-3.1.8/src/esc.style.no-black source-highlight-3.1.8/src/esc.style |
30 |
+--- source-highlight-3.1.8/src/esc.style.no-black 2019-03-20 16:52:33.053965325 +0000 |
31 |
++++ source-highlight-3.1.8/src/esc.style 2019-03-20 16:52:42.502965289 +0000 |
32 |
+@@ -7,7 +7,7 @@ comment cyan i ; |
33 |
+ number purple ; |
34 |
+ preproc darkblue b ; |
35 |
+ symbol darkred ; |
36 |
+-function black b; |
37 |
++function b; |
38 |
+ cbracket red; |
39 |
+ variable darkgreen ; |
40 |
+ |
41 |
|
42 |
diff --git a/dev-util/source-highlight/source-highlight-3.1.8-r1.ebuild b/dev-util/source-highlight/source-highlight-3.1.8-r1.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..2d1d48d6033 |
45 |
--- /dev/null |
46 |
+++ b/dev-util/source-highlight/source-highlight-3.1.8-r1.ebuild |
47 |
@@ -0,0 +1,55 @@ |
48 |
+# Copyright 1999-2019 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=7 |
52 |
+ |
53 |
+inherit bash-completion-r1 flag-o-matic |
54 |
+ |
55 |
+DESCRIPTION="Generate highlighted source code as an (x)html document" |
56 |
+HOMEPAGE="https://www.gnu.org/software/src-highlite/source-highlight.html" |
57 |
+SRC_URI="mirror://gnu/src-highlite/${P}.tar.gz" |
58 |
+LICENSE="GPL-3" |
59 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris" |
60 |
+SLOT="0" |
61 |
+IUSE="doc static-libs" |
62 |
+ |
63 |
+RDEPEND=">=dev-libs/boost-1.62.0:=[threads] |
64 |
+ dev-util/ctags" |
65 |
+DEPEND="${RDEPEND}" |
66 |
+BDEPEND="" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/${P}-no-black.patch" |
70 |
+ ) |
71 |
+ |
72 |
+src_configure() { |
73 |
+ # required as rev-dep of dev-libs/boost-1.62.0 |
74 |
+ # https://wiki.gentoo.org/wiki/Project:C%2B%2B/Maintaining_ABI |
75 |
+ append-cxxflags -std=c++14 |
76 |
+ |
77 |
+ econf \ |
78 |
+ --with-boost="${EPREFIX}/usr" \ |
79 |
+ --with-boost-regex="boost_regex" \ |
80 |
+ --without-bash-completion \ |
81 |
+ $(use_enable static-libs static) |
82 |
+} |
83 |
+ |
84 |
+src_install () { |
85 |
+ use doc && local HTML_DOCS=( doc/*.{html,css,java} ) |
86 |
+ default |
87 |
+ |
88 |
+ # That's not how we want it |
89 |
+ rm -rf "${ED%/}"/usr/share/{aclocal,doc} || die |
90 |
+ |
91 |
+ # package provides .pc file |
92 |
+ find "${D}" -name '*.la' -delete || die |
93 |
+ |
94 |
+ dobashcomp completion/source-highlight |
95 |
+} |
96 |
+ |
97 |
+src_test() { |
98 |
+ export LD_LIBRARY_PATH="${S}/lib/srchilite/.libs/" |
99 |
+ # upstream uses the same temporary filenames in numerous places |
100 |
+ # see https://bugs.gentoo.org/635100 |
101 |
+ emake -j1 check |
102 |
+} |