From 01f412b778be01be5fdc37874381b3465f620c29 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 21 Jan 2020 19:44:19 +0100 Subject: [PATCH] x11-misc/polybar: import --- metadata/repository_mask.conf | 1 + .../x11-misc/polybar/polybar-3.4.2.exheres-0 | 10 +++ .../x11-misc/polybar/polybar-scm.exheres-0 | 13 +++ packages/x11-misc/polybar/polybar.exlib | 83 +++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 packages/x11-misc/polybar/polybar-3.4.2.exheres-0 create mode 100644 packages/x11-misc/polybar/polybar-scm.exheres-0 create mode 100644 packages/x11-misc/polybar/polybar.exlib diff --git a/metadata/repository_mask.conf b/metadata/repository_mask.conf index 52705947..292bc43f 100644 --- a/metadata/repository_mask.conf +++ b/metadata/repository_mask.conf @@ -28,6 +28,7 @@ x11-apps/terminator[~scm] x11-misc/cbatticon[~scm] x11-misc/fsearch[~scm] + x11-misc/polybar[~scm] x11-wm/i3[~scm] ) [[ *author = [ Julian Ospald ] diff --git a/packages/x11-misc/polybar/polybar-3.4.2.exheres-0 b/packages/x11-misc/polybar/polybar-3.4.2.exheres-0 new file mode 100644 index 00000000..6a5072a9 --- /dev/null +++ b/packages/x11-misc/polybar/polybar-3.4.2.exheres-0 @@ -0,0 +1,10 @@ +# Copyright 2019 Danilo Spinella +# Distributed under the terms of the GNU General Public License v2 + +require polybar + +PLATFORMS="~amd64" + +WORK="${WORKBASE}/${PN}" +CMAKE_SOURCE=${WORK} + diff --git a/packages/x11-misc/polybar/polybar-scm.exheres-0 b/packages/x11-misc/polybar/polybar-scm.exheres-0 new file mode 100644 index 00000000..07a4d052 --- /dev/null +++ b/packages/x11-misc/polybar/polybar-scm.exheres-0 @@ -0,0 +1,13 @@ +# Copyright 2018 Danilo Spinella +# Distributed under the terms of the GNU General Public License v2 + +SCM_REPOSITORY="https://github.com/polybar/${PN}" +SCM_i3ipcpp_REPOSITORY="https://github.com/polybar/i3ipcpp" +SCM_xpp_REPOSITORY="https://github.com/polybar/xpp" +SCM_SECONDARY_REPOSITORIES="i3ipcpp xpp" +SCM_EXTERNAL_REFS="lib/i3ipcpp:i3ipcpp lib/xpp:xpp" + +require polybar + +PLATFORMS="~amd64" + diff --git a/packages/x11-misc/polybar/polybar.exlib b/packages/x11-misc/polybar/polybar.exlib new file mode 100644 index 00000000..5ac5ad55 --- /dev/null +++ b/packages/x11-misc/polybar/polybar.exlib @@ -0,0 +1,83 @@ +# Copyright 2018 Danilo Spinella +# Distributed under the terms of the GNU General Public License v2 + +require github [ user='polybar' release="${PV}" suffix=tar ] cmake [ api=2 ] + +export_exlib_phases src_prepare + +SUMMARY="A fast and easy-to-use status bar." + +LICENCES="MIT" +SLOT="0" +MYOPTIONS=" + alsa + curl [[ description = [ Support for github module ] ]] + mpd + network + i3 + pulseaudio + X +" + +DEPENDENCIES=" + build+run: + dev-lang/python:2.7 + x11-libs/cairo + x11-libs/libxcb + x11-proto/xcb-proto + x11-utils/xcb-util-image + x11-utils/xcb-util-wm + alsa? ( + sys-sound/alsa-lib + ) + curl? ( + net-misc/curl + ) + mpd? ( + media-sound/mpd + ) + pulseaudio? ( + media-sound/pulseaudio + ) + network? ( + net-libs/libnl + ) + X? ( + x11-proto/xcb-proto[>=1.12] + x11-libs/libXrandr + x11-utils/xcb-util-cursor + x11-utils/xcb-util-xrm + ) + recommendation: + fonts/unifont +" + +CMAKE_SRC_CONFIGURE_OPTION_ENABLES=( + 'alsa ALSA' + 'curl CURL' + 'i3 I3' + 'mpd MPD' + 'network NETWORK' + 'pulseaudio PULSEAUDIO' +) + +CMAKE_SRC_CONFIGURE_OPTION_WITHS=( + 'network LIBNL' +) + +CMAKE_SRC_CONFIGURE_OPTION_WITHS=( + 'X XCOMPOSITE' + 'X XCURSOR' + 'X XRANDR' + 'X XRANDR_MONITORS' + 'X XKB' + 'X XRM' +) + +polybar_src_prepare() { + edo mkdir "${TEMP}"/fakebin + edo ln -s /usr/host/bin/python2 "${TEMP}"/fakebin/python + export PATH="${TEMP}/fakebin/:${PATH}" + + default +}