pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import nudoku 2.0.0 as wip/nudoku.



Module Name:	pkgsrc-wip
Committed By:	Frederic Cambus <fcambus%NetBSD.org@localhost>
Pushed By:	fcambus
Date:		Thu Dec 12 22:24:36 2019 +0100
Changeset:	634008acdd3d8c6abee61b785304db1453730337

Added Files:
	nudoku/DESCR
	nudoku/Makefile
	nudoku/PLIST
	nudoku/distinfo
	nudoku/patches/patch-src_main.c

Log Message:
Import nudoku 2.0.0 as wip/nudoku.

nudoku is a ncurses based sudoku game. Perfect to relax a little or
just waste some time when you are on the console.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=634008acdd3d8c6abee61b785304db1453730337

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 nudoku/DESCR                    |  2 ++
 nudoku/Makefile                 | 28 ++++++++++++++++++++++++++++
 nudoku/PLIST                    |  7 +++++++
 nudoku/distinfo                 |  7 +++++++
 nudoku/patches/patch-src_main.c | 14 ++++++++++++++
 5 files changed, 58 insertions(+)

diffs:
diff --git a/nudoku/DESCR b/nudoku/DESCR
new file mode 100644
index 0000000000..08034f97ed
--- /dev/null
+++ b/nudoku/DESCR
@@ -0,0 +1,2 @@
+nudoku is a ncurses based sudoku game. Perfect to relax a little or
+just waste some time when you are on the console.
diff --git a/nudoku/Makefile b/nudoku/Makefile
new file mode 100644
index 0000000000..189f95e329
--- /dev/null
+++ b/nudoku/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+DISTNAME=	nudoku-2.0.0
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jubalh/}
+GITHUB_RELEASE=	2.0.0
+
+MAINTAINER=	fcambus%NetBSD.org@localhost
+HOMEPAGE=	https://jubalh.github.io/nudoku/
+COMMENT=	Ncurses based sudoku game
+LICENSE=	gnu-gpl-v3
+
+# Fix gettext includes
+SUBST_CLASSES+=         includes
+SUBST_STAGE.includes=   post-configure
+SUBST_MESSAGE.includes= Fix gettext includes
+SUBST_FILES.includes=   src/main.c
+SUBST_FILES.includes+=  src/sudoku.c
+SUBST_SED.includes+=    -e 's,"gettext.h",<libintl.h>,'
+
+GNU_CONFIGURE=		yes
+USE_PKGLOCALEDIR=	yes
+
+FAKE_NCURSES=		yes
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/nudoku/PLIST b/nudoku/PLIST
new file mode 100644
index 0000000000..0412120a3a
--- /dev/null
+++ b/nudoku/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+bin/nudoku
+man/man6/nudoku.6
+share/locale/de/LC_MESSAGES/nudoku.mo
+share/locale/es/LC_MESSAGES/nudoku.mo
+share/locale/fr/LC_MESSAGES/nudoku.mo
+share/locale/ru/LC_MESSAGES/nudoku.mo
diff --git a/nudoku/distinfo b/nudoku/distinfo
new file mode 100644
index 0000000000..6be9ba0ef3
--- /dev/null
+++ b/nudoku/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (nudoku-2.0.0.tar.gz) = 4eb056fa5d58551d7b57a2698428ddfcc521a9c5
+RMD160 (nudoku-2.0.0.tar.gz) = ebe12ecf0a2f51a322d512e312e969c44cace8d4
+SHA512 (nudoku-2.0.0.tar.gz) = acf0a5714fc767bb580c97d5ceb586db5390ce7a1428e56c1e7413af653cd784939dc5ae3681c4ad19fde0a3ee5e941f1a4466bc35eac4bdf802f0b9ba6b025f
+Size (nudoku-2.0.0.tar.gz) = 203292 bytes
+SHA1 (patch-src_main.c) = 96af8db25c7ea2839045be95cbcc99b1beee4609
diff --git a/nudoku/patches/patch-src_main.c b/nudoku/patches/patch-src_main.c
new file mode 100644
index 0000000000..49a4c66b9c
--- /dev/null
+++ b/nudoku/patches/patch-src_main.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Add missing <locale.h> header, for setlocale.
+
+--- src/main.c.orig	2019-12-12 21:05:55.068322791 +0000
++++ src/main.c
+@@ -20,6 +20,7 @@ along with this program. If not, see <ht
+ 
+ /* INCLUDES */
+ #include "gettext.h"			/* gettext */
++#include <locale.h>				/* setlocale */
+ #include <stdlib.h>				/* rand, srand */
+ #include <unistd.h>				/* getopt */
+ #include <ncurses.h>			/* ncurses */


Home | Main Index | Thread Index | Old Index