summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-10-06 21:02:12 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-10-06 21:51:35 +0200
commita4f5e8dce2c06855fc265c76c44003f7419716ac (patch)
tree80388aea08ad3d3f471543cfb4ea94cf8248c14a /app-emacs
parentapp-emacs/shut-up: minor tweaks (diff)
downloadgentoo-a4f5e8dce2c06855fc265c76c44003f7419716ac.tar.gz
gentoo-a4f5e8dce2c06855fc265c76c44003f7419716ac.tar.bz2
gentoo-a4f5e8dce2c06855fc265c76c44003f7419716ac.zip
app-emacs/ansi: minor tweaks
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/ansi/ansi-0.4.1_p20211104.ebuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/app-emacs/ansi/ansi-0.4.1_p20211104.ebuild b/app-emacs/ansi/ansi-0.4.1_p20211104.ebuild
index 8b91501c76b4..5207ba7c70fa 100644
--- a/app-emacs/ansi/ansi-0.4.1_p20211104.ebuild
+++ b/app-emacs/ansi/ansi-0.4.1_p20211104.ebuild
@@ -3,18 +3,27 @@
EAPI=8
-COMMIT=2367fba7b3b2340364a30cd6de7f3eb6bb9898a3
+COMMIT="2367fba7b3b2340364a30cd6de7f3eb6bb9898a3"
inherit elisp
DESCRIPTION="Emacs library to convert strings into ansi"
HOMEPAGE="https://github.com/rejeep/ansi.el/"
-SRC_URI="https://github.com/rejeep/${PN}.el/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}"/${PN}.el-${COMMIT}
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/rejeep/${PN}.el.git"
+else
+ SRC_URI="https://github.com/rejeep/${PN}.el/archive/${COMMIT}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}.el-${COMMIT}"
+
+ KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv ~sparc ~x86"
+fi
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv ~sparc ~x86"
IUSE="test"
RESTRICT="!test? ( test )"