From: Tiziano Müller Date: Sun, 24 Dec 2006 00:58:41 +0000 (+0000) Subject: Version bump. Dropped old versions. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7ab1af3a3cbfdbb906b7dacdab439246fbb165be;p=gentoo.git Version bump. Dropped old versions. Package-Manager: portage-2.1.2_rc3-r8 --- diff --git a/dev-libs/STLport/ChangeLog b/dev-libs/STLport/ChangeLog index 80286a688e12..225f804c4e2d 100644 --- a/dev-libs/STLport/ChangeLog +++ b/dev-libs/STLport/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-libs/STLport # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v 1.32 2006/05/01 12:25:48 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/STLport/ChangeLog,v 1.33 2006/12/24 00:58:41 dev-zero Exp $ + +*STLport-5.1.0 (24 Dec 2006) + + 24 Dec 2006; Tiziano Müller + -files/STLport-4.5.3-gcc3.patch, -files/STLport-4.5.3-optimize.patch, + -STLport-4.5.3-r3.ebuild, -STLport-5.0.1.ebuild, +STLport-5.1.0.ebuild: + Version bump. Dropped old versions. 01 May 2006; Markus Rothe STLport-4.6.2-r2.ebuild: let's apply STLport-vector.patch on ppc64, too. diff --git a/dev-libs/STLport/STLport-5.1.0.ebuild b/dev-libs/STLport/STLport-5.1.0.ebuild new file mode 100644 index 000000000000..a8cfb3bedc40 --- /dev/null +++ b/dev-libs/STLport/STLport-5.1.0.ebuild @@ -0,0 +1,88 @@ +# 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.1.0.ebuild,v 1.1 2006/12/24 00:58:41 dev-zero Exp $ + +inherit versionator eutils toolchain-funcs multilib + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="C++ STL library" +HOMEPAGE="http://stlport.sourceforge.net/" +SRC_URI="mirror://sourceforge/stlport/${P}.tar.bz2" +LICENSE="as-is" +SLOT="0" +IUSE="boost" + +DEPEND="boost? ( dev-libs/boost )" +RDEPEND="${RDEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i \ + -e 's/\(OPT += \)-O2/\1/' \ + build/Makefiles/gmake/*cc.mak \ + || die "sed opts failed" + + sed -i \ + -e 's/_STLP_VENDOR_CSTD::wcsftime/::wcsftime/' \ + stlport/stl/_cwchar.h || die "sed failed" + +} + +src_compile() { + cat <<- EOF >> stlport/stl/config/user_config.h + #define _STLP_NATIVE_INCLUDE_PATH ../g++-v$(gcc-major-version) + EOF + + sed -i \ + -e "s/\(CC :=\) gcc/\1 $(tc-getCC)/" \ + -e "s/\(CXX :=\) c++/\1 $(tc-getCXX)/" \ + -e "s/^\(CFLAGS = \)/\1 ${CFLAGS} /" \ + -e "s/^\(CCFLAGS = \)/\1 ${CFLAGS} /" \ + build/Makefiles/gmake/gcc.mak || die "sed failed" + + cd "${S}/build/lib" + + local myconf + use boost && myconf="${myconf} --with-boost=${ROOT}usr/$(get_libdir)" + + # It's not an autoconf script + ./configure \ + ${myconf} \ + --with-extra-cxxflags="${CXXFLAGS}" || die "configure failed" + + cd "${S}" + + cat <<- EOF >> build/Makefiles/config.mak + CFLAGS := ${CFLAGS} + EOF + + emake \ + -C build/lib \ + -f gcc.mak \ + depend all || die "Compile failed" +} + +src_install() { + dolib.so build/lib/obj/*/*/libstlport*.so* || die "dolib.so failed" + + insinto /usr/include + doins -r stlport + + dodoc README etc/ChangeLog* etc/*.txt doc/* +} + +src_test() { + cd "${S}/build" + + sed -i \ + -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" \ + test/unit/gcc.mak || die "sed failed" + + emake -C test/unit -f gcc.mak || die "emake tests failed" + + export LD_LIBRARY_PATH="./lib/obj/gcc/so_stlg" + ./test/unit/obj/gcc/so_stlg/stl_unit_test || die "unit tests failed" +} diff --git a/dev-libs/STLport/files/digest-STLport-5.1.0 b/dev-libs/STLport/files/digest-STLport-5.1.0 new file mode 100644 index 000000000000..ab1fefb80536 --- /dev/null +++ b/dev-libs/STLport/files/digest-STLport-5.1.0 @@ -0,0 +1,3 @@ +MD5 dcf079313e7e0d7870307b74b658bb81 STLport-5.1.0.tar.bz2 664143 +RMD160 b49180f575315004ee83c7673f9b73ff23b03f2c STLport-5.1.0.tar.bz2 664143 +SHA256 bafaf651679c1ab95a3d2ed54d6410915a047a617e4c9b8dbcb1b6fc3ce95e67 STLport-5.1.0.tar.bz2 664143