1 |
commit: a34de3edc7540b71247212ed44dfd7f2986c892d |
2 |
Author: Huang Rui <vowstar <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 7 03:11:01 2022 +0000 |
4 |
Commit: Rui Huang <vowstar <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Sep 7 03:11:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a34de3ed |
7 |
|
8 |
sci-electronics/bluespec: drop 2022.01 |
9 |
|
10 |
Signed-off-by: Huang Rui <vowstar <AT> gmail.com> |
11 |
|
12 |
sci-electronics/bluespec/bluespec-2022.01.ebuild | 139 ----------------------- |
13 |
1 file changed, 139 deletions(-) |
14 |
|
15 |
diff --git a/sci-electronics/bluespec/bluespec-2022.01.ebuild b/sci-electronics/bluespec/bluespec-2022.01.ebuild |
16 |
deleted file mode 100644 |
17 |
index 68cd0ea61..000000000 |
18 |
--- a/sci-electronics/bluespec/bluespec-2022.01.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,139 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=8 |
25 |
- |
26 |
-DESCRIPTION="Toolchain for the Bluespec Hardware Definition Language" |
27 |
-HOMEPAGE="https://github.com/B-Lang-org/bsc" |
28 |
- |
29 |
-if [[ ${PV} == "9999" ]] ; then |
30 |
- EGIT_REPO_URI="https://github.com/B-Lang-org/bsc.git" |
31 |
- inherit git-r3 |
32 |
-else |
33 |
- SRC_URI=" |
34 |
- https://github.com/B-Lang-org/bsc/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz |
35 |
- https://github.com/SRI-CSL/yices2/archive/refs/tags/Yices-2.6.4.tar.gz -> yices-2.6.4.tar.gz |
36 |
- " |
37 |
- S="${WORKDIR}/bsc-${PV}" |
38 |
- S_YICES="${WORKDIR}/yices2-Yices-2.6.4" |
39 |
- KEYWORDS="~amd64 ~x86" |
40 |
-fi |
41 |
- |
42 |
-LICENSE="BSD GPL-3+ MIT" |
43 |
-SLOT="${PV}" |
44 |
-IUSE="doc test" |
45 |
-RESTRICT="!test? ( test )" |
46 |
- |
47 |
-RDEPEND=" |
48 |
- app-eselect/eselect-bluespec |
49 |
- dev-haskell/old-time:0= |
50 |
- dev-haskell/regex-compat:0= |
51 |
- dev-haskell/split:0= |
52 |
- dev-haskell/syb:0= |
53 |
- dev-lang/tcl |
54 |
-" |
55 |
- |
56 |
-DEPEND=" |
57 |
- ${RDEPEND} |
58 |
- test? ( |
59 |
- dev-util/dejagnu |
60 |
- sci-electronics/iverilog |
61 |
- sci-electronics/systemc |
62 |
- sys-process/time |
63 |
- ) |
64 |
-" |
65 |
- |
66 |
-BDEPEND=" |
67 |
- dev-haskell/cabal:0= |
68 |
- dev-lang/ghc:0= |
69 |
- dev-lang/perl |
70 |
- dev-util/gperf |
71 |
- doc? ( |
72 |
- dev-ruby/asciidoctor |
73 |
- dev-ruby/asciidoctor-pdf |
74 |
- dev-texlive/texlive-bibtexextra |
75 |
- dev-texlive/texlive-fontsextra |
76 |
- dev-texlive/texlive-fontutils |
77 |
- dev-texlive/texlive-latex |
78 |
- dev-texlive/texlive-latexextra |
79 |
- dev-texlive/texlive-latexrecommended |
80 |
- dev-texlive/texlive-plaingeneric |
81 |
- ) |
82 |
- sys-apps/coreutils |
83 |
- sys-devel/autoconf |
84 |
- sys-devel/bison |
85 |
- sys-devel/flex |
86 |
- virtual/pkgconfig |
87 |
-" |
88 |
- |
89 |
-PATCHES=( |
90 |
- "${FILESDIR}"/${PN}-2022.01-libstp-stub-makefile.patch |
91 |
-) |
92 |
- |
93 |
-DOCS=( "README.md" "COPYING" ) |
94 |
- |
95 |
-src_prepare() { |
96 |
- if [[ ${PV} != "9999" ]] ; then |
97 |
- rm -r "${S}"/src/vendor/yices/v2.6/yices2 || die |
98 |
- ln -s "${S_YICES}" "${S}"/src/vendor/yices/v2.6/yices2 || die |
99 |
- fi |
100 |
- |
101 |
- default |
102 |
-} |
103 |
- |
104 |
-src_compile() { |
105 |
- # NO_DEPS_CHECKS=1: skip the subrepo check (this deriviation uses yices.src instead of the subrepo) |
106 |
- # LDCONFIG=ldconfig: https://github.com/B-Lang-org/bsc/pull/43 |
107 |
- # STP_STUB=1: https://github.com/B-Lang-org/bsc/pull/278 |
108 |
- emake \ |
109 |
- "NO_DEPS_CHECKS=1" \ |
110 |
- "LDCONFIG=ldconfig" \ |
111 |
- "STP_STUB=1" \ |
112 |
- $(usex doc "" "NOASCIIDOCTOR=1") \ |
113 |
- $(usex doc "install-doc" "") \ |
114 |
- $(usex doc "install-release" "") \ |
115 |
- install-src \ |
116 |
- $(usex doc "release" "") |
117 |
- emake -C src/comp \ |
118 |
- install-extra |
119 |
-} |
120 |
- |
121 |
-src_test() { |
122 |
- emake check-smoke |
123 |
- emake -C testsuite check |
124 |
-} |
125 |
- |
126 |
-# Call eselect vi update with --if-unset |
127 |
-# to respect user's choice |
128 |
-eselect_bluespec_update() { |
129 |
- ebegin "Calling eselect bluespec update" |
130 |
- eselect bluespec update --if-unset |
131 |
- eend $? |
132 |
-} |
133 |
- |
134 |
-src_install() { |
135 |
- # From https://github.com/B-Lang-org/bsc/blob/main/INSTALL.md, |
136 |
- # upstream recommend placing the inst directory at |
137 |
- # the path /usr/share/bsc/bsc-<VERSION> for multi-version. |
138 |
- local INSTALL_PATH=/usr/share/bsc/bsc-"${PV}" |
139 |
- local ED_INSTALL_PATH="${ED}${INSTALL_PATH}" |
140 |
- mkdir -p "${ED_INSTALL_PATH}" || die |
141 |
- local f |
142 |
- for f in "${S}"/inst/bin/*; do |
143 |
- if [[ ! -d "${f}" ]] ; then |
144 |
- local b=$(basename ${f}) |
145 |
- sed -i "s|ABSNAME=.*\$|ABSNAME=\$(readlink -f -- \"\$0\")|g" "${f}" || die |
146 |
- fi |
147 |
- done |
148 |
- cp -dr --preserve=mode,timestamp "${S}"/inst/* "${ED_INSTALL_PATH}"/ || die |
149 |
- insinto "${INSTALL_PATH}"/vimfiles |
150 |
- doins -r "${S}"/util/vim/{ftdetect,indent,syntax} |
151 |
-} |
152 |
- |
153 |
-pkg_postinst() { |
154 |
- eselect_bluespec_update |
155 |
-} |
156 |
- |
157 |
-pkg_postrm() { |
158 |
- eselect_bluespec_update |
159 |
-} |