mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Update unnethack to 4.0.0.20120401.
Chagne the place for variable files from $PREFIX/share/unnethack to $PREFIX/var/games/unnethack.
This commit is contained in:
parent
1f26fe5fda
commit
28d9ae65c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302674
18
UPDATING
18
UPDATING
@ -5,6 +5,24 @@ they are unavoidable.
|
||||
You should get into the habit of checking this file for changes each time
|
||||
you update your ports collection, before attempting any port upgrades.
|
||||
|
||||
20120817:
|
||||
AFFECTS: users of games/unnethack
|
||||
AUTHOR: knu@FreeBSD.org
|
||||
|
||||
The place for variable files has changed from
|
||||
$PREFIX/share/unnethack to $PREFIX/var/games/unnethack. To keep
|
||||
your saved files and game records, please manually move the
|
||||
following files and directories to the new directory after
|
||||
upgrading.
|
||||
|
||||
logfile
|
||||
perm
|
||||
record
|
||||
xlogfile
|
||||
bones/
|
||||
level/
|
||||
saves/
|
||||
|
||||
20120816:
|
||||
AFFECTS: users of sysutils/cfengine*
|
||||
AUTHOR: gjb@FreeBSD.org
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= unnethack
|
||||
PORTVERSION= 3.5.3.20101010
|
||||
PORTVERSION= 4.0.0.20120401
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}
|
||||
|
||||
@ -17,28 +17,31 @@ COMMENT= A new variant of NetHack
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
VARDIR_REL= var/games/${PORTNAME}
|
||||
VARDIR= ${PREFIX}/${VARDIR_REL}
|
||||
CONFIGURE_ARGS= --datadir="${DATADIR:H}" --localstatedir="${VARDIR:H}" --docdir="${DOCSDIR:H}" \
|
||||
--with-owner=games --with-group=games \
|
||||
--enable-data-librarian
|
||||
MAKE_ARGS= FILEPERM=0664 \
|
||||
VARFILEPERM=0664 \
|
||||
VARDIRPERM=0775
|
||||
INSTALL_TARGET= install manpages
|
||||
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
||||
SUB_FILES+= pkg-deinstall
|
||||
SUB_FILES= pkg-deinstall
|
||||
SUB_LIST= VARDIR="${VARDIR}"
|
||||
PLIST_SUB= VARDIR="${VARDIR_REL}"
|
||||
# This port accually conflicts with other nethack variant ports on
|
||||
# these commands that are only significant for those who want to
|
||||
# "hack" the game in deep.
|
||||
MAN6= dgn_comp.6 dlb.6 lev_comp.6 recover.6 ${PORTNAME}.6
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
MAKE_ENV+= DATADIR="${DATADIR}"
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e \
|
||||
"s@%%DATADIR%%@${DATADIR}@g" ${WRKSRC}/include/config.h
|
||||
${MV} ${WRKSRC}/doc/nethack.6 ${WRKSRC}/doc/${PORTNAME}.6
|
||||
|
||||
post-install:
|
||||
@cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
|
||||
@(cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
||||
${MAKEFILE} ${MAKE_ARGS} manpages)
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${LN} -sf ${PREFIX}/share/${PORTNAME}/Guidebook.txt ${DOCSDIR}/
|
||||
${INSTALL_DATA} ${FILESDIR}/sample.unnethackrc ${DOCSDIR}
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (unnethack-3.5.3-20101010.tar.gz) = 50af40761316fcede4c93b816d6c3b910cf3ca39551c50c0c35d622a9af36543
|
||||
SIZE (unnethack-3.5.3-20101010.tar.gz) = 3875013
|
||||
SHA256 (unnethack-4.0.0-20120401.tar.gz) = b5ea9ba28f137b004f196c71f6548196b3595db214051d14a4145a4c3cb6c1c2
|
||||
SIZE (unnethack-4.0.0-20120401.tar.gz) = 5241359
|
||||
|
@ -1,6 +1,8 @@
|
||||
--- include/config.h.orig 2010-10-10 21:46:00.000000000 +0900
|
||||
+++ include/config.h 2011-01-22 01:34:41.205152954 +0900
|
||||
@@ -188,7 +188,7 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- include/config.h.orig 2012-04-01 23:34:10.000000000 +0900
|
||||
+++ include/config.h 2012-08-17 16:37:54.135991792 +0900
|
||||
@@ -191,7 +191,7 @@
|
||||
/* #define COMPRESS "/usr/bin/compress" */ /* Lempel-Ziv compression */
|
||||
/* #define COMPRESS_EXTENSION ".Z" */ /* compress's extension */
|
||||
/* An example of one alternative you might want to use: */
|
||||
@ -9,21 +11,3 @@
|
||||
#define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
|
||||
#endif
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
* a tar-like file, thus making a neater installation. See *conf.h
|
||||
* for detailed configuration.
|
||||
*/
|
||||
-/* #define DLB */ /* not supported on all platforms */
|
||||
+#define DLB /* not supported on all platforms */
|
||||
|
||||
/*
|
||||
* Defining INSURANCE slows down level changes, but allows games that
|
||||
@@ -221,7 +221,7 @@
|
||||
* otherwise it will be the current directory.
|
||||
*/
|
||||
# ifndef HACKDIR
|
||||
-# define HACKDIR "/usr/games/lib/unnethackdir"
|
||||
+# define HACKDIR "%%DATADIR%%"
|
||||
# endif
|
||||
|
||||
/*
|
||||
|
@ -1,15 +0,0 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- sys/autoconf/Makefile.src.orig 2010-01-10 23:51:59.000000000 +0900
|
||||
+++ sys/autoconf/Makefile.src 2010-01-19 14:57:58.042797577 +0900
|
||||
@@ -30,8 +30,8 @@
|
||||
CC = @CC@ -DAUTOCONF
|
||||
WINDRES = @WINDRES@
|
||||
|
||||
-CFLAGS = -Wall -I../include -I$(srcdir)/../include @CFLAGS@ #-fbounds-check #-fprofile-arcs -ftest-coverage
|
||||
-LFLAGS = @LFLAGS@ #-fbounds-check
|
||||
+CFLAGS = -Wall -I../include -I$(srcdir)/../include -I$(LOCALBASE)/include @CFLAGS@ #-fbounds-check #-fprofile-arcs -ftest-coverage
|
||||
+LFLAGS = -L$(LOCALBASE)/lib @LFLAGS@ #-fbounds-check
|
||||
|
||||
# Only used for the Gnome interface.
|
||||
GNOMEINC=`gnome-config gnome --cflags` -I$(srcdir)/../win/gnome
|
@ -1,15 +0,0 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- sys/autoconf/Makefile.utl.orig 2010-01-10 23:51:59.000000000 +0900
|
||||
+++ sys/autoconf/Makefile.utl 2010-01-19 15:02:33.718921184 +0900
|
||||
@@ -96,8 +96,8 @@
|
||||
# flags for debugging:
|
||||
# CFLAGS = -g -I../include -I$(srcdir)/../include
|
||||
|
||||
-CFLAGS = -O -I../include -I$(srcdir)/../include @CFLAGS@
|
||||
-LFLAGS = @LFLAGS@
|
||||
+CFLAGS = -O -I../include -I$(srcdir)/../include -I$(LOCALBASE)/include @CFLAGS@
|
||||
+LFLAGS = -L$(LOCALBASE)/lib @LFLAGS@
|
||||
|
||||
LIBS =
|
||||
|
@ -1,13 +0,0 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- include/system.h.good Wed Nov 22 23:38:44 2000
|
||||
+++ include/system.h Wed Nov 22 23:41:03 2000
|
||||
@@ -522,7 +522,7 @@
|
||||
E time_t FDECL(time, (time_t *));
|
||||
# endif
|
||||
# else
|
||||
-E long FDECL(time, (time_t *));
|
||||
+E time_t FDECL(time, (time_t *));
|
||||
# endif /* ULTRIX */
|
||||
|
||||
#ifdef VMS
|
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
if [ "$2" = "POST-DEINSTALL" -a -d "%%DATADIR%%" ]; then
|
||||
if [ "$2" = "POST-DEINSTALL" -a -d "%%VARDIR%%" ]; then
|
||||
echo ""
|
||||
echo " If unnethack is being removed permanently, please remove"
|
||||
echo ""
|
||||
echo " %%DATADIR%%"
|
||||
echo " %%VARDIR%%"
|
||||
echo ""
|
||||
fi
|
||||
|
@ -1,19 +1,16 @@
|
||||
bin/unnethack
|
||||
%%DATADIR%%/Guidebook.txt
|
||||
%%DATADIR%%/license
|
||||
%%DATADIR%%/logfile
|
||||
%%DATADIR%%/nhdat
|
||||
%%DATADIR%%/perm
|
||||
%%DATADIR%%/record
|
||||
%%DATADIR%%/recover
|
||||
%%DATADIR%%/unnethack
|
||||
%%DATADIR%%/xlogfile
|
||||
@exec mkdir %D/%%DATADIR%%/save
|
||||
@exec chmod -R 775 %D/%%DATADIR%%
|
||||
@exec chmod 2755 %D/%%DATADIR%%/save
|
||||
@exec chown games:games %D/%%DATADIR%%/save
|
||||
@dirrmtry %%DATADIR%%/save
|
||||
@dirrmtry %%DATADIR%%
|
||||
%%PORTDOCS%%%%DOCSDIR%%/Guidebook.txt
|
||||
%%VARDIR%%/logfile
|
||||
%%VARDIR%%/perm
|
||||
%%VARDIR%%/record
|
||||
%%VARDIR%%/xlogfile
|
||||
@dirrmtry %%VARDIR%%/bones
|
||||
@dirrmtry %%VARDIR%%/level
|
||||
@dirrmtry %%VARDIR%%/saves
|
||||
@unexec rmdir -p %D/%%VARDIR%% 2>/dev/null || true
|
||||
%%DOCSDIR%%/Guidebook.txt
|
||||
%%DOCSDIR%%/license
|
||||
%%PORTDOCS%%%%DOCSDIR%%/sample.unnethackrc
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user