blob: 95d9110747e9951ed4a6cf9823f8f057c6008a33 (
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-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtermcap-compat/libtermcap-compat-1.2.3-r1.ebuild,v 1.9 2004/03/26 22:57:31 avenj Exp $
inherit eutils
MY_PN=${PN/lib/}
MY_P=${MY_PN}-${PV}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Compatibility package for old termcap-based programs"
HOMEPAGE="http://packages.debian.org/stable/oldlibs/termcap-compat.html"
SRC_URI="http://ftp.debian.org/debian/dists/potato/main/source/oldlibs/${MY_PN}_${PV}.tar.gz"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="x86 alpha sparc ppc hppa mips ia64 amd64 ~ppc64"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
cd ${S}; epatch ${FILESDIR}/${PN}_bcopy_fix.patch
}
src_compile() {
emake prefix="/" CFLAGS="${CFLAGS} -I." || die
}
src_install () {
dodir /lib /include /usr/lib
make prefix="${D}" OWNER="root:root" install || die
# Conflicts with ncurses.
rm -rf ${D}/include
cd ${D}/lib; mv libtermcap.a ../usr/lib
# Make sure we link to /lib/libtermcap.so, not /usr/lib/libtermcap.a,
# bug #4411.
gen_usr_ldscript libtermcap.so
dosym libtermcap.so.2.0.8 /lib/libtermcap.so
insinto /etc
newins ${S}/termtypes.tc termcap
cd ${S}
dodoc ChangeLog README
}
|