| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: $
|
| 4 |
|
| 5 |
EAPI="2"
|
| 6 |
|
| 7 |
inherit eutils
|
| 8 |
|
| 9 |
DESCRIPTION="IRSIM is a \"switch-level\" simulator"
|
| 10 |
HOMEPAGE="http://opencircuitdesign.com/irsim/"
|
| 11 |
SRC_URI="http://opencircuitdesign.com/irsim/archive/${P}.tgz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE=""
|
| 17 |
|
| 18 |
RDEPEND=" dev-lang/tcl
|
| 19 |
dev-lang/tk"
|
| 20 |
DEPEND="${RDEPEND}
|
| 21 |
app-shells/tcsh"
|
| 22 |
|
| 23 |
src_prepare() {
|
| 24 |
sed -i -e "s: -pg : :" tcltk/Makefile || die
|
| 25 |
epatch "${FILESDIR}"/${P}-ldflags.patch
|
| 26 |
}
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
# Short-circuit top-level configure script to retain CFLAGS
|
| 30 |
cd scripts
|
| 31 |
CPP="cpp" econf --libdir=/usr/share
|
| 32 |
cd ..
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install || die
|
| 37 |
dodoc README || die
|
| 38 |
}
|
| 39 |
|
| 40 |
pkg_postinst() {
|
| 41 |
einfo
|
| 42 |
einfo "You will probably need to add to your ~/.Xdefaults"
|
| 43 |
einfo "the following line:"
|
| 44 |
einfo "irsim.background: black"
|
| 45 |
einfo
|
| 46 |
einfo "This is needed because Gentoo from default sets a"
|
| 47 |
einfo "grey background which makes impossible to see the"
|
| 48 |
einfo "simulation (white line on light gray background)."
|
| 49 |
einfo
|
| 50 |
}
|