Lines 3-13
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/STLport-5.1.3.ebuild,v 1.1 2007/09/25 20:22:27 dev-zero Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/STLport-5.1.3.ebuild,v 1.1 2007/09/25 20:22:27 dev-zero Exp $ |
4 |
|
4 |
|
5 |
inherit eutils versionator eutils toolchain-funcs multilib flag-o-matic |
5 |
inherit eutils versionator eutils toolchain-funcs multilib flag-o-matic |
6 |
|
6 |
|
7 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
7 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
8 |
|
8 |
#Arches that should be able to build this: ~mips ~alpha ~hppa ~arm |
9 |
DESCRIPTION="C++ STL library" |
9 |
DESCRIPTION="C++ STL library" |
10 |
HOMEPAGE="http://stlport.sourceforge.net/" |
10 |
HOMEPAGE="http://stlport.sourceforge.net/" |
11 |
SRC_URI="mirror://sourceforge/stlport/${P}.tar.bz2" |
11 |
SRC_URI="mirror://sourceforge/stlport/${P}.tar.bz2" |
12 |
LICENSE="as-is" |
12 |
LICENSE="as-is" |
13 |
SLOT="0" |
13 |
SLOT="0" |
Lines 18-40
Link Here
|
18 |
|
18 |
|
19 |
src_unpack() { |
19 |
src_unpack() { |
20 |
unpack ${A} |
20 |
unpack ${A} |
21 |
cd "${S}" |
21 |
cd "${S}" |
22 |
|
22 |
|
23 |
epatch "${FILESDIR}/${PN}-5.1.2-fix_bashism.patch" |
23 |
epatch "${FILESDIR}/${P}-portability-hack.patch" #Debian bug 356570 http://bugs.debian.org/356570 |
|
|
24 |
epatch "${FILESDIR}/${P}-bashism.patch" #Gentoo bug 183060 http://bugs.gentoo.org/183060 |
25 |
epatch "${FILESDIR}/${P}-cxx_use_c99.patch" #Debian bug 443234 http://bugs.debian.org/443234 |
26 |
epatch "${FILESDIR}/${P}-hppa.patch" #Debian bug 389316 http://bugs.debian.org/389316 |
27 |
epatch "${FILESDIR}/${P}-alpha.patch" #Debian bug 384247 http://bugs.debian.org/384247 |
28 |
epatch "${FILESDIR}/${P}-fix-warnings.patch" #Debian bug 465395 http://bugs.debian.org/465395 |
29 |
epatch "${FILESDIR}/${P}-gcc-4.3.patch" #Debian bug 468063 http://bugs.debian.org/468063 |
24 |
|
30 |
|
25 |
sed -i \ |
31 |
sed -i \ |
26 |
-e 's/\(OPT += \)-O2/\1/' \ |
32 |
-e 's/\(OPT += \)-O2/\1/' \ |
27 |
build/Makefiles/gmake/*cc.mak \ |
33 |
build/Makefiles/gmake/*cc.mak \ |
28 |
|| die "sed opts failed" |
34 |
|| die "sed opts failed" |
29 |
|
35 |
|
|
|
36 |
#CXX_VERSION on gentoo has ()s in them, they need to be quoted. |
37 |
|
30 |
sed -i \ |
38 |
sed -i \ |
31 |
-e 's/_STLP_VENDOR_CSTD::wcsftime/::wcsftime/' \ |
39 |
-e 's/echo ${CXX_VERSION}/echo "${CXX_VERSION}"/' \ |
32 |
stlport/stl/_cwchar.h || die "sed failed" |
40 |
$(find build/Makefiles/gmake -maxdepth '1' -name '*.mak') \ |
33 |
} |
41 |
|| die "sed CXX_VERSION failed" |
34 |
|
42 |
|
35 |
src_compile() { |
|
|
36 |
# We have to add this to host.h to make sure |
43 |
# We have to add this to host.h to make sure |
37 |
# that dependencies of STLport use the same settings |
44 |
# that dependencies of STLport use the same settings |
38 |
cat <<- EOF >> stlport/stl/config/host.h |
45 |
cat <<- EOF >> stlport/stl/config/host.h |
39 |
#define _STLP_NATIVE_INCLUDE_PATH ../g++-v$(gcc-major-version) |
46 |
#define _STLP_NATIVE_INCLUDE_PATH ../g++-v$(gcc-major-version) |
40 |
/* use pthreads for threading */ |
47 |
/* use pthreads for threading */ |
Lines 42-51
Link Here
|
42 |
/* enable largefile support */ |
49 |
/* enable largefile support */ |
43 |
#define _FILE_OFFSET_BITS 64 |
50 |
#define _FILE_OFFSET_BITS 64 |
44 |
#define _LARGEFILE_SOURCE |
51 |
#define _LARGEFILE_SOURCE |
45 |
#define _LARGEFILE64_SOURCE |
52 |
#define _LARGEFILE64_SOURCE |
46 |
EOF |
53 |
EOF |
|
|
54 |
} |
55 |
|
56 |
src_compile() { |
47 |
|
57 |
|
48 |
sed -i \ |
58 |
sed -i \ |
49 |
-e "s|\(CC :=\) gcc|\1 $(tc-getCC)|" \ |
59 |
-e "s|\(CC :=\) gcc|\1 $(tc-getCC)|" \ |
50 |
-e "s|\(CXX :=\) c++|\1 $(tc-getCXX)|" \ |
60 |
-e "s|\(CXX :=\) c++|\1 $(tc-getCXX)|" \ |
51 |
-e "s|^\(CFLAGS = \)|\1 ${CFLAGS} |" \ |
61 |
-e "s|^\(CFLAGS = \)|\1 ${CFLAGS} |" \ |