summaryrefslogtreecommitdiff
blob: cf33ed5db4c0f0c0476b5282397cad1c876b7f87 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/bk_edit/bk_edit-0.6.23.ebuild,v 1.1 2004/10/31 16:59:42 chriswhite Exp $

inherit eutils
DESCRIPTION="bk_edit is an easy to use bookmark manager and editor."
HOMEPAGE="http://www2.fht-esslingen.de/~clfuit00/sasnt/bk_edit/"
SRC_URI="http://www.allesdurcheinander.de/nettools/bk_edit/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="sys-devel/flex
		sys-devel/bison
		>=x11-libs/gtk+-1.2.0
		>=dev-libs/libxml2-2.4.1"

cflags_replace() {
	for files in *
	do
		if [ -d $files ]
		then
			sed -e "s:^CFLAGS\s*=\s*:CFLAGS = ${CFLAGS} :" -i $files/Makefile
		fi
	done
}

src_compile() {
	econf || die "Configuration failed!"

	#fixes makefile against sandboxing
	epatch ${FILESDIR}/${P}-sandbox.patch

	#custom CFLAGS for main src
	cflags_replace

	#custom CFLAGS for the plugins too
	cd ${S}/src/plugins
	cflags_replace

	cd ${S}

	emake || die "Make failed!"
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc ChangeLog INSTALL README
}