blob: e0aec1df73e5ad613d999ca285f57053f7c713da (
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
59
60
61
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libwbxml/libwbxml-0.9.2.ebuild,v 1.3 2006/09/21 19:38:13 dertobi123 Exp $
inherit eutils
IUSE=""
MY_P="wbxml2-${PV}"
DESCRIPTION="Library and tools to parse, encode and handle WBXML documents."
HOMEPAGE="http://libwbxml.aymerick.com/"
SRC_URI="mirror://sourceforge/wbxmllib/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ~x86"
RDEPEND=">=dev-libs/expat-1.95.8"
DEPEND="${RDEPEND}
>=sys-apps/sed-4.1.4"
S="${WORKDIR}/${MY_P}"
src_unpack()
{
unpack ${A}
cd ${S}
# Remove ./configure stuff from the bootstrap script,
# we will handle that step directly
subst="./configure --prefix=/usr"
sed -i -e "s:${subst}:#${subst}:" bootstrap
# Remove doc stuff from Makefile.am, otherwise make install complains
epatch ${FILESDIR}/${MY_P}.make_install.patch
# Add support for our own CFLAGS
sed -i -e "s:-O3\\\:${CFLAGS}:" src/Makefile.am
sed -i -e "s: -g::" src/Makefile.am
sed -i -e "s:-O3\\\:${CFLAGS}:" tools/Makefile.am
sed -i -e "s: -g::" tools/Makefile.am
chmod 755 bootstrap
}
src_compile()
{
./bootstrap
econf || die "Configuration failed"
emake || die "Compilation failed"
}
src_install()
{
einstall || die "Installation failed"
dodoc AUTHORS BUGS ChangeLog NEWS README References THANKS TODO
}
|