* [gentoo-commits] repo/gentoo:master commit in: games-board/natch/, games-board/natch/files/
@ 2016-08-05 0:23 Austin English
0 siblings, 0 replies; 2+ messages in thread
From: Austin English @ 2016-08-05 0:23 UTC (permalink / raw
To: gentoo-commits
commit: 20a6672dbb6439e59846df3b6af4555c4f8bc1f6
Author: Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 4 18:38:19 2016 +0000
Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Fri Aug 5 00:22:42 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20a6672d
games-board/natch: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
games-board/natch/files/natch-2.4-format.patch | 4 ++--
games-board/natch/natch-2.4-r1.ebuild | 30 ++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/games-board/natch/files/natch-2.4-format.patch b/games-board/natch/files/natch-2.4-format.patch
index cc2b320..38e2b79 100644
--- a/games-board/natch/files/natch-2.4-format.patch
+++ b/games-board/natch/files/natch-2.4-format.patch
@@ -1,5 +1,5 @@
---- src/pcpjtool.c.old 2014-10-17 08:38:21.547119790 +0200
-+++ src/pcpjtool.c 2014-10-17 08:42:04.949035648 +0200
+--- a/src/pcpjtool.c 2014-10-17 08:38:21.547119790 +0200
++++ b/src/pcpjtool.c 2014-10-17 08:42:04.949035648 +0200
@@ -45,7 +45,7 @@
int nb_libre = 0;
const char* separation_line = "+---+---+---+---+---+---+---+---+\n";
diff --git a/games-board/natch/natch-2.4-r1.ebuild b/games-board/natch/natch-2.4-r1.ebuild
new file mode 100644
index 0000000..239bac1
--- /dev/null
+++ b/games-board/natch/natch-2.4-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+MY_P="Natch-${PV}"
+DESCRIPTION="A program to solve chess proof games"
+HOMEPAGE="http://natch.free.fr/Natch.html"
+SRC_URI="http://natch.free.fr/Natch/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="sys-libs/ncurses:0"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-format.patch
+)
+
+src_install() {
+ newbin src/Natch natch
+ dodoc AUTHORS ChangeLog NEWS README THANKS example.txt
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: games-board/natch/, games-board/natch/files/
@ 2019-07-17 22:08 Lars Wendler
0 siblings, 0 replies; 2+ messages in thread
From: Lars Wendler @ 2019-07-17 22:08 UTC (permalink / raw
To: gentoo-commits
commit: dcbb79e33eaf7bc0ab2127d669052a213a871aee
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 22:08:15 2019 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Jul 17 22:08:28 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcbb79e3
games-board/natch: Fixed build with sys-libs/ncurses[tinfo]
Closes: https://bugs.gentoo.org/690078
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
games-board/natch/files/natch-2.4-tinfo.patch | 39 +++++++++++++++++++++++++++
games-board/natch/natch-2.4-r1.ebuild | 20 +++++++++-----
2 files changed, 53 insertions(+), 6 deletions(-)
diff --git a/games-board/natch/files/natch-2.4-tinfo.patch b/games-board/natch/files/natch-2.4-tinfo.patch
new file mode 100644
index 00000000000..92646aa54bb
--- /dev/null
+++ b/games-board/natch/files/natch-2.4-tinfo.patch
@@ -0,0 +1,39 @@
+https://bugs.gentoo.org/690078
+
+--- Natch-2.4/configure.in
++++ Natch-2.4/configure.in
+@@ -25,17 +25,19 @@
+ dnl Checks for programs.
+ AC_PROG_CC
+ AC_PATH_PROGS(GENGETOPT, gengetopt)
++PKG_PROG_PKG_CONFIG
+
+ dnl for txtc (Text-to-C compiler)
+ AC_PROG_AWK
+ LF_PROG_TXTC
+
+ dnl Checks for libraries.
+-AC_SEARCH_LIBS(
+- initscr,
+- ncurses curses,
++PKG_CHECK_MODULES(NCURSES, ncurses,[
+ AC_DEFINE(HAVE_LIBNCURSES,,
+- Define if you have curses library for visual mode. ), )
++ Define if you have curses library for visual mode. )
++ ],[
++ AC_MSG_ERROR([Cannot find ncurses lib])
++])
+
+ dnl Replace `main' with a function in -lpc:
+ dnl AC_CHECK_LIB(pc, main)
+--- Natch-2.4/src/Makefile.am
++++ Natch-2.4/src/Makefile.am
+@@ -29,7 +29,7 @@
+
+ Natch_SOURCES = main.c main.h types.h cmdline.c cmdline.h distance.c distance.h dis_type.h pcpj.c pcpj.h distimmo.c distimmo.h pcpj_deb.c pcpj_deb.h pcpjcapt.c pcpjcapt.h trajet.c trajet.h explorat.c explorat.h expltype.h pcpjcoup.c pcpjcoup.h hash.c hash.h pcpjtool.c pcpjtool.h myHashTable.c myHashTable.h langues.c langues.h screen.c screen.h common.h moves_order.c moves_order.h test_moves_order.c test_moves_order.h twin_squares.c twin_squares.h precise_trajectories.c precise_trajectories.h captInitSquare.c captInitSquare.h piece.c piece.h reportbugs.text copyright.text
+
+-Natch_LDADD = @LIBOBJS@
++Natch_LDADD = @LIBOBJS@ $(NCURSES_LIBS)
+
+ AM_CFLAGS = -Wall -fshort-enums -DNDEBUG -O3
+ #AM_CFLAGS = -Wall -fshort-enums
diff --git a/games-board/natch/natch-2.4-r1.ebuild b/games-board/natch/natch-2.4-r1.ebuild
index 8b263b424b3..0e81bbc485f 100644
--- a/games-board/natch/natch-2.4-r1.ebuild
+++ b/games-board/natch/natch-2.4-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit eutils
+EAPI=7
+
+inherit autotools
MY_P="Natch-${PV}"
DESCRIPTION="A program to solve chess proof games"
@@ -14,15 +15,22 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-DEPEND="sys-libs/ncurses:0"
-RDEPEND=${DEPEND}
+DEPEND="sys-libs/ncurses:0="
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${P}-format.patch
+ "${FILESDIR}"/${P}-tinfo.patch
)
+src_prepare() {
+ default
+ eautoreconf
+}
+
src_install() {
newbin src/Natch natch
dodoc AUTHORS ChangeLog NEWS README THANKS example.txt
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-17 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-17 22:08 [gentoo-commits] repo/gentoo:master commit in: games-board/natch/, games-board/natch/files/ Lars Wendler
-- strict thread matches above, loose matches on Subject: below --
2016-08-05 0:23 Austin English
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox