diff options
Diffstat (limited to 'x11-misc/polybar')
-rw-r--r-- | x11-misc/polybar/Manifest | 4 | ||||
-rw-r--r-- | x11-misc/polybar/polybar-3.3.1.ebuild | 75 | ||||
-rw-r--r-- | x11-misc/polybar/polybar-9999.ebuild | 39 |
3 files changed, 110 insertions, 8 deletions
diff --git a/x11-misc/polybar/Manifest b/x11-misc/polybar/Manifest index 08102d2adcbb..828fb3c8a20a 100644 --- a/x11-misc/polybar/Manifest +++ b/x11-misc/polybar/Manifest @@ -1,6 +1,8 @@ DIST i3ipcpp-0.7.1.tar.gz 191417 BLAKE2B 62b76a0921c78f374309d26856c01d1467b8bd181ce922fd47daec406afda9d76eea9a1f473b4899e22f99e2ef36fc70f72db1bb17eb1f3e71a8431c2634b915 SHA512 ef9f591bb4436916ad038bcb0c15ea3415d1978ff264fb276108ddac89c98515c464fbf252429f6a76589cb78e1434adba2efefb5a844dadad0e261f3806fb72 DIST polybar-3.2.1.tar.gz 242327 BLAKE2B eb7bfe6e6d58fb4389016b8e5c73feea3984ce3ccefdb1acf202c6d2873a634e4d096658b850e8534c5c8c56e42ac66b3b8e80dabf5625491e5f56523b043ddf SHA512 e93c33738029b2e56a5dda75cbf3ee804c0d89c406444da6991ea8a5dd00e5544ef51d20f3d67ec293fc55ab7095e8e3057aaf8d1c08af61cf0531297e55a18d +DIST polybar-3.3.1.tar.gz 248790 BLAKE2B 30c2cd2ff537f3a2fe2fe7ce489b5a0ab76a54cd42bbdf8b3727e5f4298898e289c6ea10a460385d8bcdc8ab11749255573bf7d728a01eae895a1ed8a2214c27 SHA512 c0bfaf99dcd19f8fcca8bd041c0f9e5f11fb822c92cf12edc2c59e67896f566ee46d1a0d75f5583d393af3a1958c3244a4eb28224f6336e9eaa98a50d740f834 DIST xpp-1.4.0.tar.gz 84095 BLAKE2B 2af4221953abe7f40473c55cd50c608b54ebc85a62be65af987ed5e6c5eaf56fbd92531788becf39ba5ad52099ac78f36e9b2a2515b473f4d86ed5fda3fa5065 SHA512 d34cbbe2391db36db7dffac0415d26b7487536e97c4d7efd472ab0aeffa4c8e757ee030b05e2aa1cfa8a591ee591bb96a6db7eb9fa5850027f958e92f078739c EBUILD polybar-3.2.1.ebuild 1788 BLAKE2B c44044b3a7e3db34d10c9e018e52f192920f8a42fa6ea93e27c3cd0109143d8331c5f28e74958ed90fd569c632aa88257132c61625b0f5fb30cdfdb09f91b460 SHA512 db2abec6f14c08ed7beeff4fe90b2d832b5f249b64e5b0e4897316de597675bf06e4704ae8aa8635ec40fb3eca0e9be81c38889e82ddb7e98b73d99a69529980 -EBUILD polybar-9999.ebuild 1187 BLAKE2B b42e5685622509643cd9b8c73c2d119eb0adfc5904c52ddce1b66cb0ae4735e05e46a8e18e98f62ee6f47080c57869704b11fc2af7e593292d9736ee4d533551 SHA512 e548c3f17e6ee4c2f5190d5706d83ca567eb3c2f5c2a8bdda6e9984e6d2ba36b1f38c6052095152ca02958ff2fda7af211ff13e44f1294a0c4c7bf2a998fa5d0 +EBUILD polybar-3.3.1.ebuild 1968 BLAKE2B eeb084acbd61dddb5fcc2c1d84821c3a894717201df7233c7825e175212f46faa734dd199050ec931adabf6efb9ef937d24dd48f0e07a9cab50162cda91bd762 SHA512 23b5b98b3ce5e9c31dadbe446c72744f4a72969f08c0439e0a6982002686342ff40389948f20b20728346fdfd94f780695684110176d5c8335f18d3c677fe4a3 +EBUILD polybar-9999.ebuild 1968 BLAKE2B f3482b254e1e8ed6bcbb72531f94ffc3b21ac8cccf29992f6ec3794c3e8d650ef5f89f52f715f8b81925a6e726b68ae96e3de8e22f58b690951a854541bb6548 SHA512 25aaace811e587cccf2b4b2877bdf8e4da746043c0a574b93deaf53ea419e1612a4fcdb2e2af17877b2af53f4aebab1b23ac617555a66697c45b49302c6206e5 MISC metadata.xml 580 BLAKE2B 965fdbd2a3799e0c8a9b6f03bfb7e21f1f413a226bd4748d860f4711d60bfadc2d6c2fdb37f3bf9933f2c494e7e6e0c0705c9a0ebef943ec2978f3aaf65c0176 SHA512 15b64a04e588b5edeec9aa5e579881c3e7c5a7f3fb66ed4443f32d50b850c437f65bc9050960710f2bb1e80ea52ccca9ecb19e8bf68fe66edddc8896a58aeeb9 diff --git a/x11-misc/polybar/polybar-3.3.1.ebuild b/x11-misc/polybar/polybar-3.3.1.ebuild new file mode 100644 index 000000000000..d90ec9a2e765 --- /dev/null +++ b/x11-misc/polybar/polybar-3.3.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit cmake-utils python-single-r1 + +DESCRIPTION="A fast and easy-to-use tool for creating status bars" +HOMEPAGE="https://github.com/jaagr/polybar" + +if [[ ${PV} != *9999* ]]; then + XPP_VERSION="1.4.0" + I3IPCPP_VERSION="0.7.1" + 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" + KEYWORDS="~amd64 ~x86" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/jaagr/${PN}.git" + EGIT_CLONE_TYPE="shallow" +fi + +LICENSE="MIT" +SLOT="0" + +IUSE="alsa curl i3wm ipc mpd network pulseaudio" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + x11-base/xcb-proto + x11-libs/cairo[xcb] + x11-libs/libxcb[xkb] + x11-libs/xcb-util-image + x11-libs/xcb-util-wm + x11-libs/xcb-util-xrm + 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_prepare() { + cmake-utils_src_prepare + + if [[ ${PV} != *9999* ]]; then + 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" + fi +} + +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 +} diff --git a/x11-misc/polybar/polybar-9999.ebuild b/x11-misc/polybar/polybar-9999.ebuild index 3d18bd3871c8..70e8d426aaf5 100644 --- a/x11-misc/polybar/polybar-9999.ebuild +++ b/x11-misc/polybar/polybar-9999.ebuild @@ -1,19 +1,29 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 -PYTHON_COMPAT=( python2_7 ) +EAPI=7 -inherit cmake-utils git-r3 python-single-r1 +PYTHON_COMPAT=( python2_7 ) +inherit cmake-utils 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" + +if [[ ${PV} != *9999* ]]; then + XPP_VERSION="1.4.0" + I3IPCPP_VERSION="0.7.1" + 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" + KEYWORDS="~amd64 ~x86" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/jaagr/${PN}.git" + EGIT_CLONE_TYPE="shallow" +fi LICENSE="MIT" SLOT="0" -KEYWORDS="" IUSE="alsa curl i3wm ipc mpd network pulseaudio" REQUIRED_USE="${PYTHON_REQUIRED_USE}" @@ -36,6 +46,20 @@ DEPEND=" RDEPEND="${DEPEND}" +src_prepare() { + cmake-utils_src_prepare + + if [[ ${PV} != *9999* ]]; then + 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" + fi +} + src_configure() { local mycmakeargs=( -DENABLE_ALSA="$(usex alsa)" @@ -46,5 +70,6 @@ src_configure() { -DENABLE_NETWORK="$(usex network)" -DENABLE_PULSEAUDIO="$(usex pulseaudio)" ) + cmake-utils_src_configure } |