diff --git a/dev-libs/feedbackd/feedbackd-0.1.0-r1.ebuild b/dev-libs/feedbackd/feedbackd-0.1.0-r2.ebuild similarity index 98% rename from dev-libs/feedbackd/feedbackd-0.1.0-r1.ebuild rename to dev-libs/feedbackd/feedbackd-0.1.0-r2.ebuild index 34c50b1e1b..888d2d29b3 100644 --- a/dev-libs/feedbackd/feedbackd-0.1.0-r1.ebuild +++ b/dev-libs/feedbackd/feedbackd-0.1.0-r2.ebuild @@ -24,6 +24,7 @@ RESTRICT="!test? ( test )" DEPEND=" dev-libs/glib:2 + daemon? ( dev-libs/json-glib ) introspection? ( dev-libs/gobject-introspection ) " RDEPEND="${DEPEND} diff --git a/dev-libs/feedbackd/metadata.xml b/dev-libs/feedbackd/metadata.xml index f4bb9be49d..5ad0d6b788 100644 --- a/dev-libs/feedbackd/metadata.xml +++ b/dev-libs/feedbackd/metadata.xml @@ -12,4 +12,7 @@ Build the feedbackd daemon + + guidog/gmobile + diff --git a/dev-nim/karax/Manifest b/dev-nim/karax/Manifest index bda1cb6244..f2139e0353 100644 --- a/dev-nim/karax/Manifest +++ b/dev-nim/karax/Manifest @@ -1,2 +1,2 @@ -DIST karax-1.2.1_p20220621.tar.gz 193279 BLAKE2B 5904b33869272f3cabf5f8c00ddba7e9997e7710d4fd0129e8768376779a7b7259ef17f0892282428bde17153f1af2d2959ad95f10f8f9583af9ffe9b7116d1d SHA512 4729d69fd480b0db24994238bc43dc864087fe9c3385a7160bdf422ada46872c0c317571832a7124550755fc48dd6cae393901518ab089404fe7c1ac1d58904f DIST karax-1.2.3.tar.gz 195125 BLAKE2B 54fdfe176db181d45c0894540f10b15fbccaea2a5d565b65a14209b638e55252392617cc388d7a511a32240c8809b90bc66efaeea01a9ea2ee347a0004fb314b SHA512 1ee82ba188f2e21357a5dca7b00583fef7813d03ba9c3d666c304896b26a64a29d8fc5bbca2d19f1e4fbe8819226420d0693d5e8bbd10463c7cab8dc6a7a9b1e +DIST karax-1.3.0.tar.gz 196032 BLAKE2B 842d8feb759267efc17b9a7d6ef1498ce2f7f1bd8f922ecaef58e68e76eab174471bad648be28c771b1881bb19cf76c73d5aad5816402c61486aa7018370704c SHA512 bdc9d641059ab8bafb7378c436d270a5c15ad65a5b01fcbdacc730e361c9ed59813ea473af4a8c67b3d89c44c72765a7b16b683beced065d40fb554b95a4ca46 diff --git a/dev-nim/karax/karax-1.2.1_p20220621.ebuild b/dev-nim/karax/karax-1.3.0.ebuild similarity index 61% rename from dev-nim/karax/karax-1.2.1_p20220621.ebuild rename to dev-nim/karax/karax-1.3.0.ebuild index 82e52b02f3..042c4170c0 100644 --- a/dev-nim/karax/karax-1.2.1_p20220621.ebuild +++ b/dev-nim/karax/karax-1.3.0.ebuild @@ -1,29 +1,32 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit nimble -COMMIT="11e56317633f3e9dc03b3b61250c587e2775c9fd" DESCRIPTION="a framework for developing single page applications in Nim" HOMEPAGE=" https://github.com/karaxnim/karax https://nimble.directory/pkg/karax " -SRC_URI="https://github.com/${PN}nim/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-${COMMIT}" +SRC_URI="https://github.com/${PN}nim/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" - -# no meaningful tests -RESTRICT="test" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=" dev-nim/dotenv dev-nim/ws " +BDEPEND=" + test? ( + ${RDEPEND} + net-libs/nodejs + ) +" set_package_url "https://github.com/karaxnim/karax" diff --git a/dev-python/dateparser/Manifest b/dev-python/dateparser/Manifest index 17dcfcb6d0..1425c2c3c3 100644 --- a/dev-python/dateparser/Manifest +++ b/dev-python/dateparser/Manifest @@ -1,2 +1,2 @@ -DIST dateparser-1.1.6.tar.gz 295659 BLAKE2B fbdb31ecbe48ef3b27eb283fe590b49a03ebbcca9402846e1f18f70052d5339fbfd5bc3f92dd6b4888e185ccd3ccf538e845dff320c2fa16a3cd560aba7faa87 SHA512 5f9eb6c85bb221a61ab30b274a73572e199e930298c30b438bec12511c677c272d9a778458b99f291eb8636ee1d797b90260fef66ae6c480018eca80b23b162a DIST dateparser-1.1.7.tar.gz 295818 BLAKE2B 11bb07f6c3c46a5e19111715a8801b8789d7f1fd0fd407232a071ddd40b337153dce3b42197f3a2fd8081c505f4418abb3ff265e25641a95eed31575c6ad2a70 SHA512 d333fa2007c069f7424def9694544767a8885eec5d476e9dd73605754fd53f5a9dbbeb19f24291ac6c6ffa09b4014a3135ad8fbabadae1655c78a8d5fe36f907 +DIST dateparser-1.1.8.tar.gz 296595 BLAKE2B 0e1bedbfc0b54d3a763a5f982774685e0c4aebe418dcfe5190c613a6de1e8d445c9906b9c7e8ca87ea37b2ef508eb8bd789e07b7b5f11fac3df7d16f24a08c00 SHA512 45fc6ee67be77ae9ece818b25e680a9416c30bbe8d71746a2b08910b57406d65e6b9f0c51ada1697034ea1f3f9a0952c2f0616c9fa1be4c7886e459e1cc2d898 diff --git a/dev-python/dateparser/dateparser-1.1.6.ebuild b/dev-python/dateparser/dateparser-1.1.8.ebuild similarity index 73% rename from dev-python/dateparser/dateparser-1.1.6.ebuild rename to dev-python/dateparser/dateparser-1.1.8.ebuild index ca3c761367..28056e4646 100644 --- a/dev-python/dateparser/dateparser-1.1.6.ebuild +++ b/dev-python/dateparser/dateparser-1.1.8.ebuild @@ -5,11 +5,13 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 optfeature +inherit distutils-r1 optfeature pypi DESCRIPTION="Date parsing library designed to parse dates from HTML pages" -HOMEPAGE="https://github.com/scrapinghub/dateparser" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +HOMEPAGE=" + https://pypi.org/project/dateparser/ + https://github.com/scrapinghub/dateparser +" LICENSE="BSD-4" SLOT="0" @@ -37,6 +39,11 @@ EPYTEST_IGNORE=( EPYTEST_DESELECT=( # tests that require network tests/test_language_detect.py::CustomLangDetectParserTest::test_custom_language_detect_fast_text_{0,1} + # broken + tests/test_search.py::TestTranslateSearch::test_relative_base_setting_1_en + tests/test_search.py::TestTranslateSearch::test_splitting_of_not_parsed_1_en + tests/test_search.py::TestTranslateSearch::test_splitting_of_not_parsed_5_en + tests/test_search.py::TestTranslateSearch::test_splitting_of_not_parsed_6_sv ) distutils_enable_tests pytest diff --git a/dev-util/wxformbuilder/Manifest b/dev-util/wxformbuilder/Manifest new file mode 100644 index 0000000000..b93717dae7 --- /dev/null +++ b/dev-util/wxformbuilder/Manifest @@ -0,0 +1,2 @@ +DIST wxformbuilder-1fa5400695f68ee22718f4a4a28b2fb63f275145.tar.gz 1136549 BLAKE2B f007a7198cfe50c3b66055ec5937b7b5776ca83e9bdd2b0d3620bd9a65f58d112f15e9bbf2b5b672f499cde1e3bb0620d3073f34909930c9a0fa042491d76154 SHA512 d15e4d25d9ecedebc3c05f14cb09a29ced53648167aa50a89519bfdce88a874d6c0a01a78eeaeac0523649f951cd56b1dfbe59cb816a5532226f59b15eba2058 +DIST wxformbuilder-ticpp-6f45ec628cbf34784bb3b3132c0d00aac8e491c6.tar.gz 85795 BLAKE2B 5c8d83dd50a5d3cfd4f679692a32e7c3b60d6118ac79b40bf4da21552a26beeb7a74b46d822d79ac4a7cbdbab69017ef194e80da795f1e0550fee6d1ed9a442f SHA512 2f16d6b4b96ebf02bd03d5fa5e12566b3e34ae674397a8b38e136a17cdcafc4fc87fd48efc3bf5592b4f61eaaf20e6d9f437df2a07ad4a12e0abf5f2084d63c1 diff --git a/dev-util/wxformbuilder/metadata.xml b/dev-util/wxformbuilder/metadata.xml new file mode 100644 index 0000000000..743341e42f --- /dev/null +++ b/dev-util/wxformbuilder/metadata.xml @@ -0,0 +1,20 @@ + + + + + vowstar@gmail.com + Huang Rui + + + https://github.com/wxFormBuilder/wxFormBuilder/releases + https://github.com/wxFormBuilder/wxFormBuilder/issues + wxFormBuilder/wxFormBuilder + + + wxFormBuilder is a GUI builder for the wxWidgets framework. + Code generation is supported for C++, Python, Lua and PHP. Additionally, + the import and export of XRC code is possible. To support additional + widgets, custom plugins can be used. + wxFormBuilder runs on Windows, various Linux distributions and macOS. + + diff --git a/dev-util/wxformbuilder/wxformbuilder-3.10.1-r1.ebuild b/dev-util/wxformbuilder/wxformbuilder-3.10.1-r1.ebuild new file mode 100644 index 0000000000..9b9b698b4d --- /dev/null +++ b/dev-util/wxformbuilder/wxformbuilder-3.10.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_BUILD_TYPE="Release" +WX_GTK_VER="3.2-gtk3" + +MY_PN="wxFormBuilder" +MY_PV="1fa5400695f68ee22718f4a4a28b2fb63f275145" +TICPP_PV="6f45ec628cbf34784bb3b3132c0d00aac8e491c6" + +inherit cmake wxwidgets xdg + +DESCRIPTION="A wxWidgets GUI Builder" +HOMEPAGE="https://github.com/wxFormBuilder/wxFormBuilder" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git" +else + SRC_URI=" + https://github.com/${MY_PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz + https://github.com/${MY_PN}/ticpp/archive/${TICPP_PV}.tar.gz -> ${PN}-ticpp-${TICPP_PV}.tar.gz + " + S="${WORKDIR}/${MY_PN}-${MY_PV}" + KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]" +DEPEND="${RDEPEND}" + +src_prepare() { + # Remove bundled ticpp and symlink to downloaded ticpp + rmdir "${S}/third_party/ticpp" || die + ln -s "${WORKDIR}/ticpp-${TICPP_PV}/" "${S}/third_party/ticpp" || die + # Disable update-mime-database command, shouldn't be doing this here. + sed -i "s/NAMES update-mime-database/NAMES echo/g" "${S}"/src/CMakeLists.txt || die + cmake_src_prepare +} diff --git a/dev-util/xmake/Manifest b/dev-util/xmake/Manifest index 0248d8c13c..1aba9b6032 100644 --- a/dev-util/xmake/Manifest +++ b/dev-util/xmake/Manifest @@ -1 +1 @@ -DIST xmake-v2.7.7.tar.gz 2719137 BLAKE2B c3aca5c538292d2ee002785c5a4bb82ff4ea6d67d07d00f055f35c46caeec8ecd3134e05f9bba6d4e7db5cda725b474fcf70d3b91a4be03b2859c542fa0c0f83 SHA512 449c6ce318076a9473084ae197b0d333e0b4b0f2d7bffe9e3c725ddf7aef3c7d888e9d063e033a7a7d9f690e0e49925e45bc7910f5076b790344f8bdbde0fb15 +DIST xmake-v2.7.1.tar.gz 4344324 BLAKE2B 6baec6724f4489f0abe25a5925f87fd952fd59645696014ffe23d33df98e838c7ef53fc948ca4d17feed6063da532fa2a59c691dd76305840f476e5e8f3407bb SHA512 499d1d4ac53b8189d8f68706b45981dd9a3c62018000291616a281b944fedb9d5802502dd9edfb7bc0ee5f0456b839f9f2605d536543994bdfb72d178024742e diff --git a/dev-util/xmake/xmake-2.7.7.ebuild b/dev-util/xmake/xmake-2.7.1.ebuild similarity index 100% rename from dev-util/xmake/xmake-2.7.7.ebuild rename to dev-util/xmake/xmake-2.7.1.ebuild diff --git a/games-util/xivlauncher/xivlauncher-1.0.3.ebuild b/games-util/xivlauncher/xivlauncher-1.0.3-r1.ebuild similarity index 99% rename from games-util/xivlauncher/xivlauncher-1.0.3.ebuild rename to games-util/xivlauncher/xivlauncher-1.0.3-r1.ebuild index 564e9d8e0e..7e313033f8 100644 --- a/games-util/xivlauncher/xivlauncher-1.0.3.ebuild +++ b/games-util/xivlauncher/xivlauncher-1.0.3-r1.ebuild @@ -220,7 +220,6 @@ RDEPEND=" media-libs/freetype:2[abi_x86_32?] media-libs/glu[abi_x86_32?] x11-libs/libSM[abi_x86_32?] - app-emulation/faudio[abi_x86_32?] " XIVQL_COMMIT="77115d3f7d920179ce83f0708ec97ba2450ce795" diff --git a/net-client/lagrange/Manifest b/net-client/lagrange/Manifest index 8ace5dfdbb..c97fe21000 100644 --- a/net-client/lagrange/Manifest +++ b/net-client/lagrange/Manifest @@ -1,4 +1,4 @@ -DIST lagrange-1.15.4.tar.gz 9941952 BLAKE2B 889f37c7ac03d598825f972003c1d63af1368ca34ea012a6cbc4ae22d28cbae2c1e308a954da3c6b8e3b736de78abf69f5975e5f69b621f2d4af153331822bf8 SHA512 16193f78a19fa1d3177eb9479467f2cb195c0cc493939dd3719622767cb653effa0795cd2b3fe98a1b97287e781d5c39b03acb55c34afefc6792e3496f4eb1c5 -DIST lagrange-1.15.4.tar.gz.sig 488 BLAKE2B fb13783fa5066cf23c00a64023ead2b2143075ef367785ba5c4c31880732057a1e4967638a7ebdc7687a32d6d91863b0199445b159d477b4f31200b6e467a9d6 SHA512 b716c7787c23d5d52e59a6f5c46a39a24edbb95042c3136680b527770c677264eae40499e9fe70b6228c7369486f808b78fe2b2bced76ce57524439521eda79b DIST lagrange-1.15.5.tar.gz 9955830 BLAKE2B 52ab0ea3ab7a8a6037c2020449c3716a0e304d38e5877ba787fb4955fd80f70382c8b98774311a0e32d0beee44ca5ca4b02436c4f71bb45a80f9db808c74f7d5 SHA512 be1a8669a54fdb09f510a73245a847b96dcdbe6359683ef89a96e9bb63a26534655598c8c7b51893d127c84621a66cedb3d835eed8e2de496b8130e8141d487c DIST lagrange-1.15.5.tar.gz.sig 488 BLAKE2B bdc5319b429313cb0a9319661bdbf7c631c40a80394952453a30588706f2bef63e52f63d70c0282a47b09dea5f43beb8669f4323dcac5979837851de4bb36588 SHA512 f67276452b6455412113b591e62c416e2aa3cd150af6567083bf63d52f58730889c4dc0dc29f621c4f334d0543b9b8d837479e76632ea39adadbacaba034d140 +DIST lagrange-1.15.6.tar.gz 9958460 BLAKE2B 4e8240b4c28839084865073d94ba5b09057277f3cbe218c8aa7c49368f69cc4ba1b662f3649fa9d7bc69c462b5cf383d566d6da5ea84f10c6d7dd0f4200a2f46 SHA512 6cd5e81284c87d756c3db84fcf077f4c05243b42f6214311b0db61f51e552673114fd3f74517c3f83aaa05d95e413eab06d1e3f0518fc47e319f24ba3e2aa0de +DIST lagrange-1.15.6.tar.gz.sig 488 BLAKE2B 775ad1097a79720ea6cfc2b9c878e20728916024c3af938641c7d55e54e33929938b9fd7f789dc29039df35171ed46159ea97ddb8c78347f042a137640269f8c SHA512 57201914a24a5241d45a5e263f5498b3fabc524931d3688db1e33cb8dd3956c8cfadc4c21c2249386613c2caaa2e0805558a013ab163591151dae8f518cb2ae7 diff --git a/net-client/lagrange/lagrange-1.15.4.ebuild b/net-client/lagrange/lagrange-1.15.6.ebuild similarity index 100% rename from net-client/lagrange/lagrange-1.15.4.ebuild rename to net-client/lagrange/lagrange-1.15.6.ebuild diff --git a/profiles/eapi b/profiles/eapi new file mode 100644 index 0000000000..7ed6ff82de --- /dev/null +++ b/profiles/eapi @@ -0,0 +1 @@ +5 diff --git a/profiles/package.mask b/profiles/package.mask index 383321c2e1..d36a4d1fa9 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -14,6 +14,10 @@ # New entries go on top. +# Anna Vyalkova (2023-03-24) +# Archived upstream. +net-im/gtkcord:0 + # Anna Vyalkova (2023-03-17) # Python libraries with no consumers left in tree. # Masked for removal in 30 days. diff --git a/sci-electronics/bluespec/Manifest b/sci-electronics/bluespec/Manifest index 7849b0d806..b108e2adec 100644 --- a/sci-electronics/bluespec/Manifest +++ b/sci-electronics/bluespec/Manifest @@ -1,2 +1,3 @@ DIST bluespec-2022.01.tar.gz 25576850 BLAKE2B c80dada5bdbc13bd8ff4205ff8b65384845548b61190dd0d3729d877be576b78acfd38857adf427321f9ba078bae2891640cf211e907ca2db679bd7a0d2bb536 SHA512 e6a1e0197d42ca402180735d1f2c41ab84b47eb8708d4ff49a9d509a928dec7cda88d06353faaebefcabacb734d6f7dd1cee1b6e1053010231c8ae508cb80789 +DIST bluespec-2023.01.tar.gz 26431509 BLAKE2B 10cb153e3dfc6779e48ead139da53463ffd4610c389feee73b64ae74e65e411cb9408e324e76f5b56b1accbe012c79017f528d4daa2d575ae73b16f5cf9d4733 SHA512 704926ba3e9d04a3a12c5c77793151a68d650e5ce84c3d5e6a6b86187dea322cd0e0ba78a5fd840e2dbd3a01a7d27ca30b9648158056b2c96eb522722bdef302 DIST yices-2.6.4.tar.gz 10186909 BLAKE2B 1c4b6297fd59924e9d99b9e17eb4b42e9bfbc24dcd56631beb9b72103c91578eb72b90cb9e228a5e9d489efc520a2e1d41185e9c3f4a8c43fc93f8dabba7414d SHA512 d8102c41fda0e200fd1336ae317b516d2797d10c187b8f7aecf0c9b08b4b487b90bef8c358099b2da51c0367326939f9610fd4e6d5a41a392cf1114bd04b8763 diff --git a/sci-electronics/bluespec/bluespec-2023.01.ebuild b/sci-electronics/bluespec/bluespec-2023.01.ebuild new file mode 100644 index 0000000000..8ca4d5b32a --- /dev/null +++ b/sci-electronics/bluespec/bluespec-2023.01.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Toolchain for the Bluespec Hardware Definition Language" +HOMEPAGE="https://github.com/B-Lang-org/bsc" + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/B-Lang-org/bsc.git" + inherit git-r3 +else + SRC_URI=" + https://github.com/B-Lang-org/bsc/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/SRI-CSL/yices2/archive/refs/tags/Yices-2.6.4.tar.gz -> yices-2.6.4.tar.gz + " + S="${WORKDIR}/bsc-${PV}" + S_YICES="${WORKDIR}/yices2-Yices-2.6.4" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD GPL-3+ MIT" +SLOT="${PV}" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-eselect/eselect-bluespec + app-shells/tcsh + dev-haskell/old-time:0= + dev-haskell/regex-compat:0= + dev-haskell/split:0= + dev-haskell/syb:0= + dev-lang/tcl +" + +DEPEND=" + ${RDEPEND} + test? ( + dev-util/dejagnu + sci-electronics/iverilog + sci-electronics/systemc + sys-process/time + ) +" + +BDEPEND=" + dev-haskell/cabal:0= + dev-lang/ghc:0= + dev-lang/perl + dev-util/gperf + doc? ( + dev-ruby/asciidoctor + dev-ruby/asciidoctor-pdf + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + dev-texlive/texlive-latexrecommended + dev-texlive/texlive-plaingeneric + ) + sys-apps/coreutils + sys-devel/autoconf + sys-devel/bison + sys-devel/flex + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2022.01-libstp-stub-makefile.patch +) + +# Do not complain about CFLAGS etc since we don't use them +QA_FLAGS_IGNORED=" + usr/share/bsc/bsc-${PV}/bin/core/.* + usr/share/bsc/bsc-${PV}/lib/SAT/.* + usr/share/bsc/bsc-${PV}/lib/VPI/.* +" + +src_prepare() { + if [[ ${PV} != "9999" ]] ; then + rm -r "${S}"/src/vendor/yices/v2.6/yices2 || die + ln -s "${S_YICES}" "${S}"/src/vendor/yices/v2.6/yices2 || die + fi + + default +} + +src_compile() { + # NO_DEPS_CHECKS=1: skip the subrepo check (this deriviation uses yices.src instead of the subrepo) + # LDCONFIG=ldconfig: https://github.com/B-Lang-org/bsc/pull/43 + # STP_STUB=1: https://github.com/B-Lang-org/bsc/pull/278 + emake \ + "NO_DEPS_CHECKS=1" \ + "LDCONFIG=ldconfig" \ + "STP_STUB=1" \ + $(usex doc "" "NOASCIIDOCTOR=1") \ + $(usex doc "install-doc" "") \ + $(usex doc "install-release" "") \ + install-src \ + $(usex doc "release" "") + emake -C src/comp \ + install-extra +} + +src_test() { + emake check-smoke + 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 + # the path /usr/share/bsc/bsc- for multi-version. + local INSTALL_PATH=/usr/share/bsc/bsc-"${PV}" + local ED_INSTALL_PATH="${ED}${INSTALL_PATH}" + mkdir -p "${ED_INSTALL_PATH}" || die + local f + for f in "${S}"/inst/bin/*; do + if [[ ! -d "${f}" ]] ; then + local b=$(basename ${f}) + sed -i "s|ABSNAME=.*\$|ABSNAME=\$(readlink -f -- \"\$0\")|g" "${f}" || die + fi + done + cp -dr --preserve=mode,timestamp "${S}"/inst/* "${ED_INSTALL_PATH}"/ || die + insinto "${INSTALL_PATH}"/vimfiles + doins -r "${S}"/util/vim/{ftdetect,indent,syntax} +} + +pkg_postinst() { + eselect_bluespec_update +} + +pkg_postrm() { + eselect_bluespec_update +}