pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/einstein-puzzle



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Jul 24 11:48:14 UTC 2016

Added Files:
        pkgsrc/games/einstein-puzzle: DESCR Makefile PLIST distinfo
        pkgsrc/games/einstein-puzzle/patches: patch-Makefile

Log Message:
Import einstein-puzzle-2.1.1 as games/einstein-puzzle.

Einstein puzzle is a free cross-platform open source remake of old
DOS game Sherlock which was inspired by Albert Einstein's puzzle.
The game goal is to open all cards in square of 6x6 cards. For this,
a number of hints describing relations between card positions are
given. Use them to find the correct layout.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/games/einstein-puzzle/DESCR \
    pkgsrc/games/einstein-puzzle/Makefile pkgsrc/games/einstein-puzzle/PLIST \
    pkgsrc/games/einstein-puzzle/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/einstein-puzzle/patches/patch-Makefile

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

Added files:

Index: pkgsrc/games/einstein-puzzle/DESCR
diff -u /dev/null pkgsrc/games/einstein-puzzle/DESCR:1.1
--- /dev/null   Sun Jul 24 11:48:14 2016
+++ pkgsrc/games/einstein-puzzle/DESCR  Sun Jul 24 11:48:14 2016
@@ -0,0 +1,5 @@
+Einstein puzzle is a free cross-platform open source remake of old
+DOS game Sherlock which was inspired by Albert Einstein's puzzle.
+The game goal is to open all cards in square of 6x6 cards. For this,
+a number of hints describing relations between card positions are
+given. Use them to find the correct layout.
Index: pkgsrc/games/einstein-puzzle/Makefile
diff -u /dev/null pkgsrc/games/einstein-puzzle/Makefile:1.1
--- /dev/null   Sun Jul 24 11:48:14 2016
+++ pkgsrc/games/einstein-puzzle/Makefile       Sun Jul 24 11:48:14 2016
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2016/07/24 11:48:14 wiz Exp $
+
+DISTNAME=      einstein-puzzle-2.1.1
+CATEGORIES=    games
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=lksj/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/lksj/einstein-puzzle/
+COMMENT=       Computer implementation of a puzzle invented by Albert Einstein
+LICENSE=       gnu-gpl-v2
+
+USE_LANGUAGES= c++
+
+MAKE_FLAGS+=           PREFIX=${PREFIX}
+
+INSTALLATION_DIRS+=    libexec
+
+post-build:
+       ${ECHO} '#!/bin/sh' > ${WRKDIR}/einstein.sh
+       ${ECHO} "cd ${PREFIX}/share/einstein/res && ${PREFIX}/libexec/einstein" >> ${WRKDIR}/einstein.sh
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/einstein ${DESTDIR}${PREFIX}/libexec
+       ${INSTALL_SCRIPT} ${WRKDIR}/einstein.sh ${DESTDIR}${PREFIX}/bin/einstein
+
+.include "../../audio/SDL_mixer/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/SDL_ttf/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/games/einstein-puzzle/PLIST
diff -u /dev/null pkgsrc/games/einstein-puzzle/PLIST:1.1
--- /dev/null   Sun Jul 24 11:48:14 2016
+++ pkgsrc/games/einstein-puzzle/PLIST  Sun Jul 24 11:48:14 2016
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/24 11:48:14 wiz Exp $
+bin/einstein
+libexec/einstein
+share/einstein/res/einstein.res
Index: pkgsrc/games/einstein-puzzle/distinfo
diff -u /dev/null pkgsrc/games/einstein-puzzle/distinfo:1.1
--- /dev/null   Sun Jul 24 11:48:14 2016
+++ pkgsrc/games/einstein-puzzle/distinfo       Sun Jul 24 11:48:14 2016
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/07/24 11:48:14 wiz Exp $
+
+SHA1 (einstein-puzzle-2.1.1.tar.gz) = d64acf11a56ed278eced25572c245ec1d9ac3822
+RMD160 (einstein-puzzle-2.1.1.tar.gz) = c2a97550cf2c7aa45b113cec2cd7d968f6ae0bc2
+SHA512 (einstein-puzzle-2.1.1.tar.gz) = e34e8e0ef47c311d7417c42ba306b9e9cf94d1fd1829b3948d791543d1fb5f8f1d8d975154bab2559691cf3b94574d5485f8541882d59dd0b6284ff76e435cf3
+Size (einstein-puzzle-2.1.1.tar.gz) = 1317979 bytes
+SHA1 (patch-Makefile) = f761dfe51a52382181e1471dcb3134171ef78d16

Index: pkgsrc/games/einstein-puzzle/patches/patch-Makefile
diff -u /dev/null pkgsrc/games/einstein-puzzle/patches/patch-Makefile:1.1
--- /dev/null   Sun Jul 24 11:48:14 2016
+++ pkgsrc/games/einstein-puzzle/patches/patch-Makefile Sun Jul 24 11:48:14 2016
@@ -0,0 +1,28 @@
+$NetBSD: patch-Makefile,v 1.1 2016/07/24 11:48:14 wiz Exp $
+
+Add DESTDIR support.
+Support install(1) that does not create directories automatically.
+
+--- Makefile.orig      2015-12-03 16:45:59.000000000 +0000
++++ Makefile
+@@ -6,6 +6,7 @@
+ 
+ # installation prefix
+ PREFIX=/usr/local
++DESTDIR?=
+ 
+ ########################################
+ #
+@@ -61,8 +62,10 @@ run: $(TARGET)
+       ./$(TARGET)
+ 
+ install: $(TARGET)
+-      $(INSTALL) -s -D $(TARGET) $(PREFIX)/bin/$(TARGET)
+-      $(INSTALL) -D einstein.res $(PREFIX)/share/einstein/res/einstein.res
++      $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
++      $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/einstein/res
++      $(INSTALL) -s $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
++      $(INSTALL) einstein.res $(DESTDIR)$(PREFIX)/share/einstein/res/einstein.res
+       
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
+ 



Home | Main Index | Thread Index | Old Index