summaryrefslogtreecommitdiff
path: root/app-misc/screenfetch
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-05-21 17:23:15 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-05-21 17:23:15 +0300
commitfdb3b40671cf34641fa6f2a130019a50a57e8641 (patch)
tree877ddbe7388c2cb87b4d0b355b1606262d50c165 /app-misc/screenfetch
parentdc8ed890bbf0e2f79ad15ee972b606a5e9fdeba2 (diff)
[screenfetch] added screenfetch stable
Diffstat (limited to 'app-misc/screenfetch')
-rw-r--r--app-misc/screenfetch/Manifest1
-rw-r--r--app-misc/screenfetch/files/kogaion.patch92
-rw-r--r--app-misc/screenfetch/metadata.xml12
-rw-r--r--app-misc/screenfetch/screenfetch-3.6.5-r1.ebuild35
-rw-r--r--app-misc/screenfetch/screenfetch-9999.ebuild31
5 files changed, 171 insertions, 0 deletions
diff --git a/app-misc/screenfetch/Manifest b/app-misc/screenfetch/Manifest
new file mode 100644
index 00000000..810de609
--- /dev/null
+++ b/app-misc/screenfetch/Manifest
@@ -0,0 +1 @@
+DIST screenfetch-3.6.5.tar.gz 54153 SHA256 b6605a94be9720a5e64778dcc43ddf23e435d6704c5d177b671aa57d34966f20 SHA512 291ec0d313deebe7931b739578b69f590ae32cb7a59c5ae6975b25240d9c5bd92b8957d6a53baf78aa95737642eadd37e081fae5b5ca5120da5a9d76bb980c59 WHIRLPOOL 33b8be75c98e09adde332792b10ff1aa808d6ed5d170aaeb9ee8eaa25925119b82a49902d39d810ae908fc65a864d5b7b6cbe9ce956054b08a8eda96e3ac4ab3
diff --git a/app-misc/screenfetch/files/kogaion.patch b/app-misc/screenfetch/files/kogaion.patch
new file mode 100644
index 00000000..00a92e2f
--- /dev/null
+++ b/app-misc/screenfetch/files/kogaion.patch
@@ -0,0 +1,92 @@
+--- screenfetch-dev~ 2015-05-21 10:38:27.187030904 +0200
++++ screenfetch-dev 2015-05-21 10:39:50.374805454 +0200
+@@ -435,8 +435,8 @@
+ distro_codename=null
+ elif [[ "${distro_detect}" == "CentOS" || "${distro_detect}" =~ "RedHatEnterprise" ]]; then
+ distro="Red Hat Enterprise Linux"
+- elif [[ "${distro_detect}" == "Kogaion" ]]; then
+- distro="Kogaion"
++ elif [[ "${distro_detect}" == "kogaion" ]]; then
++ distro="kogaion"
+ elif [[ "${distro_detect}" == "SolusOS" ]]; then
+ distro="SolusOS"
+ elif [[ "${distro_detect}" == "Trisquel" ]]; then
+@@ -540,7 +540,7 @@
+ elif [ -f /etc/redhat-release ] && grep -q "CentOS" /etc/redhat-release; then distro="CentOS"
+ elif [ -f /etc/slackware-version ]; then distro="Slackware"
+ elif [ -f /usr/share/doc/tc/release.txt ]; then distro="TinyCore"
+- elif [ -f /etc/kogaion-edition ]; then distro="Kogaion"; fi
++ elif [ -f /etc/kogaion-edition ]; then distro="kogaion"; fi
+ else
+ if [[ -x /usr/bin/sw_vers ]] && /usr/bin/sw_vers | grep -i "Mac OS X" >/dev/null; then
+ distro="Mac OS X"
+@@ -725,13 +725,13 @@
+
+ # Package Count - Begin
+ detectpkgs () {
+- pkgs="Unknown"
++ pkgs=""
+ case "${distro}" in
+ 'Arch Linux'|'Parabola GNU/Linux-libre'|'Chakra'|'Manjaro'|'Antergos'|'KaOS') pkgs=$(pacman -Qq | wc -l) ;;
+ 'Frugalware') pkgs=$(pacman-g2 -Q | wc -l) ;;
+ 'Fuduntu'|'Ubuntu'|'Mint'|'SolusOS'|'Debian'|'Raspbian'|'LMDE'|'CrunchBang'|'Peppermint'|'LinuxDeepin'|'Deepin'|'Kali Linux'|'Trisquel'|'elementary OS') pkgs=$(dpkg --get-selections | wc -l) ;;
+ 'Slackware') pkgs=$(ls -1 /var/log/packages | wc -l) ;;
+- 'Gentoo'|'Kogaion'|'Funtoo') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
++ 'Gentoo'|'Funtoo'|'kogaion') pkgs=$(ls -d /var/db/pkg/*/* | wc -l) ;;
+ 'Fedora'|'Korora'|'openSUSE'|'Red Hat Enterprise Linux'|'CentOS'|'Mandriva'|'Mandrake'|'Mageia'|'Viperr') pkgs=$(rpm -qa | wc -l) ;;
+ 'Void') pkgs=$(xbps-query -l|wc -l);;
+ 'Evolve OS') pkgs=$(pisi list-installed | wc -l);;
+@@ -3077,28 +3077,29 @@
+ "${c1} .")
+ ;;
+
+- "Kogaion")
++ "kogaion")
+ if [[ "$no_color" != "1" ]]; then
+ c1=$(getColor 'white') # White
+- c2=$(getColor 'light blue') # Blue
++ c2=$(getColor 'light grey') # Red
+ fi
+ if [ -n "${my_lcolor}" ]; then c1="${my_lcolor}"; fi
+ startline="0"
+- fulloutput=("${c2} ........... %s"
++ fulloutput=(
++"${c2} ........... %s"
+ "${c2} .. .. %s"
+ "${c2} .. .. %s"
+-"${c2} .. ${c1}o ${c2}.. %s"
+-"${c2} .. ${c1}:W' ${c2}.. %s"
+-"${c2} .. ${c1}.d. ${c2}.. %s"
+-"${c2}:. ${c1}.KNO ${c2}.: %s"
+-"${c2}:. ${c1}cNNN. ${c2}.: %s"
+-"${c2}: ${c1}dXXX, ${c2}: %s"
+-"${c2}: ${c1}. dXXX, .cd, ${c2}: %s"
+-"${c2}: ${c1}'kc .. dKKK. ,ll;:' ${c2}: %s"
+-"${c2}: ${c1}.xkkxc;..dkkkc',cxkkl ${c2}: %s"
+-"${c2}:. ${c1}.,cdddddddddddddo:. ${c2}.: %s"
+-"${c2} .. ${c1}:lllllll: ${c2}.. %s"
+-"${c2} .. ${c1}',,,,, ${c2}.. %s"
++"${c2} .. ${c1}: ${c2}.. %s"
++"${c2} .. ${c1}.:. ${c2}.. %s"
++"${c2} .. ${c1}.:. ${c2}.. %s"
++"${c2}:. ${c1}.:::. ${c2}.: %s"
++"${c2}:. ${c1}.:::. ${c2}.: %s"
++"${c2}: ${c1}.:::. : ${c2}: %s"
++"${c2}: ${c1}: .:::. ... ${c2}: %s"
++"${c2}: ${c1}.... .:::. ...... ${c2}: %s"
++"${c2}: ${c1}..................... ${c2}: %s"
++"${c2}:. ${c1}................... ${c2}.: %s"
++"${c2} .. ${c1}.......... ${c2}.. %s"
++"${c2} .. ${c1}...... ${c2}.. %s"
+ "${c2} .. .. %s"
+ "${c2} .. .. %s"
+ "${c2} ............... %s")
+@@ -3365,7 +3366,7 @@
+ myascii="${distro}"
+ [[ "${asc_distro}" ]] && myascii="${asc_distro}"
+ case ${myascii} in
+- "Arch Linux - Old"|"Fedora"|"Korora"|"Mandriva"|"Mandrake"|"Chakra"|"Kogaion"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"|"KaOS") labelcolor=$(getColor 'light blue');;
++ "Arch Linux - Old"|"Fedora"|"Korora"|"Mandriva"|"Mandrake"|"Chakra"|"kogaion"|"Slackware"|"Mac OS X"|"Trisquel"|"Kali Linux"|"Jiyuu Linux"|"Antergos"|"KaOS") labelcolor=$(getColor 'light blue');;
+ "Arch Linux"|"Frugalware"|"Mageia"|"Deepin") labelcolor=$(getColor 'light cyan');;
+ "Mint"|"LMDE"|"openSUSE"|"LinuxDeepin"|"DragonflyBSD"|"Manjaro"|"Manjaro-tree"|"Android"|"Void") labelcolor=$(getColor 'light green');;
+ "Ubuntu-3color"|"FreeBSD"|"FreeBSD - Old"|"Debian"|"Raspbian"|"BSD"|"Red Hat Enterprise Linux"|"Peppermint"|"Cygwin"|"Fuduntu"|"NetBSD"|"Scientific Linux"|"DragonFlyBSD"|"BackTrack Linux") labelcolor=$(getColor 'light red');;
diff --git a/app-misc/screenfetch/metadata.xml b/app-misc/screenfetch/metadata.xml
new file mode 100644
index 00000000..fb77a4a3
--- /dev/null
+++ b/app-misc/screenfetch/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>hwoarang@gentoo.org</email>
+<name>Markos Chandras</name>
+</maintainer>
+<use>
+<flag name="X">Use the <pkg>media-gfx/scrot</pkg> package to take screenshots</flag>
+</use>
+</pkgmetadata>
+
diff --git a/app-misc/screenfetch/screenfetch-3.6.5-r1.ebuild b/app-misc/screenfetch/screenfetch-3.6.5-r1.ebuild
new file mode 100644
index 00000000..50c63885
--- /dev/null
+++ b/app-misc/screenfetch/screenfetch-3.6.5-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/screenfetch/screenfetch-3.6.5.ebuild,v 1.1 2015/02/01 12:58:08 hwoarang Exp $
+
+EAPI=5
+inherit eutils
+MY_PN="${PN/f/F}"
+DESCRIPTION="A Bash Screenshot Information Tool"
+HOMEPAGE="https://github.com/KittyKatt/screenFetch"
+if [[ ${PV} == *9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="https://github.com/KittyKatt/screenFetch"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/KittyKatt/${MY_PN}/archive/v${PV}.tar.gz -> \
+ ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="X"
+
+DEPEND=""
+RDEPEND="X? ( media-gfx/scrot x11-apps/xdpyinfo )"
+
+src_prepare(){
+ epatch ${FILESDIR}/kogaion.patch
+}
+
+src_install() {
+ newbin ${PN}-dev ${PN}
+ dodoc CHANGELOG README.mkdn TODO
+}
diff --git a/app-misc/screenfetch/screenfetch-9999.ebuild b/app-misc/screenfetch/screenfetch-9999.ebuild
new file mode 100644
index 00000000..cf044dbf
--- /dev/null
+++ b/app-misc/screenfetch/screenfetch-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/screenfetch/screenfetch-9999.ebuild,v 1.4 2014/07/14 16:43:15 hwoarang Exp $
+
+EAPI=4
+
+MY_PN="${PN/f/F}"
+DESCRIPTION="A Bash Screenshot Information Tool"
+HOMEPAGE="https://github.com/KittyKatt/screenFetch"
+if [[ ${PV} == *9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="https://github.com/KittyKatt/screenFetch"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/KittyKatt/${MY_PN}/archive/v${PV}.tar.gz -> \
+ ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="X"
+
+DEPEND=""
+RDEPEND="X? ( media-gfx/scrot x11-apps/xdpyinfo )"
+
+src_install() {
+ newbin ${PN}-dev ${PN}
+ dodoc CHANGELOG README.mkdn TODO
+}