blob: cc5e7640aacdca04b32ed05396d40b4307ee3f07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gnetman/gnetman-0.0.1_pre20060522-r2.ebuild,v 1.1 2010/06/22 19:46:34 scarabeus Exp $
EAPI=2
MY_P="${PN}-22May06"
DESCRIPTION="A GNU Netlist Manipulation Library"
SRC_URI="http://www.viasic.com/opensource/${MY_P}.tar.gz"
HOMEPAGE="http://www.viasic.com/opensource/"
IUSE="doc examples"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
S="${WORKDIR}/${MY_P}"
DEPEND=">=dev-lang/tk-8.3
sci-electronics/geda"
RDEPEND="${DEPEND}"
src_prepare() {
sed -i -e 's/ sym / /' Makefile.in || die "sed failed"
if use examples ; then
sed -i -e "s:gEDA/sch/gnetman:doc/${PF}/examples:" \
sch/Makefile.in || die "sed failed"
sed -i -e "s:gEDA/examples/gnetman:doc/${PF}/examples:" \
test/Makefile.in || die "sed failed"
else
sed -i -e 's/ sch test//' Makefile.in || die "sed failed"
fi
}
src_install () {
make DESTDIR="${D}" install || die "Installation failed"
dodoc AUTHORS ChangeLog NEWS README
use doc && dodoc doc/*.{html,jpg}
}
|