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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 88FFB1382C5 for ; Thu, 1 Mar 2018 18:28:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E556E0A8B; Thu, 1 Mar 2018 18:28:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 384A7E0A8A for ; Thu, 1 Mar 2018 18:28:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43648335C34 for ; Thu, 1 Mar 2018 18:28:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8C470235 for ; Thu, 1 Mar 2018 18:28:08 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1519928882.f0ae2e3b62c5fdcb8744ad258030550faf1849b3.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/spim/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/spim/spim-8.0-r3.ebuild X-VCS-Directories: app-emulation/spim/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: f0ae2e3b62c5fdcb8744ad258030550faf1849b3 X-VCS-Branch: master Date: Thu, 1 Mar 2018 18:28:08 +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-Archives-Salt: 16d4a643-e96f-4e89-8e1a-9dc4749c830c X-Archives-Hash: a6ee54c0fb2943e57aa0b127d021b0e5 commit: f0ae2e3b62c5fdcb8744ad258030550faf1849b3 Author: Pacho Ramos gentoo org> AuthorDate: Thu Mar 1 18:21:02 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Thu Mar 1 18:28:02 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0ae2e3b app-emulation/spim: x11-libs/libXp is not really needed Package-Manager: Portage-2.3.24, Repoman-2.3.6 app-emulation/spim/spim-8.0-r3.ebuild | 78 +++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/app-emulation/spim/spim-8.0-r3.ebuild b/app-emulation/spim/spim-8.0-r3.ebuild new file mode 100644 index 00000000000..9fe7e6643e1 --- /dev/null +++ b/app-emulation/spim/spim-8.0-r3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit toolchain-funcs + +DESCRIPTION="MIPS Simulator" +HOMEPAGE="http://spimsimulator.sourceforge.net/" +SRC_URI="http://www.cs.wisc.edu/~larus/SPIM/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="doc X" + +RDEPEND=" + X? ( + media-fonts/font-adobe-100dpi + x11-libs/libXaw ) +" +DEPEND="${RDEPEND} + X? ( x11-misc/imake + x11-proto/xproto ) + sys-devel/bison +" +# test hangs forever, disabling it +RESTRICT="test" + +src_prepare() { + # fix bugs 240005 and 243588 + eapply "${FILESDIR}/${P}-r1-respect_env.patch" + + #fix bug 330389 + sed -i -e 's:-12-\*-75-:-14-\*-100-:g' xspim/xspim.c || die + + default +} + +src_configure() { + tc-export CC + emake -C spim configuration + + if use X; then + emake -C xspim configuration + fi +} + +src_compile() { + emake DESTDIR="${EPREFIX}" -C spim + + if use X; then + emake DESTDIR="${EPREFIX}" EXCEPTION_DIR=/var/lib/spim \ + -C xspim -j1 xspim + fi +} + +src_install() { + emake DESTDIR="${ED}" -C spim install + newman Documentation/spim.man spim.1 + + if use X; then + emake DESTDIR="${ED}" -C xspim install + newman Documentation/xspim.man xspim.1 + fi + + doicon "${FILESDIR}"/xspim.svg + make_desktop_entry xspim xSPIM xspim "ComputerScience;Science;Education" + + dodoc Documentation/SPIM.html + dodoc ChangeLog Documentation/BLURB README VERSION + if use doc ; then + dodoc Documentation/TeX/{cycle,spim}.ps + fi +} + +src_test() { + emake -C spim test +}