Bug 173881 - [NEW PORT] games/vodovod: Cross-platform pipe connecting action puzzle game
Summary: [NEW PORT] games/vodovod: Cross-platform pipe connecting action puzzle game
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rusmir Dusko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-23 20:50 UTC by nemysis
Modified: 2013-10-18 00:40 UTC (History)
0 users

See Also:


Attachments
.shar (4.92 KB, text/plain)
2012-11-23 20:50 UTC, nemysis
no flags Details
vodovod.shar (4.93 KB, application/x-shar)
2013-02-23 16:54 UTC, nemysis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description nemysis 2012-11-23 20:50:00 UTC
The goal of the game is to reach the highest possible score. You get a limited
number of pipes on each level and need to combine them to lead the water from
the house at the top of the screen to the storage tank at the bottom. For each
pipe water goes through, you get 20 points and if you fill the cross-pipe both
ways, you get 60 points. At end of each level, you are awarded depending on the
skill level:

  * Beginner: 100 points
  * Toolman: 100 points + number of pipes remaining
  * Master plumber: 100 points + 2 x number of pipes remaining

Some of the levels also have obstacles where you cannot place pipes. The game
is playable with joystick/joypad: just move it and press buttons when you go to
Options -> Configure controls

WWW: http://home.gna.org/vodovod/

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: new)

How-To-Repeat: 
portlint -A
looks fine.

port test: clean

Can't give build log, because RedPorts not works at the time.
Comment 1 nemysis 2013-02-23 16:54:29 UTC
Changed

DESKTOP_ENTRIES="Vodovod" "${COMMENT}" \
                "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
                "${PORTNAME}" "Game;LogicGame;" false
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-08-14 10:29:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nemysis

submitter is now committer.
Comment 3 Rusmir Dusko freebsd_committer freebsd_triage 2013-10-18 00:34:39 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-10-18 00:36:58 UTC
Author: nemysis
Date: Thu Oct 17 23:36:50 2013
New Revision: 330687
URL: http://svnweb.freebsd.org/changeset/ports/330687

Log:
  The goal of the game is to reach the highest possible score. You get a limited
  number of pipes on each level and need to combine them to lead the water from
  the house at the top of the screen to the storage tank at the bottom. For each
  pipe water goes through, you get 20 points and if you fill the cross-pipe both
  ways, you get 60 points. At end of each level, you are awarded depending on the
  skill level:
  
    * Beginner: 100 points
    * Toolman: 100 points + number of pipes remaining
    * Master plumber: 100 points + 2 x number of pipes remaining
  
  Some of the levels also have obstacles where you cannot place pipes. The game
  is playable with joystick/joypad: just move it and press buttons when you go to
  Options -> Configure controls
  
  WWW: http://home.gna.org/vodovod/
  
  PR:		ports/173881
  Submitted by:	nemysis (self)
  Approved by:	pawel (mentor)

Added:
  head/games/vodovod/
  head/games/vodovod/Makefile   (contents, props changed)
  head/games/vodovod/distinfo   (contents, props changed)
  head/games/vodovod/files/
  head/games/vodovod/files/patch-hiscore.cpp   (contents, props changed)
  head/games/vodovod/files/patch-hiscore.h   (contents, props changed)
  head/games/vodovod/files/vodovod.in   (contents, props changed)
  head/games/vodovod/pkg-descr   (contents, props changed)
  head/games/vodovod/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Thu Oct 17 23:24:21 2013	(r330686)
+++ head/games/Makefile	Thu Oct 17 23:36:50 2013	(r330687)
@@ -995,6 +995,7 @@
     SUBDIR += violetland
     SUBDIR += viruskiller
     SUBDIR += vitetris
+    SUBDIR += vodovod
     SUBDIR += volleyball
     SUBDIR += vor
     SUBDIR += vultures-eye

Added: head/games/vodovod/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/vodovod/Makefile	Thu Oct 17 23:36:50 2013	(r330687)
@@ -0,0 +1,58 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	vodovod
+PORTVERSION=	1.10
+CATEGORIES=	games
+MASTER_SITES=	http://download.gna.org/vodovod/ \
+		SF/nemysisfreebsdp/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}-src${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}-src${EXTRACT_SUFX}
+
+MAINTAINER=	nemysis@FreeBSD.org
+COMMENT=	Cross-platform pipe connecting action puzzle game
+
+LICENSE=	GPLv2
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}-src
+
+USES=		gmake
+USE_SDL=	image mixer sdl
+
+PORTDOCS=	*
+
+DOCSRCDIR1=	${WRKSRC}
+DOC_FILES1=	CHANGES
+
+DOCSRCDIR2=	${WRKSRC}/html
+DOCSDIR2=	${DOCSDIR}/html
+DOC_FILES2=	*.gif *.png *.jpg *.html
+
+SUB_FILES=	${PORTNAME}
+
+DESKTOP_ENTRIES="Vodovod" "${COMMENT}" ${PORTNAME} \
+		"${PORTNAME}" "Game;LogicGame;" false
+
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|PREFIX=/usr|PREFIX=${PREFIX}|' \
+		-e 's|CC = g++|CC ?= g++|' \
+		-e 's|CC|CXX|' \
+		-e 's|sdl-config|$(SDL_CONFIG)|' \
+		-e '/^MY_CFLAGS/ s| = | = ${CXXFLAGS} |' \
+		${WRKSRC}/Makefile
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data icon.ico" ${STAGEDIR}${DATADIR})
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+
+.include <bsd.port.mk>

Added: head/games/vodovod/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/vodovod/distinfo	Thu Oct 17 23:36:50 2013	(r330687)
@@ -0,0 +1,4 @@
+SHA256 (vodovod-1.10-src.tar.gz) = ba30919eed676e9d1ab7dc57b72813039eb658fa26442b921c29a489d5c082df
+SIZE (vodovod-1.10-src.tar.gz) = 403216
+SHA256 (vodovod.png) = 3ed4b7844cb37b1165a46485df2e9b8cfcb461ca93cca4fb878206df2a38bad6
+SIZE (vodovod.png) = 2039

Added: head/games/vodovod/files/patch-hiscore.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/vodovod/files/patch-hiscore.cpp	Thu Oct 17 23:36:50 2013	(r330687)
@@ -0,0 +1,10 @@
+--- ./hiscore.cpp.orig	2007-06-05 00:13:40.000000000 +0200
++++ ./hiscore.cpp	2013-10-17 23:37:42.000000000 +0200
+@@ -19,6 +19,7 @@
+ -----------------------------------------------------------------------------*/
+ #include "stdio.h"
+ #include "hiscore.h"
++#include <cstdlib>
+ //-----------------------------------------------------------------------------
+ HiScores &hiScores()
+ {

Added: head/games/vodovod/files/patch-hiscore.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/vodovod/files/patch-hiscore.h	Thu Oct 17 23:36:50 2013	(r330687)
@@ -0,0 +1,11 @@
+--- ./hiscore.h.orig	2007-06-03 13:09:24.000000000 +0200
++++ ./hiscore.h	2013-10-17 23:37:42.000000000 +0200
+@@ -28,7 +28,7 @@
+     std::string name;
+     int level;
+     int points;
+-    bool operator<(const HiScore& h) { return points > h.points; };
++    bool operator<(const HiScore& h) const { return points > h.points; };
+ };
+ //-----------------------------------------------------------------------------
+ class HiScores

Added: head/games/vodovod/files/vodovod.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/vodovod/files/vodovod.in	Thu Oct 17 23:36:50 2013	(r330687)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec ./vodovod "${@}"

Added: head/games/vodovod/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/vodovod/pkg-descr	Thu Oct 17 23:36:50 2013	(r330687)
@@ -0,0 +1,16 @@
+The goal of the game is to reach the highest possible score. You get a limited
+number of pipes on each level and need to combine them to lead the water from
+the house at the top of the screen to the storage tank at the bottom. For each
+pipe water goes through, you get 20 points and if you fill the cross-pipe both
+ways, you get 60 points. At end of each level, you are awarded depending on the
+skill level:
+
+  * Beginner: 100 points
+  * Toolman: 100 points + number of pipes remaining
+  * Master plumber: 100 points + 2 x number of pipes remaining
+
+Some of the levels also have obstacles where you cannot place pipes. The game
+is playable with joystick/joypad: just move it and press buttons when you go to
+Options -> Configure controls
+
+WWW: http://home.gna.org/vodovod/

Added: head/games/vodovod/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/vodovod/pkg-plist	Thu Oct 17 23:36:50 2013	(r330687)
@@ -0,0 +1,26 @@
+bin/vodovod
+share/pixmaps/vodovod.png
+%%DATADIR%%/data/abicon.bmp
+%%DATADIR%%/data/block.png
+%%DATADIR%%/data/bubbles.wav
+%%DATADIR%%/data/drop.wav
+%%DATADIR%%/data/flow.xm
+%%DATADIR%%/data/font-white.bmp
+%%DATADIR%%/data/font-yellow.bmp
+%%DATADIR%%/data/house.png
+%%DATADIR%%/data/mapend.wav
+%%DATADIR%%/data/metal.wav
+%%DATADIR%%/data/next.png
+%%DATADIR%%/data/queue.png
+%%DATADIR%%/data/replace.wav
+%%DATADIR%%/data/slate.png
+%%DATADIR%%/data/tank.png
+%%DATADIR%%/data/tree1.png
+%%DATADIR%%/data/vodovod.png
+%%DATADIR%%/data/vodovod.xm
+%%DATADIR%%/data/walk.png
+%%DATADIR%%/data/walk.xm
+%%DATADIR%%/icon.ico
+%%DATADIR%%/vodovod
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"