+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>a@b.com</email>
- <name>pinky-bar</name>
- </maintainer>
- <upstream>
- <remote-id type="github">pinky-bar</remote-id>
- </upstream>
- <use>
- <flag name="x11">Enable it if you are using dwm.</flag>
- <flag name="alsa">To get the sound volume level.</flag>
- <flag name="net">Enable the internet related options</flag>
- <flag name="libnl">Enable the wifi related options regarding chipsets supporting the cfg80211,mac80211 modules</flag>
- <flag name="pci">To get the NIC vendor and model names</flag>
- <flag name="dvd">To get the cdrom dvdrom vendor and model names</flag>
- <flag name="sensors">Alternative way to obtain data from the sensors</flag>
- <flag name="ncurses">Output the data to the terminal using the ncurses library</flag>
- <flag name="colours">Colorize the output data</flag>
- <flag name="weather">The temperature outside</flag>
- <flag name="mpd">To see the currently played song name</flag>
- <flag name="drivetemp">Read the drive temperature from S.M.A.R.T</flag>
- <flag name="drivetemp-light">Read the drive temperature from S.M.A.R.T light version</flag>
- <flag name="smartemp">Read the drive temperature from S.M.A.R.T</flag>
- <flag name="perl">Extend pinkybar with your own crafted scripts written in perl, stored in /usr/share/pinkysc/pinky.pl</flag>
- <flag name="python2">Extend pinkybar with your own crafted scripts written in python, stored in /usr/share/pinkysc/pinky.py</flag>
- <flag name="ruby">Extend pinkybar with your own crafted scripts written in ruby, stored in /usr/share/pinkysc/pinky.rb</flag>
- <flag name="R">Extend pinkybar with your own crafted scripts written in R, stored in /usr/share/pinkysc/pinky.R</flag>
- <flag name="lisp">Extend pinkybar with your own crafted scripts written in lisp, stored in /usr/share/pinkysc/pinky.lisp</flag>
- <flag name="slang">Extend pinkybar with your own crafted scripts written in slang, stored in /usr/share/pinkysc/pinky.sl</flag>
- <flag name="tcl">Extend pinkybar with your own crafted scripts written in tcl, stored in /usr/share/pinkysc/pinky.tcl</flag>
- <flag name="cpp">Extend pinkybar with cpp</flag>
- </use>
-</pkgmetadata>
+++ /dev/null
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-EGIT_REPO_URI="https://github.com/su8/pinky-bar.git"
-
-inherit git-r3
-
-DESCRIPTION="Gather some system information and show it in this statusbar program"
-HOMEPAGE="https://github.com/su8/pinky-bar"
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="x11 alsa +net libnl +pci dvd sensors ncurses colours weather mpd drivetemp drivetemp-light smartemp perl python2 lua ruby R lisp slang tcl cpp"
-
-DEPEND="
- sys-devel/m4
- sys-apps/gawk
- sys-devel/autoconf
- >=sys-devel/automake-1.14.1
- dev-lang/perl
-"
-RDEPEND="
- alsa? ( media-libs/alsa-lib )
- x11? ( x11-libs/libX11 )
- net? ( sys-apps/iproute2 )
- libnl? ( >=dev-libs/libnl-3.2.27 dev-util/pkgconfig )
- pci? ( sys-apps/pciutils )
- dvd? ( dev-libs/libcdio )
- sensors? ( sys-apps/lm_sensors )
- ncurses? ( sys-libs/ncurses )
- weather? ( net-misc/curl app-arch/gzip )
- mpd? ( media-sound/mpd media-libs/libmpdclient )
- drivetemp? ( net-misc/curl app-admin/hddtemp )
- drivetemp-light? ( app-admin/hddtemp )
- smartemp? ( sys-apps/smartmontools )
- python2? ( dev-lang/python:2.7= )
- lua? ( dev-lang/lua )
- ruby? ( dev-lang/ruby )
- R? ( dev-lang/R )
- lisp? ( dev-lips/ecls )
- slang? ( sys-libs/slang )
- tcl? ( dev-lang/tcl )
-"
-REQUIRED_USE="
- x11? ( !ncurses )
- ncurses? ( !x11 )
- drivetemp? ( !smartemp )
- drivetemp-light? ( !smartemp )
- smartemp? ( !drivetemp !drivetemp-light )
-"
-
-pkg_setup() {
- if use weather
- then
- einfo 'Currently, the weather USE flag will default to London,uk'
- einfo 'To specify other country and town youll have to supply them as variable.'
- einfo 'Here is how: # TWN="London,uk" USE="weather" emerge -a ...'
- fi
-}
-
-src_prepare() {
- default
-
- einfo 'Generating Makefiles'
- perl set.pl 'gentoo'
- autoreconf -if
-}
-
-src_configure() {
- export PKG_CONFIG_PATH=/usr/bin/pkg-config
-
- econf \
- $(use_with x11) \
- $(use_with lua) \
- $(use_with ruby) \
- $(use_with R) \
- $(use_with lisp) \
- $(use_with slang) \
- $(use_with tcl) \
- $(use_with cpp) \
- $(use_with x11) \
- $(use_with alsa) \
- $(use_with net) \
- $(use_with libnl) \
- $(use_with pci) \
- $(use_with dvd) \
- $(use_with sensors) \
- $(use_with ncurses) \
- $(use_with colours) \
- $(use_with weather) \
- $(use_with mpd) \
- $(use_with drivetemp) \
- $(use_with drivetemp-light) \
- $(use_with smartemp) \
- $(use_with perl) \
- $(use_with python2) \
- perl_script='/usr/share/pinkysc/pinky.pl' \
- python_script='/usr/share/pinkysc/pinky.py' \
- api_town="${TWN:-London,uk}" \
- api_key='28459ae16e4b3a7e5628ff21f4907b6f' \
- icons='/usr/share/icons/xbm_icons'
-}
-
-src_compile() {
- emake 'all'
-}
-
-src_install() {
- if use colours && ! use x11 && ! use ncurses
- then
- insinto /usr/share/icons/xbm_icons
- doins "${S}"/extra/xbm_icons/*
- fi
-
- if use perl || use python2 || use lua || \
- use R || use ruby || use rust || use tcl \
- use slang || use lisp
- then
- insinto /usr/share/pinkysc
- doins "${S}"/extra/scripts/pinky.{py,pl,R,rb,sl,tcl,lua,lisp}
- fi
-
- emake DESTDIR="${D}" install
-}
-
-pkg_postinst() {
- use ncurses && \
- einfo 'You can combine the output from this program with pinky-curses'
-
- use perl || use python2 || use lua || \
- use R || use ruby || use tcl \
- use slang || use lisp && \
- einfo 'The script resides in /usr/share/pinkysc/'
-
- einfo 'Please read the program man page'
-}