From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 32A78158089 for ; Tue, 12 Sep 2023 07:13:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56F042BC1B2; Tue, 12 Sep 2023 07:13:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 43C272BC1B2 for ; Tue, 12 Sep 2023 07:13:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 802B8335C31 for ; Tue, 12 Sep 2023 07:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B7C391140 for ; Tue, 12 Sep 2023 07:13:47 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1694502817.c567506c9ca7f9254aae07b84f53c2a8f47f246b.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/spice/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/spice/spice-3.5.5-r4.ebuild X-VCS-Directories: sci-electronics/spice/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: c567506c9ca7f9254aae07b84f53c2a8f47f246b X-VCS-Branch: master Date: Tue, 12 Sep 2023 07:13:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 349f5d57-9efb-46f6-b7ed-a10e4f38d466 X-Archives-Hash: 03746fd069e006a1243a5d767324a686 commit: c567506c9ca7f9254aae07b84f53c2a8f47f246b Author: Andrew Ammerlaan gentoo org> AuthorDate: Tue Sep 12 07:09:57 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue Sep 12 07:13:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c567506c sci-electronics/spice: update EAPI 6 -> 8, replace sed delimiter Closes: https://bugs.gentoo.org/711036 Signed-off-by: Andrew Ammerlaan gentoo.org> sci-electronics/spice/spice-3.5.5-r4.ebuild | 82 +++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/sci-electronics/spice/spice-3.5.5-r4.ebuild b/sci-electronics/spice/spice-3.5.5-r4.ebuild new file mode 100644 index 000000000000..931d96996b3b --- /dev/null +++ b/sci-electronics/spice/spice-3.5.5-r4.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +MY_P="spice3f5sfix" +DESCRIPTION="general-purpose circuit simulation program" +HOMEPAGE="http://bwrcs.EECS.Berkeley.EDU/Classes/IcBook/SPICE/" +SRC_URI="https://www.ibiblio.org/pub/Linux/apps/circuits/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND=" + sys-libs/ncurses:0= + x11-libs/libXaw + >=app-misc/editor-wrapper-3 +" + +DEPEND="${RDEPEND} + x11-base/xorg-proto +" + +BDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${P}-gcc-4.1.patch + # Bug https://bugs.gentoo.org/783192 + "${FILESDIR}"/${P}-arlocal.patch +) + +src_prepare() { + # spice accepts -O1 at most + replace-flags -O* -O1 + + # Avoid re-creating WORKDIR due to stupid mtime + touch .. + + sed -i -e "s/termcap/ncurses/g" \ + -e "s/joe/\/usr\/libexec\/editor/g" \ + -e "s/-O2 -s/${CFLAGS}/g" \ + -e "s/-lncurses -lm -s/-lncurses -lm ${LDFLAGS}/" \ + -e "s/SPICE_DIR)\/lib/SPICE_DIR)\/$(get_libdir)\/spice/g" \ + -e "s/\/usr\/local\/spice/\/usr/g" \ + -e "s/\/X11R6//" \ + conf/linux || die + sed -i -e "s/head -1/head -n 1/" util/build || die + + # fix possible buffer overflow (bug #339539) + sed -i -e "s/fgets(buf, BSIZE_SP/fgets(buf, sizeof(buf)/g" \ + src/lib/fte/misccoms.c || die + + # fix missing libtinfo if ncurses compiled with USE=tinfo (bug #605718) + sed -i -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/g" conf/linux || die + + default +} + +src_compile() { + ./util/build linux || die "build failed" + obj/bin/makeidx lib/helpdir/spice.txt || die "makeidx failed" +} + +src_install() { + # install binaries + dobin obj/bin/{spice3,nutmeg,sconvert,multidec,proc2mod} + newbin obj/bin/help spice.help + dosym spice3 /usr/bin/spice + # install runtime stuff + rm lib/make* || die + dodir /usr/$(get_libdir)/spice + cp -R lib/* "${ED}"/usr/$(get_libdir)/spice/ || die "failed to copy libraries" + # install docs + doman man/man1/*.1 + dodoc readme readme.Linux notes/spice2 +}