blob: 3af5fb9816449512086dd9c60d687bf1f4dd1522 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcxml/libcxml-5.2.0.ebuild,v 1.9 2005/08/24 09:06:34 taviso Exp $
inherit eutils rpm
DESCRIPTION="Compaqs eXtended Math Library for linux alpha"
HOMEPAGE="ftp://ftp.compaq.com/pub/products/C-CXX/linux/"
SRC_URI="ev6? ( cxml_ev6-5.2.0-2.alpha.rpm )
!ev6? ( cxml_ev5-5.2.0-2.alpha.rpm )"
LICENSE="compaq-sdla"
SLOT="0"
KEYWORDS="-* ~alpha"
IUSE="ev6 doc"
RESTRICT="fetch strip"
S=${WORKDIR}/usr
DEPEND="app-arch/rpm2targz"
RDEPEND="dev-libs/libots
dev-libs/libcpml"
# non portage variable
RELEASE="5.2.0-2"
src_unpack() {
local EV; use ev6 && EV=ev6 || EV=ev5
rpm_src_unpack
if ! use doc >/dev/null ; then
einfo "Removing unwanted documentation (USE=\"-doc\")..."
rm -rf usr/doc
else
einfo "Reorganising Documentation..."
mkdir usr/share
mv usr/doc usr/share/
fi
}
src_compile () {
local EV; use ev6 && EV=ev6 || EV=ev5
cd ${WORKDIR}/usr/lib/compaq/cxml-${RELEASE%*-2}
ld -shared -o libcxml_${EV}.so -soname libcxml.so \
-whole-archive libcxml_${EV}.a -no-whole-archive -lots -lcpml
}
src_install () {
mv ${WORKDIR}/usr "${D}"
prepalldocs
}
|