UPDATE: games/vitetris

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UPDATE: games/vitetris

Ryan Freeman
I forgot I had this laying around for awhile, updated
again to -current.  This updates vitetris to 0.57,
adds some desktop files so I added run depends for
devel/desktop-file-utils, is this correct?

builds and runs fine here on i386 and amd64

-ryan


? vitetris.diff
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile 11 Mar 2013 11:07:41 -0000 1.4
+++ Makefile 12 Jul 2013 06:34:35 -0000
@@ -1,8 +1,7 @@
 # $OpenBSD: Makefile,v 1.4 2013/03/11 11:07:41 espie Exp $
 
 COMMENT = terminal-based tetris clone in vein of nintendo tetris
-DISTNAME = vitetris-0.51
-REVISION = 0
+DISTNAME = vitetris-0.57
 CATEGORIES = games
 
 HOMEPAGE = http://victornils.net/tetris/
@@ -15,6 +14,8 @@ PERMIT_PACKAGE_CDROM = Yes
 WANTLIB = c ncurses
 
 MASTER_SITES = http://victornils.net/tetris/
+
+RUN_DEPENDS = devel/desktop-file-utils
 
 CONFIGURE_STYLE = simple
 CONFIGURE_ARGS = --prefix=${PREFIX} \
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/vitetris/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 22 Sep 2008 12:43:31 -0000 1.1.1.1
+++ distinfo 12 Jul 2013 06:34:35 -0000
@@ -1,5 +1,2 @@
-MD5 (vitetris-0.51.tar.gz) = dnS1NgIROcEAYA3bmS/i3A==
-RMD160 (vitetris-0.51.tar.gz) = 4RxfP5JGI+o3/GvEYaj0bvvD1EM=
-SHA1 (vitetris-0.51.tar.gz) = 3x3XIoAVMhcBX9n07D+rchbb2KI=
-SHA256 (vitetris-0.51.tar.gz) = 0zl3QhCrekHAwL3WTFuPoKxPeWoaIkiHT27ds1DmlvI=
-SIZE (vitetris-0.51.tar.gz) = 93522
+SHA256 (vitetris-0.57.tar.gz) = DJ+myLFuL4lo9l4WqH8bzTm4J9UQxu+wdx8EAKuRzcI=
+SIZE (vitetris-0.57.tar.gz) = 100660
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/patches/patch-Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 patch-Makefile
--- patches/patch-Makefile 1 Apr 2009 08:30:45 -0000 1.2
+++ patches/patch-Makefile 12 Jul 2013 06:34:39 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-Makefile,v 1.2 2009/04/01 08:30:45 martin Exp $
---- Makefile.orig Sat Sep 13 11:45:37 2008
-+++ Makefile Mon Mar 30 20:59:06 2009
+--- Makefile.orig Wed Jun 17 16:46:00 2009
++++ Makefile Fri Nov  9 17:08:44 2012
 @@ -1,11 +1,11 @@
  include config.mk
 
@@ -16,46 +16,12 @@ $OpenBSD: patch-Makefile,v 1.2 2009/04/0
 
  default: build
  @echo Done.
-@@ -15,13 +15,13 @@ $(PROGNAME):
- $(MAKE) build
-
- build: src/src-conf.mk
-- $(MAKE) -Csrc tetris
-+ cd src; $(MAKE) tetris
+@@ -18,7 +18,7 @@ build: src/src-conf.mk
+ cd src; $(MAKE) tetris
  mv -f src/tetris$(EXE) $(PROGNAME)
  @echo stripping symbols to reduce program size:
 - -strip --strip-all $(PROGNAME)
 + -strip $(PROGNAME)
 
  gameserver: src/netw/gameserver.c
-- $(MAKE) -Csrc/netw gameserver
-+ cd src/netw; $(MAKE) gameserver
- mv -f src/netw/gameserver .
-
- src/src-conf.mk: config.mk Makefile src-conf.sh
-@@ -54,12 +54,12 @@ src/src-conf.mk: config.mk Makefile src-conf.sh
- ./src-conf.sh obj pctimer $(PCTIMER)
-
- install: $(PROGNAME)
-- $(INSTALL) -d $(bindir) $(docdir)
-- $(INSTALL) -m755 $(PROGNAME) $(bindir)
-- $(INSTALL) -m644 README licence.txt $(docdir)
-+ $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)
-+ $(INSTALL) -m755 $(PROGNAME) $(DESTDIR)$(bindir)
-+ $(INSTALL) -m644 README licence.txt $(DESTDIR)$(docdir)
- if [ -n "$(ALLEGRO)" ]; then \
--  $(INSTALL) -d $(datadir); \
--  $(INSTALL) -m644 pc8x16.fnt $(datadir); \
-+  $(INSTALL) -d $(DESTDIR)$(datadir); \
-+  $(INSTALL) -m644 pc8x16.fnt $(DESTDIR)$(datadir); \
- fi
- @echo Done.
- @echo You may also wish to create the system-wide highscore file
-@@ -84,6 +84,6 @@ uninstall:
- -rmdir $(datadir)
- clean:
- rm -f systest systest.exe
-- $(MAKE) -Csrc clean
-+ cd src; $(MAKE) clean
-
- .PHONY: default build install install-hiscores uninstall clean
+ cd src/netw; $(MAKE) gameserver
Index: patches/patch-src_menu_Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/patches/patch-src_menu_Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_menu_Makefile
--- patches/patch-src_menu_Makefile 1 Apr 2009 08:30:45 -0000 1.1
+++ patches/patch-src_menu_Makefile 12 Jul 2013 06:34:41 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-src_menu_Makefile,v 1.1 2009/04/01 08:30:45 martin Exp $
---- src/menu/Makefile.orig Tue Sep  9 23:42:23 2008
-+++ src/menu/Makefile Mon Mar 30 20:54:27 2009
-@@ -11,11 +11,13 @@ HEADERS = menu.h ../input/input.h ../textgfx/textgfx.h
+--- src/menu/Makefile.orig Sun Oct 12 16:13:11 2008
++++ src/menu/Makefile Fri Nov  9 17:08:44 2012
+@@ -12,11 +12,13 @@ HEADERS = menu.h ../input/input.h ../textgfx/textgfx.h
  all: menu.a $(menuext_lib)
 
  menu.a: $(OBJS)
Index: patches/patch-src_netw_Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/patches/patch-src_netw_Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_netw_Makefile
--- patches/patch-src_netw_Makefile 1 Apr 2009 08:30:45 -0000 1.1
+++ patches/patch-src_netw_Makefile 12 Jul 2013 06:34:41 -0000
@@ -1,13 +1,19 @@
 $OpenBSD: patch-src_netw_Makefile,v 1.1 2009/04/01 08:30:45 martin Exp $
---- src/netw/Makefile.orig Mon Mar 30 20:42:32 2009
-+++ src/netw/Makefile Mon Mar 30 20:42:52 2009
-@@ -6,7 +6,8 @@ config_h = ../config.h ../config2.h
- all: $(netw_lib)
+--- src/netw/Makefile.orig Thu Oct 16 11:39:35 2008
++++ src/netw/Makefile Fri Nov  9 17:08:44 2012
+@@ -7,11 +7,13 @@ all: $(netw_lib)$(inet_obj)
 
- netw.a: $(OBJS) ../src-conf.mk
-- ar rs netw.a $(OBJS)
-+ ar r netw.a $(OBJS)
+ netw.ainet.o: $(OBJS) comm_inet.o
+ -ar dc netw.a no_inet.o
+- ar rs netw.a $(OBJS) comm_inet.o
++ ar r netw.a $(OBJS) comm_inet.o
 + ranlib netw.a
 
- socket.o: socket.c sock.h internal.h ../input/input.h ../timer.h $(config_h)
+ netw.a: $(OBJS) no_inet.o ../src-conf.mk
+ -ar dc netw.a inet.o comm_inet.o
+- ar rs netw.a $(OBJS) no_inet.o
++ ar r netw.a $(OBJS) no_inet.o
++ ranlib netw.a
+
+ socket.o: socket.c sock.h internal.h ../input/input.h $(config_h)
 
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/vitetris/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 22 Sep 2008 12:43:31 -0000 1.1.1.1
+++ pkg/PLIST 12 Jul 2013 06:34:44 -0000
@@ -4,6 +4,8 @@
 @bin bin/vitetris
 @mode
 @group
+share/applications/
+share/applications/vitetris.desktop
 share/doc/vitetris/
 share/doc/vitetris/README
 share/doc/vitetris/licence.txt
@@ -12,3 +14,7 @@ share/examples/vitetris/
 @group games
 share/examples/vitetris/vitetris-hiscores
 @sample /var/games/vitetris-hiscores
+@mode
+@group
+share/pixmaps/
+share/pixmaps/vitetris.xpm

Reply | Threaded
Open this post in threaded view
|

Re: UPDATE: games/vitetris

Landry Breuil-6
On Thu, Jul 11, 2013 at 11:35:41PM -0700, Ryan Freeman wrote:
> I forgot I had this laying around for awhile, updated
> again to -current.  This updates vitetris to 0.57,
> adds some desktop files so I added run depends for
> devel/desktop-file-utils, is this correct?

share/applications in PLIST shouldnt be needed, otherwise reads good.

Landry

Reply | Threaded
Open this post in threaded view
|

Re: UPDATE: games/vitetris

Ryan Freeman
On Fri, Jul 12, 2013 at 09:51:23AM +0200, Landry Breuil wrote:
> On Thu, Jul 11, 2013 at 11:35:41PM -0700, Ryan Freeman wrote:
> > I forgot I had this laying around for awhile, updated
> > again to -current.  This updates vitetris to 0.57,
> > adds some desktop files so I added run depends for
> > devel/desktop-file-utils, is this correct?
>
> share/applications in PLIST shouldnt be needed, otherwise reads good.
>
> Landry

thanks Landry, just the one change, OK?

-ryan


? vitetris.diff
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile 11 Mar 2013 11:07:41 -0000 1.4
+++ Makefile 13 Jul 2013 20:03:40 -0000
@@ -1,8 +1,7 @@
 # $OpenBSD: Makefile,v 1.4 2013/03/11 11:07:41 espie Exp $
 
 COMMENT = terminal-based tetris clone in vein of nintendo tetris
-DISTNAME = vitetris-0.51
-REVISION = 0
+DISTNAME = vitetris-0.57
 CATEGORIES = games
 
 HOMEPAGE = http://victornils.net/tetris/
@@ -15,6 +14,8 @@ PERMIT_PACKAGE_CDROM = Yes
 WANTLIB = c ncurses
 
 MASTER_SITES = http://victornils.net/tetris/
+
+RUN_DEPENDS = devel/desktop-file-utils
 
 CONFIGURE_STYLE = simple
 CONFIGURE_ARGS = --prefix=${PREFIX} \
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/vitetris/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 22 Sep 2008 12:43:31 -0000 1.1.1.1
+++ distinfo 13 Jul 2013 20:03:40 -0000
@@ -1,5 +1,2 @@
-MD5 (vitetris-0.51.tar.gz) = dnS1NgIROcEAYA3bmS/i3A==
-RMD160 (vitetris-0.51.tar.gz) = 4RxfP5JGI+o3/GvEYaj0bvvD1EM=
-SHA1 (vitetris-0.51.tar.gz) = 3x3XIoAVMhcBX9n07D+rchbb2KI=
-SHA256 (vitetris-0.51.tar.gz) = 0zl3QhCrekHAwL3WTFuPoKxPeWoaIkiHT27ds1DmlvI=
-SIZE (vitetris-0.51.tar.gz) = 93522
+SHA256 (vitetris-0.57.tar.gz) = DJ+myLFuL4lo9l4WqH8bzTm4J9UQxu+wdx8EAKuRzcI=
+SIZE (vitetris-0.57.tar.gz) = 100660
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/patches/patch-Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 patch-Makefile
--- patches/patch-Makefile 1 Apr 2009 08:30:45 -0000 1.2
+++ patches/patch-Makefile 13 Jul 2013 20:03:43 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-Makefile,v 1.2 2009/04/01 08:30:45 martin Exp $
---- Makefile.orig Sat Sep 13 11:45:37 2008
-+++ Makefile Mon Mar 30 20:59:06 2009
+--- Makefile.orig Wed Jun 17 16:46:00 2009
++++ Makefile Fri Nov  9 17:08:44 2012
 @@ -1,11 +1,11 @@
  include config.mk
 
@@ -16,46 +16,12 @@ $OpenBSD: patch-Makefile,v 1.2 2009/04/0
 
  default: build
  @echo Done.
-@@ -15,13 +15,13 @@ $(PROGNAME):
- $(MAKE) build
-
- build: src/src-conf.mk
-- $(MAKE) -Csrc tetris
-+ cd src; $(MAKE) tetris
+@@ -18,7 +18,7 @@ build: src/src-conf.mk
+ cd src; $(MAKE) tetris
  mv -f src/tetris$(EXE) $(PROGNAME)
  @echo stripping symbols to reduce program size:
 - -strip --strip-all $(PROGNAME)
 + -strip $(PROGNAME)
 
  gameserver: src/netw/gameserver.c
-- $(MAKE) -Csrc/netw gameserver
-+ cd src/netw; $(MAKE) gameserver
- mv -f src/netw/gameserver .
-
- src/src-conf.mk: config.mk Makefile src-conf.sh
-@@ -54,12 +54,12 @@ src/src-conf.mk: config.mk Makefile src-conf.sh
- ./src-conf.sh obj pctimer $(PCTIMER)
-
- install: $(PROGNAME)
-- $(INSTALL) -d $(bindir) $(docdir)
-- $(INSTALL) -m755 $(PROGNAME) $(bindir)
-- $(INSTALL) -m644 README licence.txt $(docdir)
-+ $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)
-+ $(INSTALL) -m755 $(PROGNAME) $(DESTDIR)$(bindir)
-+ $(INSTALL) -m644 README licence.txt $(DESTDIR)$(docdir)
- if [ -n "$(ALLEGRO)" ]; then \
--  $(INSTALL) -d $(datadir); \
--  $(INSTALL) -m644 pc8x16.fnt $(datadir); \
-+  $(INSTALL) -d $(DESTDIR)$(datadir); \
-+  $(INSTALL) -m644 pc8x16.fnt $(DESTDIR)$(datadir); \
- fi
- @echo Done.
- @echo You may also wish to create the system-wide highscore file
-@@ -84,6 +84,6 @@ uninstall:
- -rmdir $(datadir)
- clean:
- rm -f systest systest.exe
-- $(MAKE) -Csrc clean
-+ cd src; $(MAKE) clean
-
- .PHONY: default build install install-hiscores uninstall clean
+ cd src/netw; $(MAKE) gameserver
Index: patches/patch-src_menu_Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/patches/patch-src_menu_Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_menu_Makefile
--- patches/patch-src_menu_Makefile 1 Apr 2009 08:30:45 -0000 1.1
+++ patches/patch-src_menu_Makefile 13 Jul 2013 20:03:44 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-src_menu_Makefile,v 1.1 2009/04/01 08:30:45 martin Exp $
---- src/menu/Makefile.orig Tue Sep  9 23:42:23 2008
-+++ src/menu/Makefile Mon Mar 30 20:54:27 2009
-@@ -11,11 +11,13 @@ HEADERS = menu.h ../input/input.h ../textgfx/textgfx.h
+--- src/menu/Makefile.orig Sun Oct 12 16:13:11 2008
++++ src/menu/Makefile Fri Nov  9 17:08:44 2012
+@@ -12,11 +12,13 @@ HEADERS = menu.h ../input/input.h ../textgfx/textgfx.h
  all: menu.a $(menuext_lib)
 
  menu.a: $(OBJS)
Index: patches/patch-src_netw_Makefile
===================================================================
RCS file: /cvs/ports/games/vitetris/patches/patch-src_netw_Makefile,v
retrieving revision 1.1
diff -u -p -r1.1 patch-src_netw_Makefile
--- patches/patch-src_netw_Makefile 1 Apr 2009 08:30:45 -0000 1.1
+++ patches/patch-src_netw_Makefile 13 Jul 2013 20:03:45 -0000
@@ -1,13 +1,19 @@
 $OpenBSD: patch-src_netw_Makefile,v 1.1 2009/04/01 08:30:45 martin Exp $
---- src/netw/Makefile.orig Mon Mar 30 20:42:32 2009
-+++ src/netw/Makefile Mon Mar 30 20:42:52 2009
-@@ -6,7 +6,8 @@ config_h = ../config.h ../config2.h
- all: $(netw_lib)
+--- src/netw/Makefile.orig Thu Oct 16 11:39:35 2008
++++ src/netw/Makefile Fri Nov  9 17:08:44 2012
+@@ -7,11 +7,13 @@ all: $(netw_lib)$(inet_obj)
 
- netw.a: $(OBJS) ../src-conf.mk
-- ar rs netw.a $(OBJS)
-+ ar r netw.a $(OBJS)
+ netw.ainet.o: $(OBJS) comm_inet.o
+ -ar dc netw.a no_inet.o
+- ar rs netw.a $(OBJS) comm_inet.o
++ ar r netw.a $(OBJS) comm_inet.o
 + ranlib netw.a
 
- socket.o: socket.c sock.h internal.h ../input/input.h ../timer.h $(config_h)
+ netw.a: $(OBJS) no_inet.o ../src-conf.mk
+ -ar dc netw.a inet.o comm_inet.o
+- ar rs netw.a $(OBJS) no_inet.o
++ ar r netw.a $(OBJS) no_inet.o
++ ranlib netw.a
+
+ socket.o: socket.c sock.h internal.h ../input/input.h $(config_h)
 
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/vitetris/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 22 Sep 2008 12:43:31 -0000 1.1.1.1
+++ pkg/PLIST 13 Jul 2013 20:03:46 -0000
@@ -4,6 +4,7 @@
 @bin bin/vitetris
 @mode
 @group
+share/applications/vitetris.desktop
 share/doc/vitetris/
 share/doc/vitetris/README
 share/doc/vitetris/licence.txt
@@ -12,3 +13,7 @@ share/examples/vitetris/
 @group games
 share/examples/vitetris/vitetris-hiscores
 @sample /var/games/vitetris-hiscores
+@mode
+@group
+share/pixmaps/
+share/pixmaps/vitetris.xpm