blob: b06c82803d1faef80dfa20fd11e3de1006d122ed (
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
45
46
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/fxscintilla/fxscintilla-2.28.0.ebuild,v 1.2 2012/03/08 16:41:05 naota Exp $
EAPI=4
inherit autotools eutils multilib
DESCRIPTION="A free source code editing component for the FOX-Toolkit"
HOMEPAGE="http://www.nongnu.org/fxscintilla/"
SRC_URI="http://savannah.nongnu.org/download/fxscintilla/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="doc"
RDEPEND="|| ( x11-libs/fox:1.6 x11-libs/fox:1.7 )"
DEPEND="${RDEPEND}"
src_prepare() {
# fox-1.7.32 installs fox17.pc, the fox module is used by fox-1.6
if has_version "x11-libs/fox:1.7" ; then
sed -i -e "s/fox >= 1.7/fox17 >= 1.7/" "${S}/configure.in"
eautoreconf
fi
}
src_configure() {
econf --libdir=/usr/$(get_libdir) --enable-shared
}
src_install () {
emake DESTDIR="${D}" install
dodoc README
if use doc ; then
dodoc scintilla/doc/Lexer.txt
dohtml scintilla/doc/*
fi
}
pkg_postinst() {
elog "FXScintilla is now built only against the highest available"
elog "FOX-version you have installed."
}
|