summaryrefslogtreecommitdiff
blob: ad6cdd3740c343b32762740f2c66a1254c79d20a (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/iiimf.eclass,v 1.15 2006/11/01 17:32:00 flameeyes Exp $
#
# Author: Mamoru KOMACHI <usata@gentoo.org>
#
# The IIIMF eclass is used for compilation and installation of IIIMF
# libraries, servers, clients and modules within the Portage system.
#

WANT_AUTOMAKE="1.4"
WANT_AUTOCONF="2.5"

inherit autotools

EXPORT_FUNCTIONS src_compile src_install

IMSDK_PV="r${PV//./_}"
MY_PV="${IMSDK_PV/_pre/-svn}"
MY_PV="${MY_PV/_p/-svn}"
IMSDK_P="im-sdk-src-${MY_PV}"
IMSDK="${IMSDK_P/-src/}"

DESCRIPTION="Based on the $ECLASS eclass"
HOMEPAGE="http://www.openi18n.org/subgroups/im/IIIMF/"
SRC_URI="mirror://gentoo/${IMSDK_P}.tgz
	http://dev.gentoo.org/~usata/distfiles/${IMSDK_P}.tgz"

LICENSE="MIT X11"
SLOT="0"
KEYWORDS="~x86"
IUSE="debug"

S="${WORKDIR}/${IMSDK}/${PN}"

RDEPEND=""
DEPEND="dev-util/pkgconfig"

iiimf_src_compile() {

	if [ "${PV:0:2}" -eq 12 ] ; then
		eautoreconf
	fi

	econf --enable-optimize \
		--localstatedir=/var \
		$(use_enable debug) || die
	# emake doesn't work on some libraries
	emake -j1 || die
}

iiimf_src_install() {

	einstall || die

	dodoc ChangeLog
}