blob: dd39dce5ccf15067636a6ab25d4d483a02f712b4 (
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
59
60
61
62
63
64
65
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtermcap-compat/libtermcap-compat-2.0.8-r1.ebuild,v 1.14 2006/09/23 09:42:59 vapier Exp $
inherit eutils multilib toolchain-funcs
PATCHVER=0.1
MY_PN="${PN/lib/}"
MY_PN="${MY_PN/-compat/}"
MY_P="${MY_PN}-${PV}"
S="${WORKDIR}/${MY_P}"
PATCHDIR="${WORKDIR}/patch"
DESCRIPTION="Compatibility package for old termcap-based programs"
HOMEPAGE="http://www.catb.org/~esr/terminfo/"
SRC_URI="http://www.catb.org/~esr/terminfo/termtypes.tc.gz
mirror://gentoo/${MY_P}.tar.bz2
mirror://gentoo/${P}-gentoo-${PATCHVER}.tar.bz2"
LICENSE="freedist"
SLOT="0"
KEYWORDS="alpha amd64 hppa ppc sparc x86"
IUSE=""
DEPEND=""
src_unpack() {
unpack ${A}
cd ${WORKDIR}
mv termtypes.tc termcap
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}/tc.file
cd ${S}; epatch ${FILESDIR}/${PN}_bcopy_fix.patch
EPATCH_SUFFIX="patch" epatch ${PATCHDIR}
epatch ${FILESDIR}/${P}-fPIC.patch
}
src_compile() {
emake prefix="/" CFLAGS="${CFLAGS} -I." || die
}
src_install () {
dodir /$(get_libdir) /include /usr/$(get_libdir)
make prefix="${D}" OWNER="root:root" install || die
# Conflicts with ncurses.
rm -rf ${D}/include
cd ${D}/$(get_libdir); mv libtermcap.a ../usr/$(get_libdir)
# Make sure we link to /lib/libtermcap.so, not /usr/lib/libtermcap.a,
# bug #4411.
gen_usr_ldscript libtermcap.so
dosym libtermcap.so.2 /$(get_libdir)/libtermcap.so
dosym libtermcap.so.${PV} /$(get_libdir)/libtermcap.so.2
cd ${D} ; rm ./lib
insinto /etc
doins ${WORKDIR}/termcap
cd ${S}
dodoc ChangeLog README
}
|