From: David Seifert Date: Sat, 16 Sep 2017 12:35:56 +0000 (+0200) Subject: dev-games/simgear: Fix boost TR1 header include X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4535ab51db127d0875f29075366e46e849f81656;p=gentoo.git dev-games/simgear: Fix boost TR1 header include Closes: https://bugs.gentoo.org/630234 Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- diff --git a/dev-games/simgear/files/simgear-2017.2.1-boost-1.65-tr1-removal.patch b/dev-games/simgear/files/simgear-2017.2.1-boost-1.65-tr1-removal.patch new file mode 100644 index 000000000000..a9ebe507cee4 --- /dev/null +++ b/dev-games/simgear/files/simgear-2017.2.1-boost-1.65-tr1-removal.patch @@ -0,0 +1,47 @@ +--- a/simgear/scene/material/Effect.cxx ++++ b/simgear/scene/material/Effect.cxx +@@ -32,7 +32,7 @@ + #include + #include + #include +-#include ++#include + + #include + #include +@@ -832,13 +832,13 @@ + + // XXX Should these be protected by a mutex? Probably + +-typedef tr1::unordered_map, ++typedef boost::unordered_map, + boost::hash, ProgramKey::EqualTo> + ProgramMap; + ProgramMap programMap; + ProgramMap resolvedProgramMap; // map with resolved shader file names + +-typedef tr1::unordered_map, boost::hash > ++typedef boost::unordered_map, boost::hash > + ShaderMap; + ShaderMap shaderMap; + +--- a/simgear/scene/material/Effect.hxx ++++ b/simgear/scene/material/Effect.hxx +@@ -19,7 +19,7 @@ + + #include + #include +-#include ++#include + + #include + +@@ -127,7 +127,7 @@ + bool operator()(const Key& lhs, const Key& rhs) const; + }; + }; +- typedef std::tr1::unordered_map, ++ typedef boost::unordered_map, + boost::hash, Key::EqualTo> Cache; + Cache* getCache() + { diff --git a/dev-games/simgear/simgear-2017.2.1.ebuild b/dev-games/simgear/simgear-2017.2.1.ebuild index fcdd831b3043..10aad3a8c38b 100644 --- a/dev-games/simgear/simgear-2017.2.1.ebuild +++ b/dev-games/simgear/simgear-2017.2.1.ebuild @@ -3,15 +3,15 @@ EAPI=6 -inherit eutils cmake-utils toolchain-funcs +inherit cmake-utils toolchain-funcs DESCRIPTION="Development library for simulation games" HOMEPAGE="http://www.simgear.org/" SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2" LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" SLOT="0" +KEYWORDS="~amd64 ~x86" IUSE="+dns debug gdal openmp subversion test" COMMON_DEPEND=" @@ -31,12 +31,17 @@ RDEPEND="${COMMON_DEPEND} subversion? ( dev-vcs/subversion ) " -PATCHES=( "${FILESDIR}/simgear-2017.2.1-gdal-underlinking.patch" ) - -DOCS=(AUTHORS ChangeLog NEWS README Thanks) +PATCHES=( + "${FILESDIR}"/${PN}-2017.2.1-gdal-underlinking.patch + "${FILESDIR}"/${PN}-2017.2.1-boost-1.65-tr1-removal.patch +) pkg_pretend() { - use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } src_configure() {