mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 23:39:00 -04:00
sci-electronics/bluespec: add eselect bluespec support
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
parent
29024143c6
commit
8085408945
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user