pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games add games/xsol



details:   https://anonhg.NetBSD.org/pkgsrc/rev/63354ccc789c
branches:  trunk
changeset: 372006:63354ccc789c
user:      nia <nia%pkgsrc.org@localhost>
date:      Mon Jan 17 13:23:17 2022 +0000

description:
add games/xsol

This is a simple Motif/Lesstif version of the classic solitaire game.

This version of the game runs under X Window System.

diffstat:

 games/Makefile                |    3 +-
 games/xsol/DESCR              |    3 +
 games/xsol/Makefile           |   35 ++++++++++++++++++++++
 games/xsol/PLIST              |    5 +++
 games/xsol/distinfo           |    5 +++
 games/xsol/files/Makefile     |   13 ++++++++
 games/xsol/files/xsol.6       |   65 ++++++++++++++++++++++++++++++++++++++++++
 games/xsol/files/xsol.desktop |   10 ++++++
 games/xsol/files/xsol.png     |  Bin 
 9 files changed, 138 insertions(+), 1 deletions(-)

diffs (183 lines):

diff -r 836d8fb80afa -r 63354ccc789c games/Makefile
--- a/games/Makefile    Mon Jan 17 12:31:39 2022 +0000
+++ b/games/Makefile    Mon Jan 17 13:23:17 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.511 2021/12/30 00:43:35 nia Exp $
+# $NetBSD: Makefile,v 1.512 2022/01/17 13:23:17 nia Exp $
 #
 
 COMMENT=       Games
@@ -469,6 +469,7 @@
 SUBDIR+=       xscrabble
 SUBDIR+=       xskat
 SUBDIR+=       xsokoban
+SUBDIR+=       xsol
 SUBDIR+=       xsoldier
 SUBDIR+=       xtacy
 SUBDIR+=       xtris
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xsol/DESCR  Mon Jan 17 13:23:17 2022 +0000
@@ -0,0 +1,3 @@
+This is a simple Motif/Lesstif version of the classic solitaire game.
+
+This version of the game runs under X Window System.
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xsol/Makefile       Mon Jan 17 13:23:17 2022 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2022/01/17 13:23:17 nia Exp $
+
+DISTNAME=      xsol_0.31.orig
+PKGNAME=       ${DISTNAME:S/_/-/g:S/.orig$//g}
+CATEGORIES=    games
+MASTER_SITES=  ${MASTER_SITE_DEBIAN:=pool/main/x/xsol/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://packages.debian.org/sid/xsol
+COMMENT=       Solitaire game for the X Window System
+LICENSE=       gnu-gpl-v2
+
+WRKSRC=                ${WRKDIR}/${DISTNAME:S/_/-/g}
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/pixmaps
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man6
+
+pre-build:
+       ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/xsol \
+           ${DESTDIR}${PREFIX}/bin/xsol
+       ${INSTALL_DATA} ${FILESDIR}/xsol.desktop \
+           ${DESTDIR}${PREFIX}/share/applications/xsol.desktop
+       ${INSTALL_DATA} ${FILESDIR}/xsol.6 \
+           ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xsol.6
+       ${INSTALL_DATA} ${FILESDIR}/xsol.png \
+           ${DESTDIR}${PREFIX}/share/pixmaps/xsol.png
+
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../mk/motif.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xsol/PLIST  Mon Jan 17 13:23:17 2022 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/17 13:23:17 nia Exp $
+bin/xsol
+man/man6/xsol.6
+share/applications/xsol.desktop
+share/pixmaps/xsol.png
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xsol/distinfo       Mon Jan 17 13:23:17 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/01/17 13:23:17 nia Exp $
+
+BLAKE2s (xsol_0.31.orig.tar.gz) = d29a3df1df2cf27cbc07b6ad2033c85891a036e5b4f64749f9cd1ccca4b74463
+SHA512 (xsol_0.31.orig.tar.gz) = cc031362254fd9de178bec6b1915dabd3232e4be4fd677896f1b181858d393965768af8a927fb1457aafc90725b9dca2aa29b0c4f3a22d62b574bd6b3f34575c
+Size (xsol_0.31.orig.tar.gz) = 18047 bytes
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/files/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xsol/files/Makefile Mon Jan 17 13:23:17 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1 2022/01/17 13:23:17 nia Exp $
+
+OBJS+= xsol.o
+
+LIBS+= -lXm
+
+all: xsol
+
+xsol.o: xsol.c
+       $(CC) $(CFLAGS) -c xsol.c
+
+xsol: xsol.o
+       $(CC) $(LDFLAGS) $(LIBS) -o xsol xsol.o
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/files/xsol.6
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xsol/files/xsol.6   Mon Jan 17 13:23:17 2022 +0000
@@ -0,0 +1,65 @@
+.TH XSOL 6 "March 1999" "Debian Project"
+.SH NAME
+xsol \- X Solitaire
+.SH SYNOPSIS
+.B xsol
+.br
+.SH "DESCRIPTION"
+This manual page briefly documents
+.BR xsol
+, a simple Motif/ Lesstif version of the classic solitaire game.
+It was written for the Debian GNU/Linux distribution because the
+original program does not have a manual page.
+.br
+.SH "HOW TO PLAY"
+Solitaire is a card game. At the start you are presented with seven
+columns of cards. First has only one card, second one has two, third
+three and so on (28 in total), but only the first card in every
+column is shown ('opened'). Also there is the deck (24 cards at the
+start), and four empty places for suit stacks.
+.sp
+Cards in the deck and in the columns are unsorted, and the object of
+Solitaire is to use all the cards in the deck to build up the four
+suit stacks in ascending order, beginning with the aces. You can
+accomplish that by dragging and dropping the red onto the black (and
+black onto the red) cards between the columns, and between the deck
+and the columns (but not the other way around). When you see a whole
+turned card, click on it to see it ('open' it) and to be able to move
+it somewhere. Deck is opened by clicking on it; once you reach the
+end of the deck, just click once more and you'll reopen it.
+.sp
+If you reach a point when you can't move any more cards to the stacks,
+and rearranging cards in columns and the deck gets you nowhere, the
+game is over. Start it again.
+.SH OPTIONS
+You can access all options within the program, through the 'Game'
+menu. There you have four options:
+.br
+.B New game
+- start a new game,
+.br
+.B Undo
+- undo last move,
+.br
+.B Options
+- configure these options:
+.br
+   Timed game - should we count the seconds?
+.br
+   Keep score - should we count the score?
+.br
+   Show number of cards in deck - should we show it?
+.br
+   Draw one - card from the deck,
+.br
+   Draw three - cards from the deck.
+.br
+.B About
+- shows information about the author.
+.br
+.B Exit
+- quits the game.
+.SH AUTHOR
+.B xsol
+was written by Brian Masney <masneyb%newwave.net@localhost>, and this manual
+page was written by Josip Rodin <jrodin%jagor.srce.hr@localhost>.
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/files/xsol.desktop
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xsol/files/xsol.desktop     Mon Jan 17 13:23:17 2022 +0000
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Exec=xsol
+GenericName=Klondike Solitare
+Icon=xsol
+Name=X Solitaire
+Comment=Klondike Solitaire game for the X Window System
+Terminal=false
+Type=Application
+Categories=Game;CardGame;
+Keywords=game;card;cardgame;solitaire
diff -r 836d8fb80afa -r 63354ccc789c games/xsol/files/xsol.png
Binary file games/xsol/files/xsol.png has changed



Home | Main Index | Thread Index | Old Index