pkgsrc-WIP-changes archive

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

pipes-c: Import pipes-c-1.0.1 as games/pipes-c



Module Name:	pkgsrc-wip
Committed By:	Travis Paul <tr%vispaul.me@localhost>
Pushed By:	tpaul
Date:		Mon Apr 23 08:15:36 2018 +0000
Changeset:	02237f2d63b7bb76f2ce482ca114a47b4812043f

Modified Files:
	Makefile
Added Files:
	pipes-c/DESCR
	pipes-c/Makefile
	pipes-c/PLIST
	pipes-c/distinfo
	pipes-c/patches/patch-src_pipe.c
	pipes-c/patches/patch-src_pipe.h

Log Message:
pipes-c: Import pipes-c-1.0.1 as games/pipes-c

Pipes is an small C application written to mimic
the windows "pipes" screensaver in a terminal.

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

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

diffstat:
 Makefile                         |  1 +
 pipes-c/DESCR                    |  2 ++
 pipes-c/Makefile                 | 17 +++++++++++++++++
 pipes-c/PLIST                    |  2 ++
 pipes-c/distinfo                 |  8 ++++++++
 pipes-c/patches/patch-src_pipe.c | 19 +++++++++++++++++++
 pipes-c/patches/patch-src_pipe.h | 18 ++++++++++++++++++
 7 files changed, 67 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index e8430306f0..b723c418e5 100644
--- a/Makefile
+++ b/Makefile
@@ -2774,6 +2774,7 @@ SUBDIR+=	pinball
 SUBDIR+=	pinkpony
 SUBDIR+=	pioneer
 SUBDIR+=	piwik
+SUBDIR+=	pipes-c
 SUBDIR+=	pixz
 SUBDIR+=	pizza
 SUBDIR+=	pjproject
diff --git a/pipes-c/DESCR b/pipes-c/DESCR
new file mode 100644
index 0000000000..fc30c5fcb2
--- /dev/null
+++ b/pipes-c/DESCR
@@ -0,0 +1,2 @@
+A small piece of software designed to emulate the windows "pipes" screensaver
+in a terminal window.
diff --git a/pipes-c/Makefile b/pipes-c/Makefile
new file mode 100644
index 0000000000..13ba016efb
--- /dev/null
+++ b/pipes-c/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	pipes.c
+DISTNAME=	pipes-c-1.1.0
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=pipeseroni/}
+GITHUB_RELEASE=	v1.1.0
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	tr%vispaul.me@localhost
+HOMEPAGE=	https://github.com/pipeseroni/pipes.c/
+COMMENT=	Mimics the "pipes" screensaver in a terminal window
+LICENSE=	gnu-gpl-v3
+
+GNU_CONFIGURE=  yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/pipes-c/PLIST b/pipes-c/PLIST
new file mode 100644
index 0000000000..5f36dbc335
--- /dev/null
+++ b/pipes-c/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/cpipes
diff --git a/pipes-c/distinfo b/pipes-c/distinfo
new file mode 100644
index 0000000000..98734dec0a
--- /dev/null
+++ b/pipes-c/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (pipes.c/pipes-c-1.1.0.tar.gz) = a0e2ebf294358d6781837476b34157fb753309e7
+RMD160 (pipes.c/pipes-c-1.1.0.tar.gz) = 2745285ab146bf942acd99ec1c29bd2c8179bb4d
+SHA512 (pipes.c/pipes-c-1.1.0.tar.gz) = c3ccac2fa65d9a34fed9cc283098b3221d49c2e12d74ec6582db94cbad35f154b7309a5c4919b6422a12c02bbc4ffac125ae56fbc3e6650db91cf2d44d4514ab
+Size (pipes.c/pipes-c-1.1.0.tar.gz) = 142924 bytes
+SHA1 (patch-src_pipe.c) = 81f98cea55a80a83e049b50f9ce610b054f050da
+SHA1 (patch-src_pipe.h) = a4169f207b670923f8923fec31e62bd6d839d096
diff --git a/pipes-c/patches/patch-src_pipe.c b/pipes-c/patches/patch-src_pipe.c
new file mode 100644
index 0000000000..3a649433fa
--- /dev/null
+++ b/pipes-c/patches/patch-src_pipe.c
@@ -0,0 +1,19 @@
+$NetBSD$
+# This enum has a symbol (UP) which conflicts with termcap.h
+# https://github.com/pipeseroni/pipes.c/pull/25
+--- src/pipe.c.orig	2018-04-16 23:07:46.000000000 +0000
++++ src/pipe.c
+@@ -62,6 +62,13 @@ static size_t charwidth(const char *pipe
+ //              Right    Down   Left    Up
+ char states[][2] = {{1,0}, {0,1}, {-1,0}, {0,-1}};
+ 
++enum DIRECTIONS {
++    RIGHT = 0,
++    DOWN = 1,
++    LEFT = 2,
++    UP = 3
++};
++
+ const char * transition_char(char **list, int row, int col){
+     return list[row * 4 + col];
+ }
diff --git a/pipes-c/patches/patch-src_pipe.h b/pipes-c/patches/patch-src_pipe.h
new file mode 100644
index 0000000000..d07423568d
--- /dev/null
+++ b/pipes-c/patches/patch-src_pipe.h
@@ -0,0 +1,18 @@
+$NetBSD$
+# This enum has a symbol (UP) which conflicts with termcap.h
+# https://github.com/pipeseroni/pipes.c/pull/25
+--- src/pipe.h.orig	2018-04-16 23:07:46.000000000 +0000
++++ src/pipe.h
+@@ -25,12 +25,6 @@ struct pipe {
+     int x, y;
+ };
+ 
+-enum DIRECTIONS {
+-    RIGHT = 0,
+-    DOWN = 1,
+-    LEFT = 2,
+-    UP = 3
+-};
+ struct palette;
+ 
+ void init_pipe(struct pipe *pipe, struct palette *palette,


Home | Main Index | Thread Index | Old Index