Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/highlight/
Date: Tue, 23 Feb 2016 16:14:39
Message-Id: 1456244069.9604aaa51c851a25ae8d4a65864dacc51584079a.aballier@gentoo
1 commit: 9604aaa51c851a25ae8d4a65864dacc51584079a
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 23 16:08:40 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 23 16:14:29 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9604aaa5
7
8 app-text/highlight: bump to 3.28
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 app-text/highlight/Manifest | 1 +
14 app-text/highlight/highlight-3.28.ebuild | 66 ++++++++++++++++++++++++++++++++
15 2 files changed, 67 insertions(+)
16
17 diff --git a/app-text/highlight/Manifest b/app-text/highlight/Manifest
18 index d290cb6..60d6f46 100644
19 --- a/app-text/highlight/Manifest
20 +++ b/app-text/highlight/Manifest
21 @@ -1,3 +1,4 @@
22 DIST highlight-3.17.tar.bz2 617834 SHA256 87ca5907943da25c756407d35ea0df8eb7762f3e32544201da27555c8eadb301 SHA512 27d5391339e80b616146489e97f63bca336f18b26c2ff5b94ae5bf183d3d1cdbfba202ab36d8eac86dee98ff49c6cc6c41dcf31860f0277f0327688e622d954e WHIRLPOOL 53ee5a4c58021f2a395d1d2e29090a43b06f3ad4ccad4461843f5a1eedebabe5ff33d2ac0c97c9d1ea496023c3acfe9eb30ff4d9d119a0eae4173ea1f9352cc3
23 DIST highlight-3.25.tar.bz2 626492 SHA256 d8a9b8989c8b4108de0a76ceb585a5777ab308a339a667a9b05ee3d059dade26 SHA512 c0249283e7c26b565170c4686fb28ddd0565716ddcd38a52cbfde03051558f4c1baf7b2605e33e1799afb7dfb79b053fffa70827d5d8dcaf42a344076d26fb11 WHIRLPOOL d2f8ae06a9b48dd88432d9550d6e456f3a3177194af72ee26023ea110046a55ea9031104e9a397bfd316d3b4c0a1f557cefaa73165bc54308725f71a7e89f1e6
24 DIST highlight-3.27.tar.bz2 620054 SHA256 9d0aa72d434fa22acde50ceafb165efcd03799335396b24b134a5632387cf7b0 SHA512 171bf90c07fccfc00c8fac6328c84703642a43e7291d6e32fabd3f6d99793b8cbbe9bbdcbcf3054868725f01fac0ed30902bd30f231bc31a98d56b29f9acefb3 WHIRLPOOL 6d3c93756c78109ffee69080bf4f5e414e1808ad06854f84816352206314df8212c89f5b71234f8f33bf5693ca749c23abad88630e0eda4b63bc25466fc70583
25 +DIST highlight-3.28.tar.bz2 622161 SHA256 36364b6d906148dac04426a0c892fe2343e5e2c752316666589f8dff741ce7cd SHA512 f0d5d9b4635da5fcf75ba5fd11cbb308c0e8c00b8bdaff5769b7e0c2756d8e0b34b46299eaf4396b99bba69562bec96757342e0187abcf7a52277e37dff9b1fd WHIRLPOOL eb7ed0ff8f29b1fb23b14f1cb5745d562c7778a1bcd69a30e70b9e7c5f2572549d10119d128378107fb12a29803c04c1691b8c690d4ca931817b276125a7b934
26
27 diff --git a/app-text/highlight/highlight-3.28.ebuild b/app-text/highlight/highlight-3.28.ebuild
28 new file mode 100644
29 index 0000000..df1763b
30 --- /dev/null
31 +++ b/app-text/highlight/highlight-3.28.ebuild
32 @@ -0,0 +1,66 @@
33 +# Copyright 1999-2014 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +inherit toolchain-funcs qt4-r2 flag-o-matic
40 +
41 +DESCRIPTION="converts source code to formatted text ((X)HTML, RTF, (La)TeX, XSL-FO, XML) with syntax highlight"
42 +HOMEPAGE="http://www.andre-simon.de/"
43 +SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
48 +IUSE="examples qt4"
49 +
50 +RDEPEND="dev-lang/lua
51 + qt4? (
52 + dev-qt/qtgui:4
53 + dev-qt/qtcore:4
54 + )"
55 +DEPEND="${RDEPEND}
56 + dev-libs/boost
57 + virtual/pkgconfig"
58 +
59 +src_prepare() {
60 + sed -i "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
61 + src/core/datadir.cpp || die
62 +
63 + if has_version '<dev-lang/lua-5.2' ; then
64 + sed -i 's/-DUSE_LUA52//' src/makefile || die
65 + fi
66 +}
67 +
68 +src_compile() {
69 + myhlopts=(
70 + "CXX=$(tc-getCXX)"
71 + "AR=$(tc-getAR)"
72 + "LDFLAGS=${LDFLAGS}"
73 + "CFLAGS=${CXXFLAGS}"
74 + "DESTDIR=${D}"
75 + "PREFIX=${EPREFIX}/usr"
76 + "HL_CONFIG_DIR=${EPREFIX}/etc/highlight/"
77 + "HL_DATA_DIR=${EPREFIX}/usr/share/highlight/"
78 + "doc_dir=${EPREFIX}/usr/share/doc/${PF}/"
79 + "conf_dir=${EPREFIX}/etc/highlight/"
80 + )
81 + emake -f makefile "${myhlopts[@]}"
82 + if use qt4 ; then
83 + cd src/gui-qt
84 + eqmake4 'DEFINES+=DATA_DIR=\\\"'"${EPREFIX}"'/usr/share/${PN}/\\\" CONFIG_DIR=\\\"'"${EPREFIX}"'/etc/${PN}/\\\" DOC_DIR=\\\"'"${EPREFIX}"'/usr/share/doc/${PF}/\\\"'
85 + emake
86 + fi
87 +}
88 +
89 +src_install() {
90 + emake -f makefile "${myhlopts[@]}" install
91 + use qt4 && emake -f makefile "${myhlopts[@]}" install-gui
92 +
93 + if use examples ; then
94 + docompress -x /usr/share/doc/${PF}/examples
95 + else
96 + rm -rf "${ED}"/usr/share/doc/${PF}/examples
97 + fi
98 +}