/[gentoo-alt]/trunk/prefix/eclass/iiimf.eclass
Gentoo

Contents of /trunk/prefix/eclass/iiimf.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 982 - (show annotations) (download)
Thu Feb 2 04:20:17 2006 UTC (13 years, 2 months ago) by kito
File size: 1182 byte(s)
Initial eclass import from gentoo-x86
1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/iiimf.eclass,v 1.12 2005/07/06 20:23:20 agriffis Exp $
4 #
5 # Author: Mamoru KOMACHI <usata@gentoo.org>
6 #
7 # The IIIMF eclass is used for compilation and installation of IIIMF
8 # libraries, servers, clients and modules within the Portage system.
9 #
10
11 EXPORT_FUNCTIONS src_compile src_install
12
13 IMSDK_PV="r${PV//./_}"
14 MY_PV="${IMSDK_PV/_pre/-svn}"
15 MY_PV="${MY_PV/_p/-svn}"
16 IMSDK_P="im-sdk-src-${MY_PV}"
17 IMSDK="${IMSDK_P/-src/}"
18
19 DESCRIPTION="Based on the $ECLASS eclass"
20 HOMEPAGE="http://www.openi18n.org/subgroups/im/IIIMF/"
21 SRC_URI="mirror://gentoo/${IMSDK_P}.tgz
22 http://dev.gentoo.org/~usata/distfiles/${IMSDK_P}.tgz"
23
24 LICENSE="MIT X11"
25 SLOT="0"
26 KEYWORDS="~x86"
27 IUSE="debug"
28
29 DEPEND="virtual/libc"
30
31 S="${WORKDIR}/${IMSDK}/${PN}"
32
33 iiimf_src_compile() {
34
35 if [ "${PV:0:2}" -eq 12 ] ; then
36 libtoolize --copy --force
37 ./autogen.sh
38 fi
39
40 econf --enable-optimize \
41 --localstatedir=/var \
42 $(use_enable debug) || die
43 # emake doesn't work on some libraries
44 emake -j1 || die
45 }
46
47 iiimf_src_install() {
48
49 einstall || die
50
51 dodoc ChangeLog
52 }
53

  ViewVC Help
Powered by ViewVC 1.1.20