mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix LICENSE
- Add LICENSE_FILE - Add NO_ARCH - Switch to options helpers - Add simple test - Fix FreeBSD detection - Fix screenfetch failures in some cases due to not clearly understood reason: /usr/local/bin/screenfetch: line 4156: /dev/fd/62: Operation not supported /usr/local/bin/screenfetch: line 4157: 3: Bad file descriptor by importing upstream fix. PR: 213854 Submitted by: amdmi3 Approved by: jgh (maintainer)
This commit is contained in:
parent
bf87100b72
commit
17b4fb8b16
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425906
2 changed files with 42 additions and 1 deletions
|
@ -4,13 +4,15 @@
|
||||||
PORTNAME= screenFetch
|
PORTNAME= screenFetch
|
||||||
PORTVERSION= 3.7.0
|
PORTVERSION= 3.7.0
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils
|
CATEGORIES= sysutils
|
||||||
MASTER_SITES= LOCAL/jgh/sysutils/${PORTNAME:tl}/
|
MASTER_SITES= LOCAL/jgh/sysutils/${PORTNAME:tl}/
|
||||||
|
|
||||||
MAINTAINER= jgh@FreeBSD.org
|
MAINTAINER= jgh@FreeBSD.org
|
||||||
COMMENT= Bash Screenshot Information Tool
|
COMMENT= Bash Screenshot Information Tool
|
||||||
|
|
||||||
LICENSE= GPLv3
|
LICENSE= GPLv3+
|
||||||
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
|
||||||
RUN_DEPENDS= bash:shells/bash \
|
RUN_DEPENDS= bash:shells/bash \
|
||||||
xdpyinfo:x11/xdpyinfo
|
xdpyinfo:x11/xdpyinfo
|
||||||
|
@ -18,6 +20,7 @@ RUN_DEPENDS= bash:shells/bash \
|
||||||
OPTIONS_DEFINE= DOCS
|
OPTIONS_DEFINE= DOCS
|
||||||
|
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
NO_ARCH= yes
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= KittyKatt
|
GH_ACCOUNT= KittyKatt
|
||||||
|
|
||||||
|
@ -28,9 +31,14 @@ do-install:
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME:tl}-dev ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME:tl}-dev ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
||||||
${LN} -fs ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/screenfetch
|
${LN} -fs ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/screenfetch
|
||||||
${INSTALL_MAN} ${WRKSRC}/screenfetch.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
${INSTALL_MAN} ${WRKSRC}/screenfetch.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||||
|
|
||||||
|
do-install-DOCS-on:
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
.for file in ${PORTDOCS}
|
.for file in ${PORTDOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
|
do-test:
|
||||||
|
cd ${WRKSRC} && ./${PORTNAME:tl}-dev
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
33
sysutils/screenfetch/files/patch-screenfetch-dev
Normal file
33
sysutils/screenfetch/files/patch-screenfetch-dev
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
--- screenfetch-dev.orig 2015-07-14 12:32:02 UTC
|
||||||
|
+++ screenfetch-dev
|
||||||
|
@@ -515,6 +515,14 @@ detectdistro () {
|
||||||
|
if [ "$distro" == "Unknown" ]; then
|
||||||
|
if [ $(uname -o 2>/dev/null) ]; then
|
||||||
|
case "$(uname -o)" in
|
||||||
|
+ "FreeBSD")
|
||||||
|
+ distro="FreeBSD"
|
||||||
|
+ fake_distro="${distro}"
|
||||||
|
+ ;;
|
||||||
|
+ "DragonFly")
|
||||||
|
+ distro="DragonFlyBSD"
|
||||||
|
+ fake_distro="${distro}"
|
||||||
|
+ ;;
|
||||||
|
"Cygwin")
|
||||||
|
distro="Cygwin"
|
||||||
|
fake_distro="${distro}"
|
||||||
|
@@ -4151,11 +4159,10 @@ for i in "${display[@]}"; do
|
||||||
|
! [[ $Win_theme ]] && detectwmtheme;
|
||||||
|
else
|
||||||
|
if [[ "${display[*]}" =~ "$i" ]]; then
|
||||||
|
- if [[ "$errorSuppress" == "1" ]]; then detect${i} 2>/dev/null
|
||||||
|
- else
|
||||||
|
- exec 3> >(stderrOut)
|
||||||
|
- detect${i} 2>&3
|
||||||
|
- exec 3>&-
|
||||||
|
+ if [[ "$errorSuppress" == "1" ]]; then
|
||||||
|
+ detect${i} 2>/dev/null
|
||||||
|
+ else
|
||||||
|
+ detect${i}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue