aboutsummaryrefslogtreecommitdiffstats
path: root/games/yahtzee
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-01-25 03:53:55 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-01-25 03:53:55 +0800
commitae2de47f7ed997abb2835d83e8dc6cc768a42f5d (patch)
treea49c516a2eaa5b24e7f519f94aaf3b3543f3d5fd /games/yahtzee
parentc1e5e79013894501ad428c73c31adf502ca2215d (diff)
downloadfreebsd-ports-gnome-ae2de47f7ed997abb2835d83e8dc6cc768a42f5d.tar.gz
freebsd-ports-gnome-ae2de47f7ed997abb2835d83e8dc6cc768a42f5d.tar.zst
freebsd-ports-gnome-ae2de47f7ed997abb2835d83e8dc6cc768a42f5d.zip
- Move highscore to /var/games, use @sample
- Simplify MASTER_SITES
Diffstat (limited to 'games/yahtzee')
-rw-r--r--games/yahtzee/Makefile9
-rw-r--r--games/yahtzee/files/patch-Makefile2
-rw-r--r--games/yahtzee/pkg-plist11
3 files changed, 8 insertions, 14 deletions
diff --git a/games/yahtzee/Makefile b/games/yahtzee/Makefile
index eb8be9d2f517..f0bb5694a2a7 100644
--- a/games/yahtzee/Makefile
+++ b/games/yahtzee/Makefile
@@ -3,10 +3,9 @@
PORTNAME= yahtzee
PORTVERSION= 1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= games/strategy
+MASTER_SITES= SUNSITE/games/strategy
DISTNAME= ${PORTNAME}-src
MAINTAINER= ports@FreeBSD.org
@@ -17,7 +16,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/yahtzee ${STAGEDIR}${PREFIX}/bin
- @${MKDIR} -m 0755 ${STAGEDIR}${DATADIR}
- ${TOUCH} ${STAGEDIR}${DATADIR}/yahtzee.sco
+ @${MKDIR} -m 0755 ${STAGEDIR}/var/games/yahtzee
+ ${TOUCH} ${STAGEDIR}/var/games/yahtzee/yahtzee.sco.sample
.include <bsd.port.mk>
diff --git a/games/yahtzee/files/patch-Makefile b/games/yahtzee/files/patch-Makefile
index c2eb5261af80..514836de8226 100644
--- a/games/yahtzee/files/patch-Makefile
+++ b/games/yahtzee/files/patch-Makefile
@@ -2,7 +2,7 @@
+++ Makefile Wed Nov 8 04:48:42 2000
@@ -1,4 +1,4 @@
-CFLAGS =
-+CFLAGS += -DHAS_RENAME -DSCOREDIR=\"$(PREFIX)/share/yahtzee\"
++CFLAGS += -DHAS_RENAME -DSCOREDIR=\"/var/games/yahtzee\"
OBJ = computer.o main.o
diff --git a/games/yahtzee/pkg-plist b/games/yahtzee/pkg-plist
index 76c519fbc143..9defc1914d47 100644
--- a/games/yahtzee/pkg-plist
+++ b/games/yahtzee/pkg-plist
@@ -1,8 +1,3 @@
-@group games
-@mode 2755
-bin/yahtzee
-@mode 664
-%%DATADIR%%/yahtzee.sco
-@group
-@mode
-@dirrm %%DATADIR%%
+@(,games,2755) bin/yahtzee
+@sample(,games,664) /var/games/yahtzee/yahtzee.sco.sample
+@dir(,games,775) /var/games/yahtzee