diff options
Diffstat (limited to 'x11-misc/polybar')
-rw-r--r-- | x11-misc/polybar/Manifest | 6 | ||||
-rw-r--r-- | x11-misc/polybar/metadata.xml | 21 | ||||
-rw-r--r-- | x11-misc/polybar/polybar-3.1.0.ebuild | 63 | ||||
-rw-r--r-- | x11-misc/polybar/polybar-9999.ebuild | 48 |
4 files changed, 138 insertions, 0 deletions
diff --git a/x11-misc/polybar/Manifest b/x11-misc/polybar/Manifest new file mode 100644 index 000000000000..5f6559b96392 --- /dev/null +++ b/x11-misc/polybar/Manifest @@ -0,0 +1,6 @@ +DIST i3ipcpp-0.7.1.tar.gz 191417 BLAKE2B 62b76a0921c78f374309d26856c01d1467b8bd181ce922fd47daec406afda9d76eea9a1f473b4899e22f99e2ef36fc70f72db1bb17eb1f3e71a8431c2634b915 SHA512 ef9f591bb4436916ad038bcb0c15ea3415d1978ff264fb276108ddac89c98515c464fbf252429f6a76589cb78e1434adba2efefb5a844dadad0e261f3806fb72 +DIST polybar-3.1.0.tar.gz 418298 BLAKE2B 1c7394a17ff1ec5b0dec519b7aa58e63cfcec0f104d4302051f6e12753b7074c3d85072a3d78e7ce135c53d4ddd4a6f68ea61ffb7b2ad04997bbf0c836115046 SHA512 6d8759d9f750c2abfa79fe735615b0ed3d1827e3a88561317712c6f02cb32a0a77726f97cb419f3a040ae9085a34a23cb1aad0aacf3f14e56c542977b89036b2 +DIST xpp-1.4.0.tar.gz 84095 BLAKE2B 2af4221953abe7f40473c55cd50c608b54ebc85a62be65af987ed5e6c5eaf56fbd92531788becf39ba5ad52099ac78f36e9b2a2515b473f4d86ed5fda3fa5065 SHA512 d34cbbe2391db36db7dffac0415d26b7487536e97c4d7efd472ab0aeffa4c8e757ee030b05e2aa1cfa8a591ee591bb96a6db7eb9fa5850027f958e92f078739c +EBUILD polybar-3.1.0.ebuild 1631 BLAKE2B b62ddadaf5523f707314aeb4ab579550cbbd3b0c6187e1d3f5577d9a47c48192c298be1645788dbafbb70e268d0f47cc22338671aeb704f8e71e774577b74fff SHA512 1dd20cb7739e24957d6a59ec53359b2440efcc1ceb74eec73e510b65104f1506dec2a4b005e878435c184902234f311a488825222447935727d2ce81a291a38e +EBUILD polybar-9999.ebuild 1138 BLAKE2B 50a918fb6b09b958966e0e240b70802bc4859bc9506bd92ff188e02bd82d3e494f16f5993a6b896af1be6480ff716211a65547067a6931a7ea10274eb0716029 SHA512 91482dc564743240d37dae10143a62e6a5d6ae13659cf8f9390918df0f396e7bd2fcb85efcb8e19188844deba567e4df9df1b6e80ab3d7426fb4d39cfbcd9b16 +MISC metadata.xml 696 BLAKE2B 2b2762500174e5b8674161433cc5c862158dc1db4e057b4e92d3c7433e8c286a80111dd311bba04631f71d2a58817ed2c745f024da1a39b5622fafc57525e346 SHA512 a3fbaea3fa687472a671c7b209bcabaf8a3fcab86b53aa357aa776cc3b57a565eae933b50a6238dc73d46659ddd893ad1dbe9f312d828d05c26cf0945818d322 diff --git a/x11-misc/polybar/metadata.xml b/x11-misc/polybar/metadata.xml new file mode 100644 index 000000000000..4132afb3b38d --- /dev/null +++ b/x11-misc/polybar/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>kajzersoze72@gmail.com</email> + <name>Kajzer</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="i3wm">Add support for i3 window manager</flag> + <flag name="ipc">Add support for Inter-Process Messaging</flag> + <flag name="mpd">Add support for Music Player Daemon</flag> + <flag name="network">Enable network support</flag> + </use> + <upstream> + <remote-id type="github">jaagr/polybar</remote-id> + </upstream> +</pkgmetadata> diff --git a/x11-misc/polybar/polybar-3.1.0.ebuild b/x11-misc/polybar/polybar-3.1.0.ebuild new file mode 100644 index 000000000000..a04e956a0e9e --- /dev/null +++ b/x11-misc/polybar/polybar-3.1.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-single-r1 + +XPP_VERSION="1.4.0" +I3IPCPP_VERSION="0.7.1" + +DESCRIPTION="A fast and easy-to-use tool for creating status bars" +HOMEPAGE="https://github.com/jaagr/polybar" +SRC_URI="https://github.com/jaagr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/jaagr/xpp/archive/${XPP_VERSION}.tar.gz -> xpp-${XPP_VERSION}.tar.gz + https://github.com/jaagr/i3ipcpp/archive/v${I3IPCPP_VERSION}.tar.gz -> i3ipcpp-${I3IPCPP_VERSION}.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="alsa curl i3wm ipc mpd network" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + x11-base/xcb-proto + x11-libs/libxcb + x11-libs/xcb-util-wm + x11-libs/xcb-util-image + alsa? ( media-libs/alsa-lib ) + curl? ( net-misc/curl ) + i3wm? ( dev-libs/jsoncpp ) + mpd? ( media-libs/libmpdclient ) + network? ( net-wireless/wireless-tools ) +" + +RDEPEND="${DEPEND}" + +src_prepare() { + default + + rmdir "${S}"/lib/xpp || die + mv "${WORKDIR}"/xpp-$XPP_VERSION "${S}"/lib/xpp || die + + rmdir "${S}"/lib/i3ipcpp || die + mv "${WORKDIR}"/i3ipcpp-$I3IPCPP_VERSION "${S}"/lib/i3ipcpp || die + + sed -i "s/.*cpp_error,.*/&\n\t 'eventstruct' : lambda x, y: None,/" lib/xpp/generators/cpp_client.py || die "sed failed" +} + +src_configure() { + local mycmakeargs=( + -DENABLE_ALSA="$(usex alsa)" + -DENABLE_CURL="$(usex curl)" + -DENABLE_I3="$(usex i3wm)" + -DBUILD_IPC_MSG="$(usex ipc)" + -DENABLE_MPD="$(usex mpd)" + -DENABLE_NETWORK="$(usex network)" + ) + cmake-utils_src_configure +} diff --git a/x11-misc/polybar/polybar-9999.ebuild b/x11-misc/polybar/polybar-9999.ebuild new file mode 100644 index 000000000000..b21888340078 --- /dev/null +++ b/x11-misc/polybar/polybar-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils git-r3 python-single-r1 + +DESCRIPTION="A fast and easy-to-use tool for creating status bars" +HOMEPAGE="https://github.com/jaagr/polybar" +EGIT_REPO_URI="https://github.com/jaagr/${PN}.git" +EGIT_CLONE_TYPE="shallow" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" + +IUSE="alsa curl i3wm ipc mpd network pulseaudio" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + x11-base/xcb-proto + x11-libs/libxcb + x11-libs/xcb-util-wm + x11-libs/xcb-util-image + alsa? ( media-libs/alsa-lib ) + curl? ( net-misc/curl ) + i3wm? ( dev-libs/jsoncpp ) + mpd? ( media-libs/libmpdclient ) + network? ( net-wireless/wireless-tools ) + pulseaudio? ( media-sound/pulseaudio ) +" + +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DENABLE_ALSA="$(usex alsa)" + -DENABLE_CURL="$(usex curl)" + -DENABLE_I3="$(usex i3wm)" + -DBUILD_IPC_MSG="$(usex ipc)" + -DENABLE_MPD="$(usex mpd)" + -DENABLE_NETWORK="$(usex network)" + -DENABLE_PULSEAUDIO="$(usex pulseaudio)" + ) + cmake-utils_src_configure +} |