From 55b20c97078ded20d0e7c6b3ef33d673c861d8b4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 14 Mar 2023 00:16:43 +0000 Subject: gentoo auto-resync : 14:03:2023 - 00:16:42 --- sci-mathematics/abc/Manifest | 5 ++ sci-mathematics/abc/abc-0_p20230313.ebuild | 58 ++++++++++++++++++++++ sci-mathematics/abc/abc-9999.ebuild | 58 ++++++++++++++++++++++ .../abc/files/abc-0_p20230313-libabc.patch | 11 ++++ sci-mathematics/abc/metadata.xml | 20 ++++++++ 5 files changed, 152 insertions(+) create mode 100644 sci-mathematics/abc/Manifest create mode 100644 sci-mathematics/abc/abc-0_p20230313.ebuild create mode 100644 sci-mathematics/abc/abc-9999.ebuild create mode 100644 sci-mathematics/abc/files/abc-0_p20230313-libabc.patch create mode 100644 sci-mathematics/abc/metadata.xml (limited to 'sci-mathematics/abc') diff --git a/sci-mathematics/abc/Manifest b/sci-mathematics/abc/Manifest new file mode 100644 index 000000000000..231c40218838 --- /dev/null +++ b/sci-mathematics/abc/Manifest @@ -0,0 +1,5 @@ +AUX abc-0_p20230313-libabc.patch 353 BLAKE2B 4fb2e28a2e0e71ad029e7203886aca5ee56460ab84822279a85d5948a5fa8eec62181cb021d856b08f1bfe1d88d14511dd000e8ceb305417f935101ff4274db4 SHA512 2759f713079cb1ab99bd33b7c23047c3b5db8a1043cd66167b5e1643d6fd193c11aed6aeb2d0b52beaf7066afa52841f28feeb634558f61d9f9f68df0fab7d77 +DIST abc-0_p20230313.tar.gz 6082725 BLAKE2B 3647e813d04545eba68faae58ce8f36747e0ebf13befbaaca646c783acdf9994209a5c58beadc20b1b18a2c77a64ac589e899595e3f1374df9e363a3416271a6 SHA512 a3512b280cbac747178c6e3decc785aff5eb4130a95eea2f3bab6d61a41c89758116b0d94cbbbb4d4060fbfbaa0fa1638a9e211f3f2677910bbfe8e8d629e7ee +EBUILD abc-0_p20230313.ebuild 1424 BLAKE2B b3f2df484d49506af4b7c1a68f73337df6a4bab172c6c49011a8538741a004aff2afdb4edee6110d05421ac6463efb3b53e090ef1fe3464b7bac1e93067042ee SHA512 cb64b74dfcb8b9f754e1346c11c751df96f43b0dbd9e138507e626246402a98f10ce08db98d24e87e94e6c370c3b5dd01371025ff1f0a41f804ba8409cb0c1a4 +EBUILD abc-9999.ebuild 1424 BLAKE2B b3f2df484d49506af4b7c1a68f73337df6a4bab172c6c49011a8538741a004aff2afdb4edee6110d05421ac6463efb3b53e090ef1fe3464b7bac1e93067042ee SHA512 cb64b74dfcb8b9f754e1346c11c751df96f43b0dbd9e138507e626246402a98f10ce08db98d24e87e94e6c370c3b5dd01371025ff1f0a41f804ba8409cb0c1a4 +MISC metadata.xml 862 BLAKE2B 5a66b899e1164315dedcb6b9d72b2d96f2662e1763611cb38a0edb85fed6e12ed149d5289ee14b9892ff0c20039a87290e910a3af5b714b07e7bd704fe8f1f94 SHA512 482daf55ac8a00bf5ea6a0bb55d3f066912b58a5b2aa68dcd2deac53095c518bc1c78091981ee4d9d9d1129d36bac25c2c4ed534297706d22a99465b0d1395cd diff --git a/sci-mathematics/abc/abc-0_p20230313.ebuild b/sci-mathematics/abc/abc-0_p20230313.ebuild new file mode 100644 index 000000000000..2b2acf6d5866 --- /dev/null +++ b/sci-mathematics/abc/abc-0_p20230313.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 +} 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 +} diff --git a/sci-mathematics/abc/files/abc-0_p20230313-libabc.patch b/sci-mathematics/abc/files/abc-0_p20230313-libabc.patch new file mode 100644 index 000000000000..57691dc18775 --- /dev/null +++ b/sci-mathematics/abc/files/abc-0_p20230313-libabc.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -221,7 +221,7 @@ lib$(PROG).a: $(LIBOBJ) + + lib$(PROG).so: $(LIBOBJ) + @echo "$(MSG_PREFIX)\`\` Linking:" $(notdir $@) +- $(VERBOSE)$(CXX) -shared -o $@ $^ $(LIBS) ++ $(VERBOSE)$(CXX) -shared -o $@ $^ $(LDFLAGS) -Wl,-soname,lib$(PROG).so.0 $(LIBS) + + docs: + @echo "$(MSG_PREFIX)\`\` Building documentation." $(notdir $@) diff --git a/sci-mathematics/abc/metadata.xml b/sci-mathematics/abc/metadata.xml new file mode 100644 index 000000000000..dc9439f27baf --- /dev/null +++ b/sci-mathematics/abc/metadata.xml @@ -0,0 +1,20 @@ + + + + + + sci-mathematics@gentoo.org + Gentoo Mathematics Project + + + ABC is a growing software system for synthesis and verification of binary + sequential logic circuits appearing in synchronous hardware designs. ABC + combines scalable logic optimization based on And-Inverter Graphs (AIGs), + optimal-delay DAG-based technology mapping for look-up tables and standard + cells, and innovative algorithms for sequential synthesis and verification. + + + https://github.com/berkeley-abc/abc/issues/ + berkeley-abc/abc + + -- cgit v1.2.3