/[gentoo-x86]/sci-electronics/irsim/irsim-9.7.72.ebuild
Gentoo

Contents of /sci-electronics/irsim/irsim-9.7.72.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Apr 26 18:07:29 2011 UTC (3 years, 7 months ago) by tomjbe
Branch: MAIN
New ebuild (see bug #241196). Thanks opensource@andmarios.com for providing the starting point.

(Portage version: 2.1.9.46/cvs/Linux x86_64)

1 tomjbe 1.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     }

  ViewVC Help
Powered by ViewVC 1.1.20