aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2016-09-15 03:50:46 +0800
committerantoine <antoine@FreeBSD.org>2016-09-15 03:50:46 +0800
commite0831c933ca8bda64a7a5ed9b16f6302bb692d59 (patch)
treeec6270397becb70ebcaa5c6615c9cd29a5684b63 /misc
parent21c1782a9f81ba9c12ab39a2e136b9e6ff232d48 (diff)
downloadfreebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.tar.gz
freebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.tar.zst
freebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.zip
Revert recent strfile changes, strfile is already in base
With hat: portmgr
Diffstat (limited to 'misc')
-rw-r--r--misc/fortune-mod-bible/Makefile18
-rw-r--r--misc/fortune-mod-bofh/Makefile16
-rw-r--r--misc/fortune-mod-culmea-culmilor/Makefile.fortune23
-rw-r--r--misc/fortune-mod-epictetus/Makefile16
-rw-r--r--misc/fortune-mod-futurama/Makefile16
-rw-r--r--misc/fortuneit/Makefile9
6 files changed, 60 insertions, 38 deletions
diff --git a/misc/fortune-mod-bible/Makefile b/misc/fortune-mod-bible/Makefile
index b0af294e6080..570654e4f431 100644
--- a/misc/fortune-mod-bible/Makefile
+++ b/misc/fortune-mod-bible/Makefile
@@ -7,28 +7,32 @@ PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= SF/fortunebible/fortunebible/Genesis
DISTNAME= bible
-DIST_SUBDIR= ${PORTNAME}
MAINTAINER= doug@polands.org
COMMENT= King James V Bible in fortune file format
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-
+DIST_SUBDIR= ${PORTNAME}
NO_WRKSUBDIR= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
USES= tar:bzip2
SUB_FILES+= pkg-message
-_STRFILE= ${LOCALBASE}/bin/fortune_strfile
+.if exists(/usr/games/strfile)
+_STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+_STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
post-extract:
${RM} ${WRKSRC}/bible.dat
do-build:
- (cd ${WRKSRC} && ${_STRFILE} -C bible)
+ @cd ${WRKSRC} && ${_STRFILE} -C bible
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/bible* \
- ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/bible* ${STAGEDIR}${PREFIX}/share/games/fortune
+
.include <bsd.port.mk>
diff --git a/misc/fortune-mod-bofh/Makefile b/misc/fortune-mod-bofh/Makefile
index 772f20e671e4..76d642870d10 100644
--- a/misc/fortune-mod-bofh/Makefile
+++ b/misc/fortune-mod-bofh/Makefile
@@ -12,20 +12,24 @@ DISTFILES= bofh-fortune-mod${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= onatan@gmail.com
COMMENT= Compilation of excuses from the "Bastard Operator From Hell"
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-STRFILE= ${LOCALBASE}/bin/fortune_strfile
-
WRKSRC= ${WRKDIR}/bofh-fortune-mod2.0
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
+.if exists(/usr/games/strfile)
+STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
+
do-build:
- ${STRFILE} ${WRKSRC}/bofh
+ @${STRFILE} ${WRKSRC}/bofh
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/bofh* \
- ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/bofh* ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>
diff --git a/misc/fortune-mod-culmea-culmilor/Makefile.fortune b/misc/fortune-mod-culmea-culmilor/Makefile.fortune
index 682b3b5aa958..99ea4224b809 100644
--- a/misc/fortune-mod-culmea-culmilor/Makefile.fortune
+++ b/misc/fortune-mod-culmea-culmilor/Makefile.fortune
@@ -2,9 +2,13 @@
NO_WRKSUBDIR= yes
-_STRFILE= ${LOCALBASE}/bin/fortune_strfile
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-
+.if exists(/usr/games/strfile)
+_STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+_STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
_STRFILE_ARGS?= -C
_FORTUNE_DIR= share/games/fortune
FORTUNE_DIR= ${PREFIX}/${_FORTUNE_DIR}
@@ -25,22 +29,19 @@ post-extract:
PKGMESSAGE= ${WRKDIR}/pkg-message
do-build:
- (cd ${WRKSRC} && ${_STRFILE} ${_STRFILE_ARGS} ${PORTNAME})
- if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
+ @cd ${WRKSRC} && ${_STRFILE} ${_STRFILE_ARGS} ${PORTNAME}
+ @if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
cd ${WRKSRC} && ${_STRFILE} ${_STRFILE_ARGS} ${PORTNAME}-o; \
fi
-
do-install:
@${MKDIR} ${STAGEDIR}${FORTUNE_DIR}
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME} \
- ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.dat \
- ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}.dat
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.dat ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE}.dat
if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-o ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE_O}; \
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-o.dat ${STAGEDIR}${FORTUNE_DIR}/${FORTUNE_FILE_O}.dat; \
fi
- if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
+ @if [ -f ${WRKSRC}/${PORTNAME}-o ]; then \
${ECHO_CMD} ${_FORTUNE_DIR}/${FORTUNE_FILE_O} >> ${TMPPLIST}; \
${ECHO_CMD} ${_FORTUNE_DIR}/${FORTUNE_FILE_O}.dat >> ${TMPPLIST}; \
fi
diff --git a/misc/fortune-mod-epictetus/Makefile b/misc/fortune-mod-epictetus/Makefile
index 1be7264212b1..34d9371121ef 100644
--- a/misc/fortune-mod-epictetus/Makefile
+++ b/misc/fortune-mod-epictetus/Makefile
@@ -12,21 +12,25 @@ COMMENT= Quotes from Epictetus
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-STRFILE= ${LOCALBASE}/bin/fortune_strfile
-
USE_GITHUB= yes
GH_ACCOUNT= akosela
PLIST_FILES= share/games/fortune/epictetus \
share/games/fortune/epictetus.dat
+.if exists(/usr/games/strfile)
+STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
+
do-build:
- (cd ${WRKSRC} && ${STRFILE} epictetus)
+ @(cd ${WRKSRC} && ${STRFILE} epictetus)
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/epictetus* \
- ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/epictetus* ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>
diff --git a/misc/fortune-mod-futurama/Makefile b/misc/fortune-mod-futurama/Makefile
index 7fc515e49acf..ef26cfd4d026 100644
--- a/misc/fortune-mod-futurama/Makefile
+++ b/misc/fortune-mod-futurama/Makefile
@@ -11,20 +11,24 @@ MASTER_SITES= http://www.netmeister.org/apps/ \
MAINTAINER= freebsd@skysmurf.nl
COMMENT= Compilation of quotes from the TV series "Futurama"
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-
USES= tar:bzip2
SUB_FILES= pkg-message
-STRFILE= ${LOCALBASE}/bin/fortune_strfile
PLIST_FILES= share/games/fortune/futurama share/games/fortune/futurama.dat
+.if exists(/usr/games/strfile)
+STRFILE= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRFILE= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
+
do-build:
- ${STRFILE} ${WRKSRC}/futurama
+ @${STRFILE} ${WRKSRC}/futurama
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/futurama* \
- ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/futurama* ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>
diff --git a/misc/fortuneit/Makefile b/misc/fortuneit/Makefile
index a12b8c8c3d69..4e6ee5c3dff8 100644
--- a/misc/fortuneit/Makefile
+++ b/misc/fortuneit/Makefile
@@ -10,8 +10,13 @@ DISTNAME= fortune-it-${PORTVERSION}
MAINTAINER= gmarco@gufi.org
COMMENT= Funny fortune file in Italian
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-STRCMD= ${LOCALBASE}/bin/fortune_strfile
+.if exists(/usr/games/strfile)
+STRCMD= /usr/games/strfile
+.elif exists(/usr/bin/strfile)
+STRCMD= /usr/bin/strfile
+.else
+IGNORE= needs strfile command. Please install games distribution of base system
+.endif
FORTUNEFILES= adams banner computer definizioni formiche italia itatrek \
jackfr leggi luke luttazzi norm paolotedeschi zuse \