OSDN Git Service

Add Gentoo Ebuild
authora <a@b.c>
Tue, 18 Oct 2016 01:32:47 +0000 (03:32 +0200)
committera <a@b.c>
Tue, 18 Oct 2016 01:32:47 +0000 (03:32 +0200)
.gitignore
extra/Gentoo/app-admin/progname/metadata.xml [new file with mode: 0644]
extra/Gentoo/app-admin/progname/pinky-bar-9999.ebuild [new file with mode: 0644]

index 66ed8cb..03cd595 100644 (file)
@@ -28,5 +28,4 @@ src/pinky_curses
 !extra/FreeBSD/Makefile
 !extra/_pinkybar
 !extra/man_template.pdc
-!extra/Gentoo/app-admin/pinky-bar/metadata.xml
-!extra/Gentoo/app-admin/pinky-bar/pinky-bar-9999.ebuild
+!extra/Gentoo/app-admin/progname/*
diff --git a/extra/Gentoo/app-admin/progname/metadata.xml b/extra/Gentoo/app-admin/progname/metadata.xml
new file mode 100644 (file)
index 0000000..f19e784
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="project">
+               <email>office@gentoo.org</email>
+               <name>Gentoo Office project</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="gitlab">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>
+       </use>
+</pkgmetadata>
diff --git a/extra/Gentoo/app-admin/progname/pinky-bar-9999.ebuild b/extra/Gentoo/app-admin/progname/pinky-bar-9999.ebuild
new file mode 100644 (file)
index 0000000..a193fc2
--- /dev/null
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+EGIT_REPO_URI="https://gitlab.com/void0/pinky-bar.git"
+
+inherit eutils git-r3
+
+DESCRIPTION="Gather some system information and show it in this statusbar program"
+HOMEPAGE="https://gitlab.com/void0/pinky-bar"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="x11 alsa net libnl pci dvd sensors ncurses colours weather mpd"
+
+RDEPEND="
+       sys-devel/m4
+       sys-apps/gawk
+       sys-libs/glibc
+       sys-devel/autoconf
+       >=sys-devel/automake-1.14.1
+       sys-devel/autoconf-wrapper
+"
+DEPEND="
+       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 )
+"
+
+src_prepare() {
+       # eapply_user
+       default
+
+       chmod +x bootstrap
+       ./bootstrap 'gentoo'
+}
+
+src_configure() {
+       export PKG_CONFIG_PATH=/usr/bin/pkg-config
+
+       econf \
+               $(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) \
+               api_town='London,uk' \
+               api_key='28459ae16e4b3a7e5628ff21f4907b6f' \
+               icons=$HOME/.xmonad/icons
+}