commit: 9363aa3abceb27e9cf4ff9b41de9193d6f10b315 Author: Leonardo Hernández Hernández <leohdz172 <AT> outlook <DOT> com> AuthorDate: Fri Dec 2 18:10:58 2022 +0000 Commit: Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com> CommitDate: Fri Dec 2 18:10:58 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9363aa3a
gui-wm/dwl: new live ebuild (like dev-vcs/git) Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> outlook.com> gui-wm/dwl/{dwl-9999.ebuild => dwl-9999-r1.ebuild} | 27 ++++++++++++++++++---- gui-wm/dwl/dwl-9999.ebuild | 27 ++++++++++++++++++---- 2 files changed, 46 insertions(+), 8 deletions(-) diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999-r1.ebuild similarity index 61% copy from gui-wm/dwl/dwl-9999.ebuild copy to gui-wm/dwl/dwl-9999-r1.ebuild index 0b7bde09f..b456ff6b8 100644 --- a/gui-wm/dwl/dwl-9999.ebuild +++ b/gui-wm/dwl/dwl-9999-r1.ebuild @@ -3,21 +3,40 @@ EAPI=8 -inherit flag-o-matic git-r3 savedconfig toolchain-funcs +inherit flag-o-matic savedconfig toolchain-funcs + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/djpohly/dwl" + inherit git-r3 + + # 9999-r0: main (latest wlroots release) + # 9999-r1: wlroots-next (wlroots-9999) + case ${PVR} in + 9999) + EGIT_BRANCH=main + WLROOTS_SLOT="0/16" + ;; + 9999-r1) + EGIT_BRANCH=wlroots-next + WLROOTS_SLOT="0/9999" + ;; + esac +else + SRC_URI="https://github.com/djpohly/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi DESCRIPTION="dwm for Wayland" HOMEPAGE="https://github.com/djpohly/dwl" -EGIT_REPO_URI="https://github.com/djpohly/dwl" LICENSE="CC0-1.0 GPL-3 MIT" SLOT="0" -KEYWORDS="" IUSE="X" RDEPEND=" dev-libs/libinput:= dev-libs/wayland - gui-libs/wlroots:0:16[X(-)?] + gui-libs/wlroots:${WLROOTS_SLOT}[X(-)?] x11-libs/libxkbcommon X? ( x11-libs/libxcb:= diff --git a/gui-wm/dwl/dwl-9999.ebuild b/gui-wm/dwl/dwl-9999.ebuild index 0b7bde09f..b456ff6b8 100644 --- a/gui-wm/dwl/dwl-9999.ebuild +++ b/gui-wm/dwl/dwl-9999.ebuild @@ -3,21 +3,40 @@ EAPI=8 -inherit flag-o-matic git-r3 savedconfig toolchain-funcs +inherit flag-o-matic savedconfig toolchain-funcs + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/djpohly/dwl" + inherit git-r3 + + # 9999-r0: main (latest wlroots release) + # 9999-r1: wlroots-next (wlroots-9999) + case ${PVR} in + 9999) + EGIT_BRANCH=main + WLROOTS_SLOT="0/16" + ;; + 9999-r1) + EGIT_BRANCH=wlroots-next + WLROOTS_SLOT="0/9999" + ;; + esac +else + SRC_URI="https://github.com/djpohly/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi DESCRIPTION="dwm for Wayland" HOMEPAGE="https://github.com/djpohly/dwl" -EGIT_REPO_URI="https://github.com/djpohly/dwl" LICENSE="CC0-1.0 GPL-3 MIT" SLOT="0" -KEYWORDS="" IUSE="X" RDEPEND=" dev-libs/libinput:= dev-libs/wayland - gui-libs/wlroots:0:16[X(-)?] + gui-libs/wlroots:${WLROOTS_SLOT}[X(-)?] x11-libs/libxkbcommon X? ( x11-libs/libxcb:=