blob: 034e9bd8c57e825e5b071ad5be171d5299a83d24 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtkscintilla2/gtkscintilla2-0.1.0.ebuild,v 1.9 2009/05/05 07:45:43 ssuominen Exp $
inherit multilib
MY_P=GtkScintilla2-${PV}
DESCRIPTION="Gtk-2 wrappers for the Scintilla source editing components."
HOMEPAGE="http://www.gphpedit.org/"
SRC_URI="http://gphpedit.org/download/files/${MY_P}.tar.gz"
IUSE=""
SLOT="0"
KEYWORDS="x86 amd64 ppc"
LICENSE="GPL-2"
RDEPEND=">=x11-libs/gtk+-2.0"
DEPEND=">=dev-util/pkgconfig-0.12.0
>=dev-lang/python-2.2
${RDEPEND}"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
# some quick touches to the Makefile, bump the version
# and make use of our CFLAGS
GTHREAD_LDFLAGS=$(echo "$(pkg-config gthread-2.0 --libs)" | sed 's|/|\\/|g')
sed -e "/CFLAGS/s/-g/${CFLAGS} -fPIC/" \
-e "s/^LDFLAGS_PRE =/LDFLAGS_PRE = ${GTHREAD_LDFLAGS}/" \
-i Makefile
# and again, in the scintilla part
cd "${S}"/scintilla/gtk
sed -e "/CXXFLAGS/s/-Os/${CFLAGS} -fPIC/" -i makefile
}
src_compile() {
emake || die
}
src_install() {
make DESTDIR="${D}" LIB_DIR=/usr/$(get_libdir) install || die
dodoc README
}
|