1 |
dev-zero 08/04/30 18:54:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: STLport-5.1.5.ebuild |
5 |
Log: |
6 |
Version bump (including a lot fixes, thanks to Peter Alfredsen and Debian, bug #219457). |
7 |
(Portage version: 2.1.5_rc6) |
8 |
|
9 |
Revision Changes Path |
10 |
1.65 dev-libs/STLport/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/ChangeLog?rev=1.65&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/ChangeLog?rev=1.65&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/ChangeLog?r1=1.64&r2=1.65 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v |
19 |
retrieving revision 1.64 |
20 |
retrieving revision 1.65 |
21 |
diff -u -r1.64 -r1.65 |
22 |
--- ChangeLog 25 Sep 2007 20:22:27 -0000 1.64 |
23 |
+++ ChangeLog 30 Apr 2008 18:54:27 -0000 1.65 |
24 |
@@ -1,6 +1,17 @@ |
25 |
# ChangeLog for dev-libs/STLport |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v 1.64 2007/09/25 20:22:27 dev-zero Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v 1.65 2008/04/30 18:54:27 dev-zero Exp $ |
30 |
+ |
31 |
+*STLport-5.1.5 (30 Apr 2008) |
32 |
+ |
33 |
+ 30 Apr 2008; Tiziano Müller <dev-zero@g.o> |
34 |
+ +files/STLport-5.1.5-alpha.patch, +files/STLport-5.1.5-bashism.patch, |
35 |
+ +files/STLport-5.1.5-cxx_use_c99.patch, |
36 |
+ +files/STLport-5.1.5-fix-warnings.patch, |
37 |
+ +files/STLport-5.1.5-gcc-4.3.patch, +files/STLport-5.1.5-hppa.patch, |
38 |
+ +files/STLport-5.1.5-portability-hack.patch, +STLport-5.1.5.ebuild: |
39 |
+ Version bump (including a lot fixes, thanks to Peter Alfredsen and Debian, |
40 |
+ bug #219457). |
41 |
|
42 |
*STLport-5.1.3 (25 Sep 2007) |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.1 dev-libs/STLport/STLport-5.1.5.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/STLport-5.1.5.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/STLport-5.1.5.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: STLport-5.1.5.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2008 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/STLport-5.1.5.ebuild,v 1.1 2008/04/30 18:54:27 dev-zero Exp $ |
57 |
|
58 |
inherit eutils versionator eutils toolchain-funcs multilib flag-o-matic |
59 |
|
60 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
61 |
|
62 |
DESCRIPTION="C++ STL library" |
63 |
HOMEPAGE="http://stlport.sourceforge.net/" |
64 |
SRC_URI="mirror://sourceforge/stlport/${P}.tar.bz2" |
65 |
LICENSE="as-is" |
66 |
SLOT="0" |
67 |
IUSE="boost" |
68 |
|
69 |
DEPEND="boost? ( dev-libs/boost )" |
70 |
RDEPEND="${RDEPEND}" |
71 |
|
72 |
src_unpack() { |
73 |
unpack ${A} |
74 |
cd "${S}" |
75 |
|
76 |
#Debian bug 356570 http://bugs.debian.org/356570 |
77 |
#Gentoo bug 183060 http://bugs.gentoo.org/183060 |
78 |
#Debian bug 443234 http://bugs.debian.org/443234 |
79 |
#Debian bug 389316 http://bugs.debian.org/389316 |
80 |
#Debian bug 384247 http://bugs.debian.org/384247 |
81 |
#Debian bug 465395 http://bugs.debian.org/465395 |
82 |
#Debian bug 468063 http://bugs.debian.org/468063 |
83 |
epatch "${FILESDIR}/${P}-portability-hack.patch" \ |
84 |
"${FILESDIR}/${P}-bashism.patch" \ |
85 |
"${FILESDIR}/${P}-cxx_use_c99.patch" \ |
86 |
"${FILESDIR}/${P}-hppa.patch" \ |
87 |
"${FILESDIR}/${P}-alpha.patch" \ |
88 |
"${FILESDIR}/${P}-fix-warnings.patch" \ |
89 |
"${FILESDIR}/${P}-gcc-4.3.patch" |
90 |
|
91 |
sed -i \ |
92 |
-e 's/\(OPT += \)-O2/\1/' \ |
93 |
build/Makefiles/gmake/*cc.mak \ |
94 |
|| die "sed opts failed" |
95 |
|
96 |
# CXX_VERSION on gentoo has ( )s in them, they need to be quoted. |
97 |
|
98 |
sed -i \ |
99 |
-e 's/echo ${CXX_VERSION}/echo "${CXX_VERSION}"/' \ |
100 |
build/Makefiles/gmake/*.mak \ |
101 |
|| die "sed CXX_VERSION failed" |
102 |
|
103 |
# We have to add this to host.h to make sure |
104 |
# that dependencies of STLport use the same settings |
105 |
cat <<- EOF >> stlport/stl/config/host.h |
106 |
#define _STLP_NATIVE_INCLUDE_PATH ../g++-v$(gcc-major-version) |
107 |
/* use pthreads for threading */ |
108 |
#define _PTHREADS |
109 |
/* enable largefile support */ |
110 |
#define _FILE_OFFSET_BITS 64 |
111 |
#define _LARGEFILE_SOURCE |
112 |
#define _LARGEFILE64_SOURCE |
113 |
EOF |
114 |
} |
115 |
|
116 |
src_compile() { |
117 |
|
118 |
sed -i \ |
119 |
-e "s|\(CC :=\) gcc|\1 $(tc-getCC)|" \ |
120 |
-e "s|\(CXX :=\) c++|\1 $(tc-getCXX)|" \ |
121 |
-e "s|^\(CFLAGS = \)|\1 ${CFLAGS} |" \ |
122 |
-e "s|^\(CCFLAGS = \)|\1 ${CFLAGS} |" \ |
123 |
-e "s|^\(CPPFLAGS = \)|\1 ${CPPFLAGS} |" \ |
124 |
build/Makefiles/gmake/gcc.mak || die "sed failed" |
125 |
|
126 |
local myconf |
127 |
if use boost ; then |
128 |
myconf="${myconf} --with-boost=/usr/include" |
129 |
sed -i \ |
130 |
-e 'N;N;N;s:/\**\n\(#define _STLP_USE_BOOST_SUPPORT 1\)*\n\*/:\1:' \ |
131 |
stlport/stl/config/user_config.h |
132 |
fi |
133 |
|
134 |
cd "${S}/build/lib" |
135 |
|
136 |
# It's not an autoconf script |
137 |
./configure \ |
138 |
${myconf} \ |
139 |
--with-extra-cxxflags="${CXXFLAGS}" || die "configure failed" |
140 |
|
141 |
cd "${S}" |
142 |
|
143 |
cat <<- EOF >> build/Makefiles/config.mak |
144 |
CFLAGS := ${CFLAGS} |
145 |
EOF |
146 |
|
147 |
local targets |
148 |
targets="all-shared all-static" |
149 |
|
150 |
# The build-system is broken in respect to parallel builds, bug #161881 |
151 |
emake \ |
152 |
-j1 \ |
153 |
-C build/lib \ |
154 |
-f gcc.mak \ |
155 |
depend ${targets} || die "Compile failed" |
156 |
|
157 |
} |
158 |
|
159 |
src_install() { |
160 |
emake -C build/lib -f gcc.mak install |
161 |
dolib.so lib/* |
162 |
|
163 |
emake -C build/lib -f gcc.mak install-static |
164 |
dolib.a lib/*.a |
165 |
|
166 |
insinto /usr/include |
167 |
doins -r stlport |
168 |
|
169 |
dodoc README etc/ChangeLog* etc/*.txt doc/* |
170 |
} |
171 |
|
172 |
src_test() { |
173 |
cd "${S}/build" |
174 |
|
175 |
sed -i \ |
176 |
-e "1aLDFLAGS := -L${S}/build/lib/obj/gcc/so -L${S}/build/lib/obj/gcc/so_g -L${S}/build/lib/obj/gcc/so_stlg" \ |
177 |
test/unit/gcc.mak || die "sed failed" |
178 |
|
179 |
emake -j1 -C test/unit -f gcc.mak || die "emake tests failed" |
180 |
|
181 |
export LD_LIBRARY_PATH="./lib/obj/gcc/so_stlg" |
182 |
./test/unit/obj/gcc/so_stlg/stl_unit_test || die "unit tests failed" |
183 |
} |
184 |
|
185 |
|
186 |
|
187 |
-- |
188 |
gentoo-commits@l.g.o mailing list |