From da26980f5eabddd543500677ca180aa945ef765d Mon Sep 17 00:00:00 2001 From: Adam Feldman Date: Sat, 9 May 2020 11:28:38 -0400 Subject: games-strategy/freeorion: Fix missing boost[nls] dep Closes: https://bugs.gentoo.org/721854 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Adam Feldman --- .../freeorion/freeorion-0.4.9_p20200409-r1.ebuild | 77 ++++++++++++++++++++++ .../freeorion/freeorion-0.4.9_p20200409.ebuild | 77 ---------------------- 2 files changed, 77 insertions(+), 77 deletions(-) create mode 100644 games-strategy/freeorion/freeorion-0.4.9_p20200409-r1.ebuild delete mode 100644 games-strategy/freeorion/freeorion-0.4.9_p20200409.ebuild (limited to 'games-strategy/freeorion') diff --git a/games-strategy/freeorion/freeorion-0.4.9_p20200409-r1.ebuild b/games-strategy/freeorion/freeorion-0.4.9_p20200409-r1.ebuild new file mode 100644 index 000000000000..c1efcaa3e7c0 --- /dev/null +++ b/games-strategy/freeorion/freeorion-0.4.9_p20200409-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) +inherit cmake-utils python-single-r1 xdg + +DESCRIPTION="A free turn-based space empire and galactic conquest game" +HOMEPAGE="https://www.freeorion.org" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" +else + KEYWORDS="~amd64" + if [[ ${PV} = *_p* ]]; then + COMMIT="1570afb475763b13f5d2f434037ec907da812bb4" + SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${PV/_/-}" + fi +fi + +LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" +SLOT="0" +IUSE="dedicated" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + virtual/pkgconfig +" +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-libs/boost-1.67:=[nls,python,threads,${PYTHON_MULTI_USEDEP}] + ') + !dedicated? ( + media-libs/freealut + >=media-libs/freetype-2.5.5 + media-libs/glew:= + >=media-libs/libogg-1.1.3 + media-libs/libpng:0= + media-libs/libsdl2[X,opengl,video] + >=media-libs/libvorbis-1.1.2 + media-libs/openal + sci-physics/bullet + virtual/opengl + ) + sys-libs/zlib + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND}" + +src_prepare() { + sed -e "s/-O3//" -i CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_SKIP_RPATH=ON + -DBUILD_HEADLESS="$(usex dedicated)" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + newenvd "${FILESDIR}/${PN}.envd" 99${PN} +} diff --git a/games-strategy/freeorion/freeorion-0.4.9_p20200409.ebuild b/games-strategy/freeorion/freeorion-0.4.9_p20200409.ebuild deleted file mode 100644 index 048d1b8bf695..000000000000 --- a/games-strategy/freeorion/freeorion-0.4.9_p20200409.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python{3_6,3_7,3_8} ) -inherit cmake-utils python-single-r1 xdg - -DESCRIPTION="A free turn-based space empire and galactic conquest game" -HOMEPAGE="https://www.freeorion.org" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" -else - KEYWORDS="~amd64" - if [[ ${PV} = *_p* ]]; then - COMMIT="1570afb475763b13f5d2f434037ec907da812bb4" - SRC_URI="https://github.com/${PN}/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}-${COMMIT}" - else - SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/${PN}-${PV/_/-}" - fi -fi - -LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" -SLOT="0" -IUSE="dedicated" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -BDEPEND=" - virtual/pkgconfig -" -RDEPEND=" - $(python_gen_cond_dep ' - >=dev-libs/boost-1.67:=[python,threads,${PYTHON_MULTI_USEDEP}] - ') - !dedicated? ( - media-libs/freealut - >=media-libs/freetype-2.5.5 - media-libs/glew:= - >=media-libs/libogg-1.1.3 - media-libs/libpng:0= - media-libs/libsdl2[X,opengl,video] - >=media-libs/libvorbis-1.1.2 - media-libs/openal - sci-physics/bullet - virtual/opengl - ) - sys-libs/zlib - ${PYTHON_DEPS} -" -DEPEND="${RDEPEND}" - -src_prepare() { - sed -e "s/-O3//" -i CMakeLists.txt || die - - cmake-utils_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_BUILD_TYPE=Release - -DCMAKE_SKIP_RPATH=ON - -DBUILD_HEADLESS="$(usex dedicated)" - ) - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - - newenvd "${FILESDIR}/${PN}.envd" 99${PN} -} -- cgit v1.2.3-65-gdbad