Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 06:17:35 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r323371 - in head/sysutils: . screenfetch screenfetch/files
Message-ID:  <201307210617.r6L6HZKB000669@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Sun Jul 21 06:17:34 2013
New Revision: 323371
URL: http://svnweb.freebsd.org/changeset/ports/323371

Log:
  screenFetch is a "Bash Screenshot Information Tool". This handy Bash script can
  be used to generate one of those nifty terminal theme information + ASCII
  distribution logos you see in everyone's screenshots nowadays. It will
  auto-detect your distribution and display an ASCII version of that
  distribution's logo and some valuable information to the right. There are
  options to specify no ascii art, colors, taking a screenshot upon displaying
  info, and even customizing the screenshot command! This script is very easy to
  add to and can easily be extended.
  
  WWW: https://github.com/KittyKatt/screenFetch

Added:
  head/sysutils/screenfetch/
  head/sysutils/screenfetch/Makefile   (contents, props changed)
  head/sysutils/screenfetch/distinfo   (contents, props changed)
  head/sysutils/screenfetch/files/
  head/sysutils/screenfetch/files/patch-screenfetch-dev   (contents, props changed)
  head/sysutils/screenfetch/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Sun Jul 21 06:05:48 2013	(r323370)
+++ head/sysutils/Makefile	Sun Jul 21 06:17:34 2013	(r323371)
@@ -866,6 +866,7 @@
     SUBDIR += schedutils
     SUBDIR += scprotect
     SUBDIR += screen
+    SUBDIR += screenfetch
     SUBDIR += screenie
     SUBDIR += sdd
     SUBDIR += sdparm

Added: head/sysutils/screenfetch/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/screenfetch/Makefile	Sun Jul 21 06:17:34 2013	(r323371)
@@ -0,0 +1,40 @@
+# Created by: Jason Helfman <jgh@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	screenFetch
+PORTVERSION=	3.0.5
+CATEGORIES=	sysutils
+MASTER_SITES=	GH
+
+MAINTAINER=	jgh@FreeBSD.org
+COMMENT=	Bash Screenshot Information Tool
+
+LICENSE=	GPLv3
+
+RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash \
+		xdpyinfo:${PORTSDIR}/x11/xdpyinfo
+
+OPTIONS_DEFINE=	DOCS
+
+NO_BUILD=	yes
+USE_GITHUB=	yes
+GH_ACCOUNT=	KittyKatt
+GH_TAGNAME=	dcf0dd9
+GH_COMMIT=	${GH_TAGNAME}
+
+PLIST_FILES=	bin/screenFetch
+PORTDOCS=	CHANGELOG README.mkdn TODO
+
+.include <bsd.port.options.mk>
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME:L}-dev ${PREFIX}/bin/${PORTNAME}
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>

Added: head/sysutils/screenfetch/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/screenfetch/distinfo	Sun Jul 21 06:17:34 2013	(r323371)
@@ -0,0 +1,2 @@
+SHA256 (screenFetch-3.0.5.tar.gz) = ac7f7aad7a600d5cb84e464d533d8a0d7104635f702c86a4eb44dfe96bae6646
+SIZE (screenFetch-3.0.5.tar.gz) = 45192

Added: head/sysutils/screenfetch/files/patch-screenfetch-dev
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/screenfetch/files/patch-screenfetch-dev	Sun Jul 21 06:17:34 2013	(r323371)
@@ -0,0 +1,20 @@
+--- ./screenfetch-dev.orig	2013-07-19 23:33:57.000000000 -0700
++++ ./screenfetch-dev	2013-07-19 23:35:46.000000000 -0700
+@@ -686,13 +686,16 @@
+ 				pkgs=$((${pkgs} + ${brew_pkgs}))
+ 			fi
+ 		;;
+-		'FreeBSD'|'OpenBSD') 
++		'OpenBSD') 
+ 			pkgs=$(pkg_info | wc -l | awk '{sub(" ", "");print $1}')
+ 			if type -p portmaster >/dev/null 2>&1; then
+ 				ports=$(portmaster -l | grep -Eo '[0-9]+ total installed' | sed 's/ total installed//')
+ 				pkgs=$((${pkgs} + ${ports}))
+ 			fi
+ 		;;
++		'FreeBSD') 
++			pkgs=$(pkg info |wc -l|awk '{print $1}' || pkg_info | wc -l | awk '{sub(" ", "");print $1}')
++		;;
+ 		'Cygwin') cygfix=2; pkgs=$(($(cygcheck -cd | wc -l)-$cygfix)) ;;
+ 	esac
+ 	[[ "$verbosity" -eq "1" ]] && verboseOut "Finding current package count...found as '$pkgs'"

Added: head/sysutils/screenfetch/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/screenfetch/pkg-descr	Sun Jul 21 06:17:34 2013	(r323371)
@@ -0,0 +1,10 @@
+screenFetch is a "Bash Screenshot Information Tool". This handy Bash script can
+be used to generate one of those nifty terminal theme information + ASCII
+distribution logos you see in everyone's screenshots nowadays. It will
+auto-detect your distribution and display an ASCII version of that
+distribution's logo and some valuable information to the right. There are
+options to specify no ascii art, colors, taking a screenshot upon displaying
+info, and even customizing the screenshot command! This script is very easy to
+add to and can easily be extended.
+
+WWW: https://github.com/KittyKatt/screenFetch



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307210617.r6L6HZKB000669>