From cdc9faaa4d7f8fe7075cfff56e882ae81b5f8286 Mon Sep 17 00:00:00 2001 From: NP-Hardass Date: Mon, 4 Dec 2017 12:39:51 -0500 Subject: games-strategy/freeorion: Switch to python-single-r1 from python-any-r1 Package-Manager: Portage-2.3.14, Repoman-2.3.6 --- .../freeorion/freeorion-0.4.7.1-r1.ebuild | 83 ---------------------- .../freeorion/freeorion-0.4.7.1-r2.ebuild | 83 ++++++++++++++++++++++ games-strategy/freeorion/freeorion-9999.ebuild | 6 +- 3 files changed, 86 insertions(+), 86 deletions(-) delete mode 100644 games-strategy/freeorion/freeorion-0.4.7.1-r1.ebuild create mode 100644 games-strategy/freeorion/freeorion-0.4.7.1-r2.ebuild (limited to 'games-strategy/freeorion') diff --git a/games-strategy/freeorion/freeorion-0.4.7.1-r1.ebuild b/games-strategy/freeorion/freeorion-0.4.7.1-r1.ebuild deleted file mode 100644 index d0d5447656d7..000000000000 --- a/games-strategy/freeorion/freeorion-0.4.7.1-r1.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -inherit cmake-utils python-any-r1 gnome2-utils - -DESCRIPTION="A free turn-based space empire and galactic conquest game" -HOMEPAGE="http://www.freeorion.org" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" -else - MY_PV="${PV/_/-}" - SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" - S="${WORKDIR}/${PN}-${MY_PV}" -fi - -LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" -SLOT="0" -IUSE="" - -RDEPEND=" - >=dev-libs/boost-1.56:=[python,threads] - media-libs/freealut - media-libs/freetype - media-libs/glew:* - media-libs/libsdl2 - >=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 - sys-libs/zlib - virtual/opengl - !dev-games/gigi" - # Use bundled gigi as of freeorion-0.4.3 - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig" - -pkg_setup() { - # build system is using FindPythonLibs.cmake which needs python:2 - python-any-r1_pkg_setup -} - -src_prepare() { - sed -e "s/-O3//" -i CMakeLists.txt || die - - cmake-utils_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DCMAKE_BUILD_TYPEE=Release - -DRELEASE_COMPILE_FLAGS="" - -DCMAKE_SKIP_RPATH=ON - ) - - append-cppflags -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL - - cmake-utils_src_configure -} - -src_install() { - cmake-utils_src_install - dodoc ChangeLog.md - - newenvd "${FILESDIR}/${PN}.envd" 99${PN} -} - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/games-strategy/freeorion/freeorion-0.4.7.1-r2.ebuild b/games-strategy/freeorion/freeorion-0.4.7.1-r2.ebuild new file mode 100644 index 000000000000..59dd595f13e8 --- /dev/null +++ b/games-strategy/freeorion/freeorion-0.4.7.1-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit cmake-utils python-single-r1 gnome2-utils + +DESCRIPTION="A free turn-based space empire and galactic conquest game" +HOMEPAGE="http://www.freeorion.org" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/freeorion/freeorion.git" +else + MY_PV="${PV/_/-}" + SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN}-${MY_PV}" +fi + +LICENSE="GPL-2 LGPL-2.1 CC-BY-SA-3.0" +SLOT="0" +IUSE="" + +RDEPEND=" + >=dev-libs/boost-1.56:=[python,threads,${PYTHON_USEDEP}] + media-libs/freealut + media-libs/freetype + media-libs/glew:* + media-libs/libsdl2 + >=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 + sys-libs/zlib + virtual/opengl + !dev-games/gigi" + # Use bundled gigi as of freeorion-0.4.3 + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig" + +pkg_setup() { + # build system is using FindPythonLibs.cmake which needs python:2 + python-single-r1_pkg_setup +} + +src_prepare() { + sed -e "s/-O3//" -i CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPEE=Release + -DRELEASE_COMPILE_FLAGS="" + -DCMAKE_SKIP_RPATH=ON + ) + + append-cppflags -DBOOST_OPTIONAL_CONFIG_USE_OLD_IMPLEMENTATION_OF_OPTIONAL + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc ChangeLog.md + + newenvd "${FILESDIR}/${PN}.envd" 99${PN} +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-strategy/freeorion/freeorion-9999.ebuild b/games-strategy/freeorion/freeorion-9999.ebuild index d0d5447656d7..59dd595f13e8 100644 --- a/games-strategy/freeorion/freeorion-9999.ebuild +++ b/games-strategy/freeorion/freeorion-9999.ebuild @@ -4,7 +4,7 @@ EAPI=6 PYTHON_COMPAT=( python2_7 ) -inherit cmake-utils python-any-r1 gnome2-utils +inherit cmake-utils python-single-r1 gnome2-utils DESCRIPTION="A free turn-based space empire and galactic conquest game" HOMEPAGE="http://www.freeorion.org" @@ -24,7 +24,7 @@ SLOT="0" IUSE="" RDEPEND=" - >=dev-libs/boost-1.56:=[python,threads] + >=dev-libs/boost-1.56:=[python,threads,${PYTHON_USEDEP}] media-libs/freealut media-libs/freetype media-libs/glew:* @@ -46,7 +46,7 @@ DEPEND="${RDEPEND} pkg_setup() { # build system is using FindPythonLibs.cmake which needs python:2 - python-any-r1_pkg_setup + python-single-r1_pkg_setup } src_prepare() { -- cgit v1.2.3-65-gdbad