commit:     bd164835a8b6d89c989f9fe4dcf9e0c71121d3b6
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Wed Jan  6 14:03:42 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Jan  6 14:04:24 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bd164835

sci-electronics/bsc: add fixed version 0_pre20210106

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 sci-electronics/bsc/bsc-0_pre20210106.ebuild | 64 ++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/sci-electronics/bsc/bsc-0_pre20210106.ebuild 
b/sci-electronics/bsc/bsc-0_pre20210106.ebuild
new file mode 100644
index 00000000..4d1c7602
--- /dev/null
+++ b/sci-electronics/bsc/bsc-0_pre20210106.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Bluespec high level hardware design language compiler"
+HOMEPAGE="https://github.com/B-Lang-org/bsc";
+
+if [[ ${PV} == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/B-Lang-org/${PN}.git";
+       inherit git-r3
+else
+       EGIT_COMMIT="7d25cdedd5c6df310acfcf5a3255aeb13b6adb61"
+       # Using SRC_URI here will failed because this repo uses git submodules.
+       # 
SRC_URI="https://github.com/B-Lang-org/${PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
+       # S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+       # Waiting for https://github.com/B-Lang-org/bsc/issues/85
+       EGIT_REPO_URI="https://github.com/B-Lang-org/${PN}.git";
+       # This inherit git-r3 will removed after upstream finished.
+       inherit git-r3
+
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD GPL-3+ MIT"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-haskell/old-time:0=
+       dev-haskell/regex-compat:0=
+       dev-haskell/split:0=
+       dev-haskell/syb:0=
+       dev-lang/tcl
+"
+
+DEPEND="
+       ${RDEPEND}
+"
+
+BDEPEND="
+       dev-haskell/cabal:0=
+       dev-lang/ghc:0=
+       dev-util/gperf
+       sys-devel/autoconf
+       sys-devel/bison
+       sys-devel/flex
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0_pre20210106-fix-libdir.patch
+       "${FILESDIR}"/${PN}-0_pre20210106-fix-wrapper.patch
+)
+
+DOCS=( "README.md" "COPYING" )
+
+# We don't want to run it because it will do install by default.
+src_compile() { :; }
+
+src_install() {
+       emake PREFIX="${ED%/}"/usr LIBDIR="${ED%/}"/usr/$(get_libdir) install
+       einstalldocs
+}

Reply via email to