summaryrefslogtreecommitdiff
blob: e81024d15065301ff91af612eb4d2f22f64d5c86 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/iiimf.eclass,v 1.4 2004/04/10 13:02:38 usata 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.
#

ECLASS=iiimf
INHERITED="$INHERITED $ECLASS"
EXPORT_FUNCTIONS src_compile src_install

IMSDK_PV="r${PV/./_}"
IMSDK_PN="im-sdk"
IMSDK_P="${IMSDK_PN}.${IMSDK_PV}"
IMSDK="${IMSDK_P//./-}"

DESCRIPTION="Based on the $ECLASS eclass"
HOMEPAGE="http://www.openi18n.org/subgroups/im/IIIMF/"
SRC_URI="http://www.openi18n.org/download/docs/im-sdk/${IMSDK_P}.tar.bz2"

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

IUSE="debug"

DEPEND="virtual/glibc"

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

iiimf_src_compile() {

	econf --enable-optimize \
		`use_enable debug` || die
	# emake doesn't work on some libraries
	make || die
}

iiimf_src_install() {

	einstall || die

	dodoc ChangeLog
}