summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-11-22 15:58:05 +0100
committerMaciej Barć <xgqt@gentoo.org>2024-11-22 16:50:41 +0100
commit069e18dc411f97ea1a0a7a11a2d51ba4bc126aa1 (patch)
tree1ba2b515089dd49e6972d86639066cba03d2064a /app-shells/loksh
parentapp-shells/loksh: take up maintainership (diff)
downloadgentoo-069e18dc411f97ea1a0a7a11a2d51ba4bc126aa1.tar.gz
gentoo-069e18dc411f97ea1a0a7a11a2d51ba4bc126aa1.tar.bz2
gentoo-069e18dc411f97ea1a0a7a11a2d51ba4bc126aa1.zip
app-shells/loksh: minor tweaks
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-shells/loksh')
-rw-r--r--app-shells/loksh/loksh-7.5.ebuild21
-rw-r--r--app-shells/loksh/loksh-7.6.ebuild21
2 files changed, 32 insertions, 10 deletions
diff --git a/app-shells/loksh/loksh-7.5.ebuild b/app-shells/loksh/loksh-7.5.ebuild
index 587b3d778384..5a2d11d30b46 100644
--- a/app-shells/loksh/loksh-7.5.ebuild
+++ b/app-shells/loksh/loksh-7.5.ebuild
@@ -6,14 +6,24 @@ EAPI=8
inherit meson
DESCRIPTION="Linux port of OpenBSD's ksh"
-HOMEPAGE="https://github.com/dimkr/loksh"
-SRC_URI="https://github.com/dimkr/loksh/releases/download/${PV}/${P}.tar.xz"
+HOMEPAGE="https://github.com/dimkr/loksh/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/dimkr/${PN}.git"
+else
+ SRC_URI="https://github.com/dimkr/${PN}/releases/download/${PV}/${P}.tar.xz"
+
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+fi
LICENSE="public-domain"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
-DEPEND="sys-libs/ncurses"
+DEPEND="
+ sys-libs/ncurses
+"
RDEPEND="
${DEPEND}
!app-shells/ksh
@@ -21,7 +31,8 @@ RDEPEND="
src_prepare() {
default
- sed -i "/install_dir/s@loksh@${PF}@" meson.build || die
+
+ sed -i "/install_dir/s@loksh@${PF}@" ./meson.build || die
}
src_configure() {
diff --git a/app-shells/loksh/loksh-7.6.ebuild b/app-shells/loksh/loksh-7.6.ebuild
index 587b3d778384..5a2d11d30b46 100644
--- a/app-shells/loksh/loksh-7.6.ebuild
+++ b/app-shells/loksh/loksh-7.6.ebuild
@@ -6,14 +6,24 @@ EAPI=8
inherit meson
DESCRIPTION="Linux port of OpenBSD's ksh"
-HOMEPAGE="https://github.com/dimkr/loksh"
-SRC_URI="https://github.com/dimkr/loksh/releases/download/${PV}/${P}.tar.xz"
+HOMEPAGE="https://github.com/dimkr/loksh/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/dimkr/${PN}.git"
+else
+ SRC_URI="https://github.com/dimkr/${PN}/releases/download/${PV}/${P}.tar.xz"
+
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+fi
LICENSE="public-domain"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
-DEPEND="sys-libs/ncurses"
+DEPEND="
+ sys-libs/ncurses
+"
RDEPEND="
${DEPEND}
!app-shells/ksh
@@ -21,7 +31,8 @@ RDEPEND="
src_prepare() {
default
- sed -i "/install_dir/s@loksh@${PF}@" meson.build || die
+
+ sed -i "/install_dir/s@loksh@${PF}@" ./meson.build || die
}
src_configure() {