From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/widelands/
Date: Thu, 3 Jun 2021 16:25:43 +0000 (UTC) [thread overview]
Message-ID: <1622737398.17f983aa1dd8f400b7da03a3e03bf137911115b5.ionen@gentoo> (raw)
commit: 17f983aa1dd8f400b7da03a3e03bf137911115b5
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 3 15:13:36 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Jun 3 16:23:18 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f983aa
games-strategy/widelands: update live ebuild
Same as 0.21 but with new dependency on curl.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-strategy/widelands/widelands-9999.ebuild | 91 +++++++++-----------------
1 file changed, 32 insertions(+), 59 deletions(-)
diff --git a/games-strategy/widelands/widelands-9999.ebuild b/games-strategy/widelands/widelands-9999.ebuild
index d258fbdebb2..8eede6cd3de 100644
--- a/games-strategy/widelands/widelands-9999.ebuild
+++ b/games-strategy/widelands/widelands-9999.ebuild
@@ -1,93 +1,66 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake python-any-r1 xdg
+inherit xdg cmake python-any-r1
-MY_PV="build$(ver_cut 2-)"
-MY_P="${PN}-${MY_PV/_/-}"
-
-DESCRIPTION="A game similar to Settlers 2"
+DESCRIPTION="Game similar to Settlers 2"
HOMEPAGE="https://www.widelands.org/"
-if [[ "${PV}" == *9999 ]] ; then
+if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/widelands/widelands.git"
else
- SRC_URI="https://launchpad.net/widelands/build$(ver_cut 2)/${MY_PV/_/-}/+download/${MY_P}.tar.bz2"
+ MY_PV="build$(ver_cut 2)"
+ MY_P="${PN}-${MY_PV}"
+
+ SRC_URI="https://launchpad.net/widelands/${MY_PV}/${MY_PV}/+download/${MY_P}-source.tar.gz"
S="${WORKDIR}/${MY_P}"
+
KEYWORDS="~amd64 ~x86"
fi
-LICENSE="GPL-2+"
+LICENSE="|| ( Apache-2.0 GPL-3 ) BitstreamVera CC-BY-SA-3.0 GPL-2 GPL-2+ MIT OFL-1.1 ZLIB"
SLOT="0"
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
RDEPEND="
- >=dev-libs/boost-1.48:=
dev-libs/icu:=
media-libs/glew:0=
media-libs/libglvnd
- media-libs/libpng:0=
- media-libs/libsdl2[video]
+ media-libs/libpng:=
+ media-libs/libsdl2[opengl,sound,video]
media-libs/sdl2-image[jpeg,png]
media-libs/sdl2-mixer[vorbis]
media-libs/sdl2-ttf
- sys-libs/zlib:=[minizip]"
-DEPEND="${RDEPEND}
- ${PYTHON_DEPS}
-"
+ net-misc/curl
+ sys-libs/zlib:=
+ virtual/libintl"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/boost"
BDEPEND="
- sys-devel/gettext
-"
-
-CMAKE_BUILD_TYPE="Release"
+ ${PYTHON_DEPS}
+ sys-devel/gettext"
PATCHES=(
- "${FILESDIR}/${PN}-0.20_rc1-cxxflags.patch"
+ "${FILESDIR}"/${PN}-0.20_rc1-cxxflags.patch
)
-src_prepare() {
- cmake_src_prepare
-
- sed -i -e 's:__ppc__:__PPC__:' src/map_io/s2map.cc || die
- # don't call gtk-update-icon-cache
- sed '/^find_program(GTK_UPDATE_ICON_CACHE/d' \
- -i xdg/CMakeLists.txt || die
-}
-
src_configure() {
- local WLDIR="${EPREFIX}/usr/share/${PN}"
- local mycmakeargs=(
- -DOPTION_BUILD_WEBSITE_TOOLS=OFF
-
- # -DUSE_XDG=ON breaks finding of datadir
- -DUSE_XDG=OFF
+ CMAKE_BUILD_TYPE="Release"
- # Upstream's cmake files are totally fscked up...
- # This just helps dealing with less crap in src_install
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
- -DWL_INSTALL_BASEDIR="${WLDIR}"
- -DWL_INSTALL_DATADIR="${WLDIR}/data"
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/bin
+ -DWL_INSTALL_BASEDIR="${EPREFIX}"/usr/share/doc/${PF}
+ -DWL_INSTALL_DATADIR="${EPREFIX}"/usr/share/${PN}
+ -DGTK_UPDATE_ICON_CACHE=OFF
+ -DOPTION_BUILD_TESTS=$(usex test)
)
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
- # upstream CMakeLists.txt file is totally bonkers
- local sharedir="${ED}/usr/share"
- dodir /usr/bin
- mv "${ED}"/usr/${PN} "${ED}"/usr/bin || die
- mv "${ED}"/share/* "${sharedir}" || die
- rmdir "${ED}"/share || die
- rm "${sharedir}"/${PN}/{COPYING,CREDITS,ChangeLog} || die
- mv "${sharedir}"/${PN}/VERSION "${sharedir}"/doc/${PF}/ || die
-
- #newicon data/images/logos/wl-ico-128.png ${PN}.png
- #make_desktop_entry ${PN} ${PN^}
+ cmake_src_configure
}
next reply other threads:[~2021-06-03 16:25 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-03 16:25 Ionen Wolkens [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-16 8:42 [gentoo-commits] repo/gentoo:master commit in: games-strategy/widelands/ Ionen Wolkens
2024-11-15 10:36 Ionen Wolkens
2024-11-15 10:36 Ionen Wolkens
2024-03-30 11:43 Ionen Wolkens
2024-03-30 11:43 Ionen Wolkens
2022-10-23 12:58 Ionen Wolkens
2022-10-23 12:58 Ionen Wolkens
2022-06-17 13:07 Jakov Smolić
2022-06-17 11:48 Jakov Smolić
2021-06-17 21:38 Ionen Wolkens
2021-06-15 11:37 Ionen Wolkens
2021-06-15 11:37 Ionen Wolkens
2021-06-08 7:10 Ionen Wolkens
2021-06-03 16:25 Ionen Wolkens
2021-06-03 16:25 Ionen Wolkens
2020-12-02 23:08 Marek Szuba
2020-03-13 20:25 Lars Wendler
2020-03-12 15:30 Lars Wendler
2020-03-12 15:30 Lars Wendler
2019-05-02 14:52 Lars Wendler
2017-05-03 20:25 David Seifert
2017-05-03 20:25 David Seifert
2016-08-05 0:23 Austin English
2016-05-13 14:51 Agostino Sarubbo
2016-01-13 6:34 Michael Sterrett
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1622737398.17f983aa1dd8f400b7da03a3e03bf137911115b5.ionen@gentoo \
--to=ionen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox