blob: 56ae450e7420fab905bee58bba5e520ee0d3ff75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/source-highlight/source-highlight-3.1.7-r2.ebuild,v 1.1 2012/11/09 17:25:39 flameeyes Exp $
EAPI="4"
inherit bash-completion-r1 versionator
DESCRIPTION="Generate highlighted source code as an (x)html document"
HOMEPAGE="http://www.gnu.org/software/src-highlite/source-highlight.html"
SRC_URI="mirror://gnu/src-highlite/${P}.tar.gz"
LICENSE="GPL-3"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
SLOT="0"
IUSE="doc static-libs"
DEPEND=">=dev-libs/boost-1.52.0-r1[threads]
dev-util/ctags"
RDEPEND="${DEPEND}"
src_configure() {
econf \
--with-boost-regex="boost_regex" \
--without-bash-completion \
$(use_enable static-libs static)
}
src_install () {
DOCS="AUTHORS ChangeLog CREDITS NEWS README THANKS TODO.txt"
default
use static-libs || rm -rf "${D}"/usr/lib*/*.la
dobashcomp completion/source-highlight
# That's not how we want it
rm -fr "${ED}/usr/share"/{aclocal,doc}
use doc && dohtml -A java doc/*.{html,css,java}
}
src_test() {
export LD_LIBRARY_PATH="${S}/lib/srchilite/.libs/"
default
}
|