diff --git a/gui-apps/lswt/lswt-1.0.4.ebuild b/gui-apps/lswt/lswt-1.0.4.ebuild index 5b54e25b05..083438fff0 100644 --- a/gui-apps/lswt/lswt-1.0.4.ebuild +++ b/gui-apps/lswt/lswt-1.0.4.ebuild @@ -5,13 +5,18 @@ EAPI=8 DESCRIPTION="List Wayland toplevels" HOMEPAGE="https://git.sr.ht/~leon_plickat/lswt/" -SRC_URI="https://git.sr.ht/~leon_plickat/lswt/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-v${PV}" +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~leon_plickat/lswt" +else + SRC_URI="https://git.sr.ht/~leon_plickat/lswt/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" + KEYWORDS="~amd64" +fi LICENSE="GPL-3" SLOT="0" -KEYWORDS="~amd64" DEPEND="dev-libs/wayland" RDEPEND="${DEPEND}" diff --git a/gui-apps/lswt/lswt-9999.ebuild b/gui-apps/lswt/lswt-9999.ebuild new file mode 100644 index 0000000000..083438fff0 --- /dev/null +++ b/gui-apps/lswt/lswt-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="List Wayland toplevels" +HOMEPAGE="https://git.sr.ht/~leon_plickat/lswt/" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~leon_plickat/lswt" +else + SRC_URI="https://git.sr.ht/~leon_plickat/lswt/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-v${PV}" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3" +SLOT="0" + +DEPEND="dev-libs/wayland" +RDEPEND="${DEPEND}" +BDEPEND="dev-libs/wayland-protocols" + +src_install() { + # Need to install to /usr instead of /usr/local + # and the Makefile doens't handle DESTDIR properly + emake PREFIX="${D}"/usr install +}