sci-electronics/fasthenry: Version bump

Closes: https://bugs.gentoo.org/723632
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Andreas K. Hüttel
2020-10-18 23:05:12 +03:00
parent 1312c2a303
commit fc4ee19d28
3 changed files with 86 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST fasthenry-3.0wr-071720.tar.gz 5196905 BLAKE2B 577e1b6c9b5483144f54de96439a2f11d41bfe54fbd9973084c2e17d180843ceaaa946899ae1bc71ef7dcf3b048da9775f2015fe03ce01ece67f66f998adba9b SHA512 90419c9e8cbdbb16dcb34db65e4e87643cbdbfad980012ea8c08d4fc062a113e388a38705d4d5af3970107ff71630fe7afe3b29e1de731c147798e683ec71cd3
DIST fasthenry-3.0wr-082514.tar.gz 3738940 BLAKE2B 3fd5d45e047725bf04299bf77f7385f42faa68d234a06f57cc494684a65e1c02d3879cb42a02dc3f53b0a63b5f5caf5d0a24ae1182ef19695e37a758b9bdb5e1 SHA512 53764d2eb5577d89934ad882af0eeadc6196d95a9c22cd6648e0c342c33ef1d8289b3b6c9ef48662ae4611e2bf914e4c4a68ddc536dc7921e0296cd59c5f3538

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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"
LICENSE="all-rights-reserved"
RESTRICT="mirror bindist"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND=""
S=${WORKDIR}/fasthenry-3.0wr
PATCHES=(
"${FILESDIR}/${P}-cflags.patch"
)
src_compile() {
tc-export CC
emake all
}
src_install() {
dobin bin/fasthenry
dobin bin/zbuf
dodoc -r doc/*
dodoc -r examples
}

View File

@@ -0,0 +1,48 @@
diff -ruN fasthenry-3.0wr.orig/src/fasthenry/mk_syscfg.inc fasthenry-3.0wr/src/fasthenry/mk_syscfg.inc
--- fasthenry-3.0wr.orig/src/fasthenry/mk_syscfg.inc 2020-07-23 01:18:06.000000000 +0300
+++ fasthenry-3.0wr/src/fasthenry/mk_syscfg.inc 2020-10-18 23:01:19.019207947 +0300
@@ -2,7 +2,7 @@
# except for MinGW.
#CFLAGS = -O -g -DFOUR
-CFLAGS = -O3 -DFOUR
+CFLAGS += -DFOUR
# For MinGW, there is no getrusage, and we'll skip a gethostname call
# to avoid having to link with winsock.
@@ -12,4 +12,4 @@
# We're going to assume gcc, you'll need to comment this if a
# non-compatible compiler is used.
-CC := gcc
+#CC := gcc
diff -ruN fasthenry-3.0wr.orig/src/sparse/Makefile fasthenry-3.0wr/src/sparse/Makefile
--- fasthenry-3.0wr.orig/src/sparse/Makefile 2019-09-02 21:41:53.000000000 +0300
+++ fasthenry-3.0wr/src/sparse/Makefile 2020-10-18 23:01:49.339387549 +0300
@@ -4,7 +4,7 @@
# UC Berkeley
#
#CFLAGS = -O -g
-CFLAGS = -O3
+#CFLAGS = -O3
LINTFLAGS = -lc -lm
SHELL = /bin/sh
#CC = cc
diff -ruN fasthenry-3.0wr.orig/src/zbuf/mk_syscfg.inc fasthenry-3.0wr/src/zbuf/mk_syscfg.inc
--- fasthenry-3.0wr.orig/src/zbuf/mk_syscfg.inc 2020-07-23 01:18:23.000000000 +0300
+++ fasthenry-3.0wr/src/zbuf/mk_syscfg.inc 2020-10-18 23:01:19.019207947 +0300
@@ -2,7 +2,7 @@
# except for MinGW.
#CFLAGS = -O -g -DFOUR
-CFLAGS = -O3 -DFOUR
+CFLAGS += -DFOUR
# For MinGW, there is no getrusage, and we'll skip a gethostname call
# to avoid having to link with winsock.
@@ -12,4 +12,4 @@
# We're going to assume gcc, you'll need to comment this if a
# non-compatible compiler is used.
-CC := gcc
+#CC := gcc