1 |
xarthisius 13/03/03 12:57:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: STLport-5.2.1-r1.ebuild |
5 |
Log: |
6 |
Add debian patch to fix building with gcc-4.7 wrt #422575 by Diego Elio Pettenò <flameeyes@g.o> |
7 |
|
8 |
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 895192F9) |
9 |
|
10 |
Revision Changes Path |
11 |
1.81 dev-libs/STLport/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/STLport/ChangeLog?rev=1.81&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/STLport/ChangeLog?rev=1.81&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/STLport/ChangeLog?r1=1.80&r2=1.81 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v |
20 |
retrieving revision 1.80 |
21 |
retrieving revision 1.81 |
22 |
diff -u -r1.80 -r1.81 |
23 |
--- ChangeLog 4 Jan 2013 15:15:25 -0000 1.80 |
24 |
+++ ChangeLog 3 Mar 2013 12:57:39 -0000 1.81 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-libs/STLport |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v 1.80 2013/01/04 15:15:25 ulm Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v 1.81 2013/03/03 12:57:39 xarthisius Exp $ |
30 |
+ |
31 |
+*STLport-5.2.1-r1 (03 Mar 2013) |
32 |
+ |
33 |
+ 03 Mar 2013; Kacper Kowalik <xarthisius@g.o> +STLport-5.2.1-r1.ebuild: |
34 |
+ Add debian patch to fix building with gcc-4.7 wrt #422575 by Diego Elio |
35 |
+ Pettenò <flameeyes@g.o> |
36 |
|
37 |
04 Jan 2013; Ulrich Müller <ulm@g.o> STLport-5.2.1.ebuild: |
38 |
Fix LICENSE, bug 448166. |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/STLport/STLport-5.2.1-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/STLport/STLport-5.2.1-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/STLport/STLport-5.2.1-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: STLport-5.2.1-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/STLport-5.2.1-r1.ebuild,v 1.1 2013/03/03 12:57:39 xarthisius Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
inherit eutils versionator toolchain-funcs multilib |
56 |
|
57 |
PATCH_V="2" |
58 |
|
59 |
DESCRIPTION="C++ STL library" |
60 |
HOMEPAGE="http://stlport.sourceforge.net/" |
61 |
SRC_URI="mirror://sourceforge/stlport/${P}.tar.bz2 |
62 |
http://dev.gentoo.org/~xarthisius/distfiles/${PN}-patches-${PV}-${PATCH_V}.tbz2" |
63 |
|
64 |
LICENSE="boehm-gc HPND" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
67 |
IUSE="boost debug static static-libs threads" |
68 |
|
69 |
DEPEND="boost? ( >=dev-libs/boost-1.35.0-r5 )" |
70 |
RDEPEND="${DEPEND}" |
71 |
|
72 |
pkg_setup() { |
73 |
# make sure OSNAME is not in the environment (bug #305399) |
74 |
unset OSNAME |
75 |
} |
76 |
|
77 |
src_prepare() { |
78 |
EPATCH_SOURCE="${WORKDIR}/patches" |
79 |
EPATCH_SUFFIX="diff" |
80 |
epatch |
81 |
|
82 |
# We have to add this to host.h to make sure |
83 |
# that dependencies of STLport use the same settings |
84 |
cat <<- EOF >> stlport/stl/config/host.h |
85 |
#define _STLP_NATIVE_INCLUDE_PATH ../g++-v$(gcc-major-version) |
86 |
/* use pthreads for threading */ |
87 |
#define _PTHREADS |
88 |
/* enable largefile support */ |
89 |
#define _FILE_OFFSET_BITS 64 |
90 |
#define _LARGEFILE_SOURCE |
91 |
#define _LARGEFILE64_SOURCE |
92 |
EOF |
93 |
} |
94 |
|
95 |
src_configure() { |
96 |
local myconf |
97 |
|
98 |
if use boost ; then |
99 |
BOOST_PKG="$(best_version ">=dev-libs/boost-1.35.0-r5")" |
100 |
BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")" |
101 |
BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")" |
102 |
BOOST_INC="/usr/include/boost-${BOOST_VER}" |
103 |
|
104 |
myconf+="--with-boost=${BOOST_INC} --with-system-boost " |
105 |
# make sure user apps (e.g. other packges using STLport) use boost as well |
106 |
sed -i \ |
107 |
-e 'N;N;N;s:/\**\n\(#define _STLP_USE_BOOST_SUPPORT 1\)*\n\*/:\1:' \ |
108 |
stlport/stl/config/user_config.h |
109 |
fi |
110 |
|
111 |
use debug || myconf+="--without-debug " |
112 |
use static-libs && myconf+="--enable-static " |
113 |
use threads || myconf+="--without-thread " |
114 |
use static && myconf+="--use-static-gcc " |
115 |
|
116 |
# It's not an autoconf script |
117 |
./configure \ |
118 |
--prefix=/usr \ |
119 |
--libdir=/usr/$(get_libdir) \ |
120 |
--use-compiler-family=gcc \ |
121 |
${myconf} \ |
122 |
--with-cc="$(tc-getCC)" \ |
123 |
--with-cxx="$(tc-getCXX)" \ |
124 |
--with-extra-cflags="${CFLAGS}" \ |
125 |
--with-extra-cxxflags="${CXXFLAGS}" \ |
126 |
--with-extra-ldflags="${LDFLAGS}" || die "configure failed" |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
# precreate some directories |
131 |
dodir /usr/$(get_libdir) |
132 |
|
133 |
emake DESTDIR="${D}" install || die "emake install failed" |
134 |
|
135 |
dodoc README etc/ChangeLog etc/*.txt doc/*.txt doc/{FAQ,README.utf8} |
136 |
} |
137 |
|
138 |
src_test() { |
139 |
if use static ; then |
140 |
ewarn "Tests don't work when building with USE=static. Skipping..." |
141 |
return |
142 |
fi |
143 |
default |
144 |
} |