blob: d8cfe4d541635595cfb07225d8014330153a824e (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit autotools eutils subversion
SVN_SUBDIR="${SVN_SUBDIR:=}"
E17_PATCHES="${E17_PATCHES:=}"
E17_EXTRA_CONF="${E17_EXTRA_CONF:=}"
IUSE="${IUSE} nls"
DEPENDS="${DEPEND}
nls? ( sys-devel/gettext
dev-utils/cvs
)"
LICENSE="BSD"
SLOT="0"
ESVN_REPO_URI="http://svn.enlightenment.org/svn/e/trunk$SVN_SUBDIR/${PN}"
case ${PV} in
20090507)
ESVN_REVISION=40538
;;
20090614)
ESVN_REVISION=41040
;;
20090626)
ESVN_REVISION=41211
;;
20090706)
ESVN_REVISION=41258
;;
20090729)
ESVN_REVISION=41533
;;
20091202)
ESVN_REVISION=44150
;;
99999999)
;;
*)
die "Unknown revision!"
;;
esac
enlightenment_svn_src_unpack() {
subversion_src_unpack
cd "${S}"
# Applying all user specified patches
for patch in ${E17_PATCHES}; do
epatch "${FILESDIR}/${patch}"
done
if tc-is-cross-compiler; then
[ -f configure.ac ] && sed -i -e 's%SDL_CFLAGS=`$SDL_CONFIG --cflags`%SDL_CFLAGS=`$SDL_CONFIG --prefix='${SYSROOT}'/usr --cflags`%' configure.ac
fi
# Create files that might be missing
touch README ABOUT-NLS config.rpath
# Delete possible pkg.m4 macro files as they colide
# with newer autoconf version.
find "${S}" -name pkg.m4 -delete
use nls && grep -q AM_GNU_GETTEXT_VERSION configure.ac && autopoint -f
eautoreconf || die "eautoreconf failed"
use nls && glib-gettextize --force --copy
}
enlightenment_svn_src_compile() {
local myconf
use nls || myconf="${myconf} --disable-nls"
econf ${E17_EXTRA_CONF} ${myconf} || die "econf failed"
emake || die "emake failed"
}
enlightenment_svn_src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README
}
EXPORT_FUNCTIONS src_unpack src_compile src_install
|