mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-04 13:47:35 -08:00
Update done using: ``` git grep -l sys-libs/zlib dev-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
58 lines
1.1 KiB
Bash
58 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools flag-o-matic
|
|
|
|
DESCRIPTION="Circuit drawing and schematic capture program"
|
|
SRC_URI="http://opencircuitdesign.com/xcircuit/archive/${P}.tgz"
|
|
HOMEPAGE="http://opencircuitdesign.com/xcircuit"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~ppc ~x86"
|
|
IUSE="tcl"
|
|
|
|
DEPEND="
|
|
app-text/ghostscript-gpl:=
|
|
media-libs/fontconfig:1.0=
|
|
virtual/zlib:=
|
|
x11-libs/cairo[X]
|
|
x11-libs/libICE
|
|
x11-libs/libSM
|
|
x11-libs/libX11
|
|
x11-libs/libXpm
|
|
x11-libs/libXt
|
|
tcl? (
|
|
dev-lang/tcl:0=
|
|
dev-lang/tk:0=
|
|
)
|
|
"
|
|
RDEPEND="${DEPEND}
|
|
sci-electronics/ngspice"
|
|
|
|
src_prepare() {
|
|
default
|
|
mv configure.{in,ac} || die
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
append-cflags -std=gnu89 -Wno-incompatible-function-pointer-types
|
|
local myeconfargs=(
|
|
--with-cairo
|
|
--with-ngspice
|
|
$(use_with tcl)
|
|
$(use_with tcl tcllibs "/usr/$(get_libdir)")
|
|
$(use_with tcl tk)
|
|
)
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
}
|