1 |
commit: a350c472095e13c1ca27a7b04d601a0fdb13101e |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 29 20:36:40 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 29 20:37:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a350c472 |
7 |
|
8 |
dev-util/source-highlight: bump up tu 3.1.9 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/683402 |
11 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
12 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
13 |
|
14 |
dev-util/source-highlight/Manifest | 1 + |
15 |
.../source-highlight/source-highlight-3.1.9.ebuild | 51 ++++++++++++++++++++++ |
16 |
2 files changed, 52 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/source-highlight/Manifest b/dev-util/source-highlight/Manifest |
19 |
index bdc185bc2be..659d0fb87a7 100644 |
20 |
--- a/dev-util/source-highlight/Manifest |
21 |
+++ b/dev-util/source-highlight/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST source-highlight-3.1.8.tar.gz 1648351 BLAKE2B 1ce1590c86f7aed9d27bb21bce6b0869828b28068d71404410e080b85f6354eb6f520cec8c81d1e9170dd90b158dc4536e5287a04bf2d271fa26354fb853ea32 SHA512 00a49ab180460750614b38be9a569478d1d34d01f601ebc7452a4fee8475a19faf9bb9fb2f256c6b40d43fbc3d34962a77ba8b9833483345c4e4a42faad6976c |
24 |
+DIST source-highlight-3.1.9.tar.gz 1717234 BLAKE2B 6eb40b2274df0772c4a241504e5db5dfdaac600549e0b11aba726f7b4d5ab600c3849a8815bc782ad1bb1f99b69766527645dd202731bde4b2466c663842c47c SHA512 d8e154e9a5d62c77807e4e5d36c0faed5ce2964291be5f8b83e2968a6de52229503689a4ca2109a717ae2632a14b63ec937ca0430c91684c72063f6bc0294195 |
25 |
|
26 |
diff --git a/dev-util/source-highlight/source-highlight-3.1.9.ebuild b/dev-util/source-highlight/source-highlight-3.1.9.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..1b8ae59a6d7 |
29 |
--- /dev/null |
30 |
+++ b/dev-util/source-highlight/source-highlight-3.1.9.ebuild |
31 |
@@ -0,0 +1,51 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit bash-completion-r1 flag-o-matic |
38 |
+ |
39 |
+DESCRIPTION="Generate highlighted source code as an (x)html document" |
40 |
+HOMEPAGE="https://www.gnu.org/software/src-highlite/source-highlight.html" |
41 |
+SRC_URI="mirror://gnu/src-highlite/${P}.tar.gz" |
42 |
+LICENSE="GPL-3" |
43 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris" |
44 |
+SLOT="0" |
45 |
+IUSE="doc static-libs" |
46 |
+ |
47 |
+RDEPEND=">=dev-libs/boost-1.62.0:=[threads] |
48 |
+ dev-util/ctags" |
49 |
+DEPEND="${RDEPEND}" |
50 |
+BDEPEND="" |
51 |
+ |
52 |
+src_configure() { |
53 |
+ # required as rev-dep of dev-libs/boost-1.62.0 |
54 |
+ # https://wiki.gentoo.org/wiki/Project:C%2B%2B/Maintaining_ABI |
55 |
+ append-cxxflags -std=c++14 |
56 |
+ |
57 |
+ econf \ |
58 |
+ --with-boost="${EPREFIX}/usr" \ |
59 |
+ --with-boost-regex="boost_regex" \ |
60 |
+ --without-bash-completion \ |
61 |
+ $(use_enable static-libs static) |
62 |
+} |
63 |
+ |
64 |
+src_install () { |
65 |
+ use doc && local HTML_DOCS=( doc/*.{html,css,java} ) |
66 |
+ default |
67 |
+ |
68 |
+ # That's not how we want it |
69 |
+ rm -rf "${ED%/}"/usr/share/{aclocal,doc} || die |
70 |
+ |
71 |
+ # package provides .pc file |
72 |
+ find "${D}" -name '*.la' -delete || die |
73 |
+ |
74 |
+ dobashcomp completion/source-highlight |
75 |
+} |
76 |
+ |
77 |
+src_test() { |
78 |
+ export LD_LIBRARY_PATH="${S}/lib/srchilite/.libs/" |
79 |
+ # upstream uses the same temporary filenames in numerous places |
80 |
+ # see https://bugs.gentoo.org/635100 |
81 |
+ emake -j1 check |
82 |
+} |