diff options
author | 2023-03-13 16:42:26 +0100 | |
---|---|---|
committer | 2023-03-13 22:37:56 +0100 | |
commit | 08156641467f5b945f6ae730aaddd5ab1d480ad0 (patch) | |
tree | b2c6390c4175d4eaa1311018903be94bccbb7e33 /sci-mathematics/abc/abc-9999.ebuild | |
parent | go-module.eclass: inherit toolchain-funcs for tc-endian (diff) | |
download | gentoo-08156641467f5b945f6ae730aaddd5ab1d480ad0.tar.gz gentoo-08156641467f5b945f6ae730aaddd5ab1d480ad0.tar.bz2 gentoo-08156641467f5b945f6ae730aaddd5ab1d480ad0.zip |
sci-mathematics/abc: new package; add 0_p20230313 and live
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sci-mathematics/abc/abc-9999.ebuild')
-rw-r--r-- | sci-mathematics/abc/abc-9999.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sci-mathematics/abc/abc-9999.ebuild b/sci-mathematics/abc/abc-9999.ebuild new file mode 100644 index 000000000000..2b2acf6d5866 --- /dev/null +++ b/sci-mathematics/abc/abc-9999.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="System for sequential logic synthesis and formal verification" +HOMEPAGE="https://people.eecs.berkeley.edu/~alanmi/abc/ + https://github.com/berkeley-abc/abc/" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/berkeley-abc/abc.git" +elif [[ ${PV} == *_p20230313 ]] ; then + COMMIT=a5f4841486d4a491913943c5b92167a9e988abac + SRC_URI="https://github.com/berkeley-abc/abc/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}"/abc-${COMMIT} + KEYWORDS="~amd64 ~x86" +else + die "unsupported abc version, given: ${PV}" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="+readline +threads" + +RDEPEND="readline? ( sys-libs/readline:= )" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/abc-0_p20230313-libabc.patch ) + +src_compile() { + local -a mymakeargs=( + AR="$(tc-getAR)" + CC="$(tc-getCC)" + CXX="$(tc-getCXX)" + LD="$(tc-getCXX)" + ABC_MAKE_VERBOSE=1 + ABC_USE_NO_CUDD=1 + ABC_USE_PIC=1 + $(usex readline "ABC_USE_READLINE=1" "ABC_USE_NO_READLINE=1") + $(usex threads "ABC_USE_PTHREADS=1" "ABC_USE_NO_PTHREADS=1") + ) + emake "${mymakeargs[@]}" libabc.so + emake "${mymakeargs[@]}" abc +} + +src_install() { + exeinto /usr/bin + doexe abc + + newlib.so libabc.so libabc.so.0 + dosym -r /usr/$(get_libdir)/libabc.so.0 /usr/$(get_libdir)/libabc.so + + dodoc README.md readmeaig +} |