blob: a9ac8aaf7479d8e82317f4be00893f790ee3c3fb (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcpml/libcpml-5.2.01-r2.ebuild,v 1.4 2003/09/06 22:29:24 msterret Exp $
S=${WORKDIR}/usr
SRC_URI=""
DESCRIPTION="Compaq Linux optimized math library for Alpha/Linux/GNU"
HOMEPAGE="ftp://ftp.compaq.com/pub/products/linuxdevtools/latest/downloads.html"
DEPEND="virtual/glibc
app-arch/rpm2targz "
RDEPEND="$DEPEND"
LICENSE="compaq-sdla"
SLOT="5.2.01"
KEYWORDS="-x86 -ppc -sparc alpha"
IUSE="ev6"
src_unpack() {
local EV; use ev6 && EV=ev6 || EV=ev5
At="cpml_${EV}-5.2.0-1.alpha.rpm"
if [ ! -f ${DISTDIR}/${At} ] ; then
die "Please download ${At} from ${HOMEPAGE}"
fi
# rpm2targz ${DISTDIR}/${At}
# tar zxf cpml_${EV}-5.2.0-1.alpha.tar.gz
# agriffis' improved method for rpm extraction
#
i=${DISTDIR}/${At}
dd ibs=`rpmoffset < ${i}` skip=1 if=$i 2>/dev/null \
| gzip -dc | cpio -idmu 2>/dev/null \
&& find usr -type d -print0 | xargs -0 chmod a+rx
eend ${?}
assert "Failed to extract ${At%.rpm}.tar.gz"
}
src_compile () {
local EV; use ev6 && EV=ev6 || EV=ev5
cd ${WORKDIR}/usr/lib/compaq/cpml-5.2.0
ld -shared -o libcpml_${EV}.so -soname libcpml.so -whole-archive libcpml_${EV}.a -no-whole-archive -lots
}
src_install () {
local EV; use ev6 && EV=ev6 || EV=ev5
mv ${WORKDIR}/usr ${D}
dodir /usr/lib/
dosym ./compaq/cpml-5.2.0/libcpml_${EV}.so /usr/lib/libcpml_${EV}.so
dosym ./compaq/cpml-5.2.0/libcpml_${EV}.a /usr/lib/libcpml_${EV}.a
dodir /usr/share
mv ${D}/usr/doc ${D}/usr/share
prepalldocs
dosym ./compaq/cpml-5.2.0/libcpml_${EV}.so /usr/lib/libcpml.so
dosym ./compaq/cpml-5.2.0/libcpml_${EV}.a /usr/lib/libcpml.a
}
|