blob: cd32d8525d8ddd0bb0dbada734f5ac45f30ab3e4 (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Three dimensional inductance computation program, Whiteley Research version"
HOMEPAGE="http://www.wrcad.com/freestuff.html"
SRC_URI="http://www.wrcad.com/ftp/pub/fasthenry-$(ver_cut 1-2)wr-$(ver_cut 4)$(ver_cut 5)$(ver_cut 3).tar.gz"
S=${WORKDIR}/fasthenry-3.0wr
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64"
IUSE="cpu_flags_x86_avx"
RESTRICT="mirror bindist"
PATCHES=(
"${FILESDIR}/${PN}-3.0.20.07.17-ar.patch"
"${FILESDIR}/${P}-ldflags.patch"
"${FILESDIR}/${P}-cflags.patch"
)
src_compile() {
tc-export CC AR
emake HAVX=$(usex cpu_flags_x86_avx 1 0) all
}
src_install() {
dobin bin/fasthenry
dobin bin/zbuf
dodoc -r doc/*
dodoc -r examples
}
|