public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Johannes Huber" <johu@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/polybar/
Date: Tue, 28 May 2019 20:05:54 +0000 (UTC)	[thread overview]
Message-ID: <1559073947.fd51a6358515998e2573d7c84619d41ff4a39578.johu@gentoo> (raw)

commit:     fd51a6358515998e2573d7c84619d41ff4a39578
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Tue May 28 19:59:30 2019 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Tue May 28 20:05:47 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd51a635

x11-misc/polybar: Release switch

Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Johannes Huber <johu <AT> gentoo.org>

 x11-misc/polybar/polybar-9999.ebuild | 33 +++++++++++++++++++++++++++++----
 1 file changed, 29 insertions(+), 4 deletions(-)

diff --git a/x11-misc/polybar/polybar-9999.ebuild b/x11-misc/polybar/polybar-9999.ebuild
index 1c6fc7d1218..70e8d426aaf 100644
--- a/x11-misc/polybar/polybar-9999.ebuild
+++ b/x11-misc/polybar/polybar-9999.ebuild
@@ -4,16 +4,26 @@
 EAPI=7
 
 PYTHON_COMPAT=( python2_7 )
-inherit cmake-utils git-r3 python-single-r1
+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
 }


             reply	other threads:[~2019-05-28 20:05 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 20:05 Johannes Huber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-15 21:07 [gentoo-commits] repo/gentoo:master commit in: x11-misc/polybar/ John Helmert III
2024-12-15 21:07 John Helmert III
2024-12-15 21:07 John Helmert III
2024-08-31  6:47 John Helmert III
2024-07-28 18:51 John Helmert III
2024-07-28 18:51 John Helmert III
2024-05-11 19:08 Sam James
2024-05-11 19:08 Sam James
2024-01-08  5:50 John Helmert III
2024-01-08  5:50 John Helmert III
2023-11-27 18:12 John Helmert III
2023-11-20 14:36 John Helmert III
2023-06-11 19:00 John Helmert III
2023-06-11  7:37 Andreas Sturmlechner
2023-02-28 12:15 Yixun Lan
2022-10-08  2:56 John Helmert III
2022-10-08  2:56 John Helmert III
2022-10-08  2:56 John Helmert III
2022-09-10  0:48 Sam James
2022-09-09 17:24 John Helmert III
2022-07-19 16:44 John Helmert III
2022-07-06  0:20 Sam James
2022-07-05 20:09 John Helmert III
2022-05-04 13:59 John Helmert III
2022-04-04 18:51 John Helmert III
2022-03-05 15:37 John Helmert III
2022-03-03  5:23 John Helmert III
2022-03-02  1:42 John Helmert III
2022-01-30  1:47 John Helmert III
2022-01-30  1:47 John Helmert III
2021-11-01 10:02 Sam James
2021-11-01  2:07 Sam James
2021-09-22 23:49 John Helmert III
2021-09-22 23:49 John Helmert III
2021-07-17 18:18 David Seifert
2021-07-11 20:51 Sam James
2021-07-11 19:11 John Helmert III
2021-05-24 23:37 John Helmert III
2021-05-24 23:37 John Helmert III
2021-04-16  0:35 Sam James
2021-04-13  7:36 Agostino Sarubbo
2021-03-14  5:36 John Helmert III
2021-03-02  2:42 John Helmert III
2021-02-22 21:29 John Helmert III
2021-01-09  4:21 Sam James
2020-12-27  5:35 Sam James
2020-12-27  5:35 Sam James
2020-12-15  3:43 Sam James
2020-12-13 10:44 Joonas Niilola
2020-10-04 16:13 David Seifert
2020-10-04 16:13 David Seifert
2020-09-23 10:34 Agostino Sarubbo
2020-09-23 10:20 Agostino Sarubbo
2020-07-05  8:24 Joonas Niilola
2020-02-13 12:46 Agostino Sarubbo
2020-02-13 12:03 Agostino Sarubbo
2020-02-12 17:21 Johannes Huber
2020-01-14 22:48 Matt Turner
2020-01-13 20:08 Johannes Huber
2020-01-01 21:12 Johannes Huber
2020-01-01 21:12 Johannes Huber
2020-01-01 19:52 Johannes Huber
2020-01-01 19:52 Johannes Huber
2019-10-28  7:41 Agostino Sarubbo
2019-10-27 23:20 Thomas Deutschmann
2019-05-28 20:05 Johannes Huber
2019-05-28 20:05 Johannes Huber
2018-10-06 21:43 Johannes Huber
2018-09-22  9:10 Michał Górny
2018-09-22  9:04 Michał Górny
2018-08-05 21:48 Patrice Clement
2018-07-23 15:56 Tony Vroon
2018-06-23 17:51 Mikle Kolyada
2018-06-23  8:50 Johannes Huber
2018-06-17 23:29 Thomas Deutschmann
2018-06-14 21:17 Johannes Huber
2018-05-11 11:48 Johannes Huber
2018-05-11 10:55 Michał Górny
2018-05-04 21:05 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1559073947.fd51a6358515998e2573d7c84619d41ff4a39578.johu@gentoo \
    --to=johu@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox