blob: 8b3bf3c62b4461ca2a0cf67aee49278dc50fec11 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit autotools eutils git
IUSE="nls"
DEPEND="${DEPEND}
nls? ( dev-util/cvs )"
# Init the extra econfs
SHR_EXTRA_ECONF_OPTS=""
# Location of the project
EGIT_REPO_URI="http://shr.bearstech.com/repo/shr.git"
EGIT_PROJECT="shr"
shr_src_unpack() {
git_src_unpack
cd "${S}/${PROJECT_NAME}"
# Create files that might be missing
touch ABOUT-NLS config.rpath
# If nls is enables, try to find out if we can autopoint that thing
use nls && grep -q AM_GNU_GETTEXT_VERSION configure.ac && autopoint -f
eautoreconf
use nls && glib-gettextize --force --copy
}
shr_src_compile() {
cd "${S}/${PROJECT_NAME}"
echo ${SHR_EXTRA_ECONF_OPTS}
econf ${SHR_EXTRA_ECONF_OPTS} || die "econf failed"
emake || die "emake failed"
}
shr_src_install() {
cd "${S}/${PROJECT_NAME}"
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS NEWS README
}
EXPORT_FUNCTIONS src_unpack src_compile src_install
|