summaryrefslogtreecommitdiff
blob: ff33b2e0c04f5d346fc2ffdb26d150d96eca7910 (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
41
42
43
44
45
46
47
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/xcircuit/xcircuit-3.6.38.ebuild,v 1.1 2006/07/08 08:31:20 calchan Exp $

DESCRIPTION="Circuit drawing and schematic capture program."
SRC_URI="http://opencircuitdesign.com/xcircuit/archive/${P}.tgz"
HOMEPAGE="http://opencircuitdesign.com/xcircuit"

# This is a development version. Do not keyword without contacting maintainer as we add/remove these at random.
KEYWORDS="-*"
SLOT="0"
LICENSE="GPL-2"
IUSE=""

DEPEND="virtual/ghostscript
	dev-lang/tk
	|| ( x11-libs/libXt
	     virtual/x11
	)"

src_compile() {
	econf \
	--with-tcl \
	--with-ngspice \
	--disable-dependency-tracking \
	|| die 'econf failed!'
	emake || die 'emake failed!'
}

src_install () {
	make DESTDIR=${D} install || die "Installation failed"
	dodoc CHANGES README* TODO

	doman ${D}/usr/lib/xcircuit-3.6/man/xcircuit.1
	rm ${D}/usr/lib/xcircuit-3.6/man -rf
}

src_postinst() {
	ewarn "You may want to emerge ng-spice-rework which integrates well with xcircuit."
	ewarn "Note that in order for ngspice to work with xcircuit, you'll need at least"
	ewarn "sci-electronics/ng-spice-rework-17-r1."
}

src_test () {
	# See bug #131024
	true
}