blob: 1760046cd45daed347158789d3b3288604cd51f0 (
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
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/geany/geany-0.12.ebuild,v 1.3 2008/01/21 22:16:06 maekke Exp $
DESCRIPTION="GTK+ based fast and lightweight IDE."
HOMEPAGE="http://geany.uvena.de"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
http://files.uvena.de/${PN}/${P}.tar.bz2"
LICENSE="GPL-2 Scintilla"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="doc minimal"
RDEPEND=">=x11-libs/gtk+-2.6
!minimal? ( x11-libs/vte )"
DEPEND="${DEPEND}
dev-util/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
# Fix test suite.
echo geany.desktop.in.in >> po/POTFILES.skip
echo geany.glade >> po/POTFILES.skip
echo plugins/demoplugin.c >> po/POTFILES.skip
echo geany.desktop.in.in >> po/POTFILES.skip
echo geany.glade >> po/POTFILES.skip
echo plugins/demoplugin.c >> po/POTFILES.skip
# Add syntax highlighting for Portage.
sed -i -e "s:*.sh;:*.sh;*.ebuild;*.eclass;:" data/filetype_extensions.conf
# Change license references.
local licdir="${PORTDIR}/licenses"
local lic="${licdir}/GPL-2"
sed -i -e "s:@GEANY_DATA_DIR@/GPL-2:${lic}:" doc/geany.1.in
sed -i -e "s:\"GPL-2\", app->datadir:\"GPL-2\", \"${licdir}\":" src/about.c
}
src_compile() {
econf $(use_enable !minimal vte) \
--disable-dependency-tracking --enable-the-force
emake || die "emake failed."
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc AUTHORS ChangeLog HACKING NEWS README TODO THANKS
rm -rf "${D}"/usr/share/doc/${PN} "${D}"/usr/share/${PN}/GPL-2
if use doc; then
dohtml -r doc/geany.css doc/html/*
newdoc doc/geany.txt manual.txt
fi
}
|