Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/highlight: ChangeLog highlight-3.4.ebuild highlight-3.0_beta.ebuild
Date: Wed, 01 Jun 2011 23:54:47
Message-Id: 20110601235436.2627720054@flycatcher.gentoo.org
1 radhermit 11/06/01 23:54:36
2
3 Modified: ChangeLog
4 Added: highlight-3.4.ebuild
5 Removed: highlight-3.0_beta.ebuild
6 Log:
7 Version bump and remove old.
8
9 (Portage version: 2.2.0_alpha37/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.36 app-text/highlight/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/highlight/ChangeLog?rev=1.36&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/highlight/ChangeLog?rev=1.36&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/highlight/ChangeLog?r1=1.35&r2=1.36
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-text/highlight/ChangeLog,v
21 retrieving revision 1.35
22 retrieving revision 1.36
23 diff -u -r1.35 -r1.36
24 --- ChangeLog 9 Feb 2011 11:48:50 -0000 1.35
25 +++ ChangeLog 1 Jun 2011 23:54:36 -0000 1.36
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-text/highlight
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-text/highlight/ChangeLog,v 1.35 2011/02/09 11:48:50 radhermit Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/highlight/ChangeLog,v 1.36 2011/06/01 23:54:36 radhermit Exp $
31 +
32 +*highlight-3.4 (01 Jun 2011)
33 +
34 + 01 Jun 2011; Tim Harder <radhermit@g.o> -highlight-3.0_beta.ebuild,
35 + +highlight-3.4.ebuild:
36 + Version bump and remove old.
37
38 09 Feb 2011; Tim Harder <radhermit@g.o> highlight-3.3.ebuild:
39 Add dev-libs/boost to DEPEND.
40
41
42
43 1.1 app-text/highlight/highlight-3.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/highlight/highlight-3.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/highlight/highlight-3.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: highlight-3.4.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-text/highlight/highlight-3.4.ebuild,v 1.1 2011/06/01 23:54:36 radhermit Exp $
53
54 EAPI=4
55
56 inherit toolchain-funcs
57
58 DESCRIPTION="converts source code to formatted text ((X)HTML, RTF, (La)TeX, XSL-FO, XML) with syntax highlight"
59 HOMEPAGE="http://www.andre-simon.de/"
60 SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
61
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
65 IUSE="examples qt4"
66
67 DEPEND="dev-lang/lua
68 dev-libs/boost
69 qt4? ( x11-libs/qt-gui:4 )"
70 RDEPEND="${DEPEND}"
71
72 pkg_setup() {
73 myhlopts=(
74 "CXX=$(tc-getCXX)"
75 "DESTDIR=${D}"
76 "PREFIX=${EPREFIX}/usr"
77 "doc_dir=${EPREFIX}/usr/share/doc/${PF}/"
78 "conf_dir=${EPREFIX}/etc/highlight/"
79 )
80 }
81
82 src_prepare() {
83 sed -i -e "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
84 src/core/datadir.cpp || die
85
86 sed -i -e 's:-O2::' \
87 -e 's:CFLAGS:CXXFLAGS:g' \
88 src/makefile || die
89 }
90
91 src_compile() {
92 emake -f makefile "${myhlopts[@]}"
93 use qt4 && emake -f makefile "${myhlopts[@]}" gui
94 }
95
96 src_install() {
97 emake -f makefile "${myhlopts[@]}" install
98 use qt4 && emake -f makefile "${myhlopts[@]}" install-gui
99
100 if use examples ; then
101 docompress -x /usr/share/doc/${PF}/examples
102 else
103 rm -rf "${D}"/usr/share/doc/${PF}/examples
104 fi
105 }