aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Rui <vowstar@gmail.com>2022-08-29 01:00:31 +0800
committerHuang Rui <vowstar@gmail.com>2022-08-29 01:01:11 +0800
commit8085408945613944e1708aa8a2f19fe9223d2c7c (patch)
tree32b100aa2f1cdab869bedeea3ca22c75f193504a /sci-electronics
parentapp-eselect/eselect-bluespec: new package, add 1.0.1 (diff)
downloadguru-8085408945613944e1708aa8a2f19fe9223d2c7c.tar.gz
guru-8085408945613944e1708aa8a2f19fe9223d2c7c.tar.bz2
guru-8085408945613944e1708aa8a2f19fe9223d2c7c.zip
sci-electronics/bluespec: add eselect bluespec support
Signed-off-by: Huang Rui <vowstar@gmail.com>
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/bluespec/bluespec-2022.01.ebuild17
1 files changed, 17 insertions, 0 deletions
diff --git a/sci-electronics/bluespec/bluespec-2022.01.ebuild b/sci-electronics/bluespec/bluespec-2022.01.ebuild
index 1ac42d567..1726325a5 100644
--- a/sci-electronics/bluespec/bluespec-2022.01.ebuild
+++ b/sci-electronics/bluespec/bluespec-2022.01.ebuild
@@ -25,6 +25,7 @@ IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND="
+ app-eselect/eselect-bluespec
dev-haskell/old-time:0=
dev-haskell/regex-compat:0=
dev-haskell/split:0=
@@ -103,6 +104,14 @@ src_test() {
emake -C testsuite check
}
+# Call eselect vi update with --if-unset
+# to respect user's choice
+eselect_bluespec_update() {
+ ebegin "Calling eselect bluespec update"
+ eselect bluespec update --if-unset
+ eend $?
+}
+
src_install() {
# From https://github.com/B-Lang-org/bsc/blob/main/INSTALL.md,
# upstream recommend placing the inst directory at
@@ -114,3 +123,11 @@ src_install() {
insinto "${INSTALL_PATH}"/vimfiles
doins -r "${S}"/util/vim/{ftdetect,indent,syntax}
}
+
+pkg_postinst() {
+ eselect_bluespec_update
+}
+
+pkg_postrm() {
+ eselect_bluespec_update
+}