blob: e694e2192d6f1d14b05742e6260973568edc9f9c (
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 Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcpml/libcpml-5.2.01-r1.ebuild,v 1.6 2004/06/24 23:14:46 agriffis Exp $
S=${WORKDIR}/usr
SRC_URI=""
DESCRIPTION="Compaq Linux optimized math library for Alpha/Linux/GNU"
HOMEPAGE="http://h18000.www1.hp.com/math/index.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
mv usr/doc/cpml-5.2.0/* usr
}
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
dodir /usr/lib
cp -a lib/compaq/cpml-5.2.0/libcpml* ${D}/usr/lib
dodir /usr/include
cp lib/compaq/cpml-5.2.0/cpml.h ${D}/usr/include
dodoc README Release_Notes-5.2.0
cd ${D}/usr/lib/
ln -s libcpml_${EV}.so libcpml.so
ln -s libcpml_${EV}.a libcpml.a
}
|