commit: 75d40c70188a7ada863876894569a4eecacca863 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Mon Jul 12 20:37:38 2021 +0000 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> CommitDate: Mon Jul 12 20:45:59 2021 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=75d40c70
games-strategy/curseofwar: remove old Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> .../curseofwar/curseofwar-1.2.0-r1.ebuild | 59 ---------------------- ...urseofwar-1.2.0-fix-gcc-error-compilation.patch | 30 ----------- 2 files changed, 89 deletions(-) diff --git a/games-strategy/curseofwar/curseofwar-1.2.0-r1.ebuild b/games-strategy/curseofwar/curseofwar-1.2.0-r1.ebuild deleted file mode 100644 index 86934a4..0000000 --- a/games-strategy/curseofwar/curseofwar-1.2.0-r1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cmake-utils - -DESCRIPTION="A fast-paced action strategy game implemented using ncurses user interface." -HOMEPAGE="https://github.com/a-nikolaev/curseofwar/wiki" -SRC_URI="https://github.com/a-nikolaev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="ncurses sdl" -REQUIRED_USE="|| ( ncurses sdl )" - -DEPEND="ncurses? ( sys-libs/ncurses:0 ) - sdl? ( media-libs/libsdl )" -RDEPEND="${DEPEND}" - -src_prepare() { - default - sed -i -e "s:%VERSION%:${PV}:g" ${PN}{,-sdl}.6 - sed -i -e "s:/usr/local/share/:/usr/share/:g" path.c - sed -i -e "s:TARGET_LINK_LIBRARIES( curseofwar \${COMMON_LIBS} ncurses ):TARGET_LINK_LIBRARIES( curseofwar \${COMMON_LIBS} ncurses tinfo ):g" CMakeLists.txt - epatch "${FILESDIR}/${P}-fix-gcc-error-compilation.patch" - cmake-utils_src_prepare -} - -src_configure() { - mycmakeargs=( - -DCW_NCURSE_FRONTEND=$(usex ncurses) - -DCW_SDL_FRONTEND=$(usex sdl) - -DCW_SDL_MULTIPLAYER=$(usex sdl) - ) - cmake-utils_src_configure -} - -src_compile() { - cmake-utils_src_compile -} - -src_install() { - doicon pixmaps/${PN}-32x32.xpm - if use ncurses ; then - dobin "${BUILD_DIR}/${PN}" - make_desktop_entry ${PN} "Curse of War" ${PN}-32x32 "Game;StrategyGame" "Terminal=true" - doman ${PN}.6 - fi - if use sdl ; then - dobin "${BUILD_DIR}/${PN}-sdl" - make_desktop_entry ${PN}-sdl "Curse of War (SDL)" ${PN}-32x32 - doman ${PN}-sdl.6 - insinto "/usr/share/${PN}" - doins -r images - fi - dodoc CHANGELOG README -} diff --git a/games-strategy/curseofwar/files/curseofwar-1.2.0-fix-gcc-error-compilation.patch b/games-strategy/curseofwar/files/curseofwar-1.2.0-fix-gcc-error-compilation.patch deleted file mode 100644 index d2593c7..0000000 --- a/games-strategy/curseofwar/files/curseofwar-1.2.0-fix-gcc-error-compilation.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 5d4865e03f96b73af602c6fb11a618195dc6d00c Mon Sep 17 00:00:00 2001 -From: "Azamat H. Hackimov" <[email protected]> -Date: Wed, 30 Oct 2013 23:19:29 +0600 -Subject: [PATCH] =?UTF-8?q?Fixed=20GCC=20error=20compilation=20Fixed=20"ex?= - =?UTF-8?q?pected=20primary-expression=20before=20=C2=AB.=C2=BB=20token"?= - =?UTF-8?q?=20error.?= -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - ---- - output-sdl.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/output-sdl.c b/output-sdl.c -index 7f67c5c..54f652b 100644 ---- a/output-sdl.c -+++ b/output-sdl.c -@@ -380,7 +380,7 @@ void output_sdl (SDL_Surface *tileset, SDL_Surface *typeface, SDL_Surface *uisur - /* line */ - int line_width=555; - struct SDL_Rect src_line_rect = {0, 0, line_width, 1}; -- struct SDL_Rect dst_line_rect = {.x=TILE_WIDTH + 75*TYPE_WIDTH/2 - line_width/2, .y=screen_y + (TYPE_HEIGHT*5/2), .w=line_width, .h=1}; -+ struct SDL_Rect dst_line_rect = {TILE_WIDTH + 75*TYPE_WIDTH/2 - line_width/2, screen_y + (TYPE_HEIGHT*5/2), line_width, 1}; - SDL_BlitSurface(uisurf, &src_line_rect, screen, &dst_line_rect); - - } --- -1.8.1.5 -
