public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gamerlay:master commit in: games-strategy/curseofwar/files/, games-strategy/curseofwar/
@ 2013-10-30 17:46 Azamat H. Hackimov
  0 siblings, 0 replies; 2+ messages in thread
From: Azamat H. Hackimov @ 2013-10-30 17:46 UTC (permalink / raw
  To: gentoo-commits

commit:     ac151d59332d5fed657ccbf56d69f2c713d593f8
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Wed Oct 30 17:45:23 2013 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Wed Oct 30 17:45:23 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=ac151d59

[games-strategy/curseofwar] Bump to 1.2.0.

---
 games-strategy/curseofwar/curseofwar-1.1.8.ebuild  | 29 -----------
 games-strategy/curseofwar/curseofwar-1.2.0.ebuild  | 57 ++++++++++++++++++++++
 ...urseofwar-1.2.0-fix-gcc-error-compilation.patch | 30 ++++++++++++
 3 files changed, 87 insertions(+), 29 deletions(-)

diff --git a/games-strategy/curseofwar/curseofwar-1.1.8.ebuild b/games-strategy/curseofwar/curseofwar-1.1.8.ebuild
deleted file mode 100644
index 2bd573a..0000000
--- a/games-strategy/curseofwar/curseofwar-1.1.8.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-
-inherit games
-
-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=""
-
-DEPEND="sys-libs/ncurses"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	sed -i -e "s:%VERSION%:${PV}:g" ${PN}.6
-}
-
-src_install() {
-	dogamesbin ${PN}
-	doman ${PN}.6
-	dodoc CHANGELOG README
-}

diff --git a/games-strategy/curseofwar/curseofwar-1.2.0.ebuild b/games-strategy/curseofwar/curseofwar-1.2.0.ebuild
new file mode 100644
index 0000000..97a86c1
--- /dev/null
+++ b/games-strategy/curseofwar/curseofwar-1.2.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cmake-utils games
+
+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 )
+	sdl? ( media-libs/libsdl )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+	sed -i -e "s:%VERSION%:${PV}:g" ${PN}{,-sdl}.6
+	sed -i -e "s:/usr/local/share/:${GAMES_DATADIR}/:g" path.c
+	epatch "${FILESDIR}/${P}-fix-gcc-error-compilation.patch"
+}
+
+src_configure() {
+	mycmakeargs=(
+		$(cmake-utils_use ncurses CW_NCURSE_FRONTEND)
+		$(cmake-utils_use sdl CW_SDL_FRONTEND)
+		$(cmake-utils_use sdl CW_SDL_MULTIPLAYER)
+	)
+	cmake-utils_src_configure
+}
+
+src_compile() {
+	cmake-utils_src_compile
+}
+
+src_install() {
+	doicon pixmaps/${PN}-32x32.xpm
+	if use ncurses ; then
+		dogamesbin "${BUILD_DIR}/${PN}"
+		make_desktop_entry ${PN} "Curse of War" ${PN}-32x32 "Game;StrategyGame" "Terminal=true"
+		doman ${PN}.6
+	fi
+	if use sdl ; then
+		dogamesbin "${BUILD_DIR}/${PN}-sdl"
+		make_desktop_entry ${PN}-sdl "Curse of War (SDL)" ${PN}-32x32
+		doman ${PN}-sdl.6
+		insinto "${GAMES_DATADIR}/${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
new file mode 100644
index 0000000..d2593c7
--- /dev/null
+++ b/games-strategy/curseofwar/files/curseofwar-1.2.0-fix-gcc-error-compilation.patch
@@ -0,0 +1,30 @@
+From 5d4865e03f96b73af602c6fb11a618195dc6d00c Mon Sep 17 00:00:00 2001
+From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
+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
+


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/gamerlay:master commit in: games-strategy/curseofwar/files/, games-strategy/curseofwar/
@ 2021-07-12 20:47 Azamat H. Hackimov
  0 siblings, 0 replies; 2+ messages in thread
From: Azamat H. Hackimov @ 2021-07-12 20:47 UTC (permalink / raw
  To: gentoo-commits

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" <azamat.hackimov@gmail.com>
-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
-


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-12 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30 17:46 [gentoo-commits] proj/gamerlay:master commit in: games-strategy/curseofwar/files/, games-strategy/curseofwar/ Azamat H. Hackimov
  -- strict thread matches above, loose matches on Subject: below --
2021-07-12 20:47 Azamat H. Hackimov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox