blob: 489c957c8d799423826ecc01d2cdc792983f700a (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libiconv/libiconv-1.9.2-r3.ebuild,v 1.1 2005/06/17 16:59:18 flameeyes Exp $
inherit eutils multilib
DESCRIPTION="GNU charset conversion library for libc which doesn't implement it"
SRC_URI="mirror://gnu/libiconv/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/libiconv/"
SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="build"
DEPEND="virtual/libc
!sys-libs/glibc"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-RPATH-fix.patch
}
src_compile() {
# Install in /lib as utils installed in /lib like gnutar
# can depend on this
# Disable NLS support because that creates a circular dependency
# between libiconv and gettext
econf \
--libdir=/$(get_libdir) \
--disable-nls \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} docdir="/usr/share/doc/${PF}/html" install || die "make install failed"
# Move static libs and creates ldscripts into /usr/lib
dolib /usr/lib
mv ${D}/$(get_libdir)/*.a ${D}/$(get_libdir)/*.la ${D}/usr/$(get_libdir)
gen_usr_ldscript libiconv.so
gen_usr_ldscript libcharset.so
use build && rm -rf /usr
}
|