blob: f662133ff61b1521ac4798d15cdf89285c371f80 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/STLport-5.0.1.ebuild,v 1.1 2006/02/08 05:08:28 vapier Exp $
inherit eutils multilib
MY_P=${PN}-${PV/_rc/RC}
DESCRIPTION="C++ STL library"
HOMEPAGE="http://stlport.sourceforge.net/"
SRC_URI="mirror://sourceforge/stlport/${P}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e 's:OPT += -O2::' \
-e 's:OPT += -g::' \
build/Makefiles/gmake/{,lib/,app/}*.mak \
|| die "sed opts failed"
cat <<- EOF >> stlport/config/stl_gcc.h
#undef _STLP_NATIVE_INCLUDE_PATH
#define _STLP_NATIVE_INCLUDE_PATH ../g++-v3
EOF
}
src_compile() {
export OPT=${CXXFLAGS}
emake \
-C build/lib \
-f gcc.mak \
depend all || die "Compile failed"
}
src_install() {
dodir /usr/$(get_libdir)
cp -pPR build/lib/obj/*/*/libstlport*.so* "${D}"/usr/$(get_libdir)/ || die "dolib.so failed"
dodir /usr/include
cp -R "${S}"/stlport "${D}"/usr/include
rm -r "${D}"/usr/include/stlport/BC50
chmod -R a+r "${D}"/usr/include/stlport
cd "${S}"/etc/
dodoc ChangeLog* ../README *.txt
cd "${S}"
dohtml -r doc/*
}
|