summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2013-01-21 09:28:16 +0000
committerMichael Weber <xmw@gentoo.org>2013-01-21 09:28:16 +0000
commit740e8af2d09c40d0c38c497eebcf29bd365c84f0 (patch)
tree015b8f367324fe30d32f7f307d742079304142af
parentRe-add USE=dri to default/linux after discussion (diff)
downloadhistorical-740e8af2d09c40d0c38c497eebcf29bd365c84f0.tar.gz
historical-740e8af2d09c40d0c38c497eebcf29bd365c84f0.tar.bz2
historical-740e8af2d09c40d0c38c497eebcf29bd365c84f0.zip
Version bump
Package-Manager: portage-2.2.0_alpha154/cvs/Linux x86_64 Manifest-Sign-Key: 0x62EEF090
-rw-r--r--sci-electronics/irsim/ChangeLog10
-rw-r--r--sci-electronics/irsim/files/irsim-9.7.79-datadir.patch23
-rw-r--r--sci-electronics/irsim/irsim-9.7.79.ebuild54
3 files changed, 85 insertions, 2 deletions
diff --git a/sci-electronics/irsim/ChangeLog b/sci-electronics/irsim/ChangeLog
index 6b325bbda0e0..e0056362a038 100644
--- a/sci-electronics/irsim/ChangeLog
+++ b/sci-electronics/irsim/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-electronics/irsim
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/irsim/ChangeLog,v 1.2 2012/06/13 13:07:01 xmw Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/irsim/ChangeLog,v 1.3 2013/01/21 09:28:16 xmw Exp $
+
+*irsim-9.7.79 (21 Jan 2013)
+
+ 21 Jan 2013; Michael Weber <xmw@gentoo.org> +irsim-9.7.79.ebuild,
+ +files/irsim-9.7.79-datadir.patch:
+ Version bump
*irsim-9.7.74 (13 Jun 2012)
diff --git a/sci-electronics/irsim/files/irsim-9.7.79-datadir.patch b/sci-electronics/irsim/files/irsim-9.7.79-datadir.patch
new file mode 100644
index 000000000000..ca4fd4628575
--- /dev/null
+++ b/sci-electronics/irsim/files/irsim-9.7.79-datadir.patch
@@ -0,0 +1,23 @@
+--- irsim-9.7.79/scripts/defs.mak.in
++++ irsim-9.7.79/scripts/defs.mak.in
+@@ -12,6 +12,7 @@
+ exec_prefix = @exec_prefix@
+ bindir = @bindir@
+ libdir = @libdir@
++datadir = @datadir@
+ mandir = @mandir@
+
+ VERSION = @VERSION@
+@@ -33,9 +34,9 @@
+ LIBDIR = ${libdir}
+ DOCDIR = ${libdir}/irsim/doc
+ SYSDIR = ${libdir}/irsim/sys
+-PRMDIR = ${libdir}/irsim/prm
+-TCLDIR = ${libdir}/irsim/tcl
+-XBMDIR = ${libdir}/irsim/tcl/bitmaps
++PRMDIR = ${datadir}/irsim/prm
++TCLDIR = ${libdir}/irsim/tcl
++XBMDIR = ${libdir}/irsim/tcl/bitmaps
+
+ MAIN_EXTRA_LIBS = @extra_libs@
+ LD_EXTRA_LIBS = @ld_extra_libs@
diff --git a/sci-electronics/irsim/irsim-9.7.79.ebuild b/sci-electronics/irsim/irsim-9.7.79.ebuild
new file mode 100644
index 000000000000..ee25f096bcdc
--- /dev/null
+++ b/sci-electronics/irsim/irsim-9.7.79.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/irsim/irsim-9.7.79.ebuild,v 1.1 2013/01/21 09:28:16 xmw Exp $
+
+EAPI=4
+
+inherit eutils multilib
+
+DESCRIPTION="IRSIM is a \"switch-level\" simulator"
+HOMEPAGE="http://opencircuitdesign.com/irsim/"
+SRC_URI="http://opencircuitdesign.com/irsim/archive/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/tcl
+ dev-lang/tk"
+DEPEND="${RDEPEND}
+ app-shells/tcsh"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-9.7.72-ldflags.patch
+ epatch "${FILESDIR}"/${PN}-9.7.79-datadir.patch
+ sed -e "s:/usr/bin/:${EPREFIX}/usr/bin/:" \
+ -e "s:/usr/local/lib/:${EPREFIX}/usr/$(get_libdir)/:" \
+ -i tcltk/irsim.sh \
+ -i tcltk/irsim.tcl || die
+}
+
+src_configure() {
+ # Short-circuit top-level configure script to retain CFLAGS
+ cd scripts
+ #tc-export CPP
+ econf
+}
+
+src_install() {
+ emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install
+ dodoc README
+}
+
+pkg_postinst() {
+ einfo
+ einfo "You will probably need to add to your ~/.Xdefaults"
+ einfo "the following line:"
+ einfo "irsim.background: black"
+ einfo
+ einfo "This is needed because Gentoo from default sets a"
+ einfo "grey background which makes impossible to see the"
+ einfo "simulation (white line on light gray background)."
+ einfo
+}