From d934827bf44b7cfcf6711964418148fa60877668 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Nov 2020 22:39:15 +0000 Subject: gentoo resync : 25.11.2020 --- sci-electronics/fasthenry/Manifest | 5 +++ .../fasthenry/fasthenry-3.0.20.07.17.ebuild | 39 ++++++++++++++++++ .../files/fasthenry-3.0.20.07.17-ar.patch | 18 ++++++++ .../files/fasthenry-3.0.20.07.17-cflags.patch | 48 ++++++++++++++++++++++ .../files/fasthenry-3.0.20.07.17-ldflags.patch | 40 ++++++++++++++++++ 5 files changed, 150 insertions(+) create mode 100644 sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild create mode 100644 sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch create mode 100644 sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-cflags.patch create mode 100644 sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ldflags.patch (limited to 'sci-electronics/fasthenry') diff --git a/sci-electronics/fasthenry/Manifest b/sci-electronics/fasthenry/Manifest index c1fb4d175567..aa034523bd23 100644 --- a/sci-electronics/fasthenry/Manifest +++ b/sci-electronics/fasthenry/Manifest @@ -1,3 +1,8 @@ +AUX fasthenry-3.0.20.07.17-ar.patch 556 BLAKE2B 8f0dd170c3874598050e3f5706072f8eadeedd4b8fd7bbf1226132506bb53b7c585c21c28188816a0cfccd19f841a8c082e3b210eda21031938bce37a37add91 SHA512 05abf82c915dedac8290625085ae8ac82b7f483d1391a456387c0b932ffa50c6a8eb5dc121507005a7129f373e752a633d3a4e4db905abbcd6239d96c30f086b +AUX fasthenry-3.0.20.07.17-cflags.patch 1621 BLAKE2B 1cd3be8b20ebbc5392ccf075ee1c87ef56da08bd8b5bad5c4d1680a7721d8c8e925714d76b45a0c7e77b24f1ea06228313dd37e7a7d1077942e4e592e0822897 SHA512 54f66a9b1408cb88c53c3220291ab5a0674d0bd328fef88be6da630e1567a21a1d9cc6ddf044c3c6c4eb879ff0d84161e8918b887d3cf36e6b7ac351607d60de +AUX fasthenry-3.0.20.07.17-ldflags.patch 1586 BLAKE2B baec5791cd996f64f20093b6d610f98260b15854e18dab52ba89a65d86f1481b6eb2af58b4878e20df2dc61ff7984dcb17fc55d3f98adc3505577e7922f5a98f SHA512 319a7ac37de72e1c5e8e1e49f0d781674a62bd0be1ee835dacac40e7624fa6e3d5e6aed230cca0a3a10abc5c8c2790be090dfc70c01f2ccbfdbd4273f6933cf5 +DIST fasthenry-3.0wr-071720.tar.gz 5196905 BLAKE2B 577e1b6c9b5483144f54de96439a2f11d41bfe54fbd9973084c2e17d180843ceaaa946899ae1bc71ef7dcf3b048da9775f2015fe03ce01ece67f66f998adba9b SHA512 90419c9e8cbdbb16dcb34db65e4e87643cbdbfad980012ea8c08d4fc062a113e388a38705d4d5af3970107ff71630fe7afe3b29e1de731c147798e683ec71cd3 DIST fasthenry-3.0wr-082514.tar.gz 3738940 BLAKE2B 3fd5d45e047725bf04299bf77f7385f42faa68d234a06f57cc494684a65e1c02d3879cb42a02dc3f53b0a63b5f5caf5d0a24ae1182ef19695e37a758b9bdb5e1 SHA512 53764d2eb5577d89934ad882af0eeadc6196d95a9c22cd6648e0c342c33ef1d8289b3b6c9ef48662ae4611e2bf914e4c4a68ddc536dc7921e0296cd59c5f3538 +EBUILD fasthenry-3.0.20.07.17.ebuild 769 BLAKE2B 73a749c32bc5493b43db213e7fae815862c077500e7755661f19c1c01de6ec1f99bc821998a7f18e50becfcd0454d09b52ee84e0648605625a3a51ae1288b71e SHA512 790e8cb137df98a077050263d9967ef3bceb9605dedfeb2329f951c50122cefe3ec04132ebe29e55530931480496f2ff63337ed163791dc55b41f24ffef30ca8 EBUILD fasthenry-3.0_p082514.ebuild 600 BLAKE2B f894d630cca5a684699326796ea23ed14fdbbc8d4bb90ae178b1b07c81ba6c7e11ba46abc89becdb6a87171c81446d8b3aee318795adf210cf78f6e9e8910a84 SHA512 63a4c938169578faa87a83f32d99293a7e3eaccabb830f15b09997152067796d8034a8487d472c7d664d45424330e4efcbe3f52ee6c6c192a389fe76e1a18633 MISC metadata.xml 333 BLAKE2B f522a7296deba6133ac57d58f634d78e2cdbddbce6ca4ba93fb83717a934f9f1eba3b32727cdc5a8196010cfb7ba9554f42c5fe904496d8ffec69375ed34c7b7 SHA512 03e74ece880711b377a80d6db5714b516922bf32e1b4df1e2fd437578beb04f632b4a36dd0a10933bca307832cc956af43ce6edec27aae7756a5505605ca9547 diff --git a/sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild b/sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild new file mode 100644 index 000000000000..ee1cef974df8 --- /dev/null +++ b/sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild @@ -0,0 +1,39 @@ +# 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" + "${FILESDIR}/${P}-ldflags.patch" + "${FILESDIR}/${P}-ar.patch" +) + +src_compile() { + tc-export CC AR + emake all +} + +src_install() { + dobin bin/fasthenry + dobin bin/zbuf + dodoc -r doc/* + dodoc -r examples +} diff --git a/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch new file mode 100644 index 000000000000..ea1e671b7df1 --- /dev/null +++ b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch @@ -0,0 +1,18 @@ +diff -ruN fasthenry-3.0wr.orig/src/sparse/Makefile fasthenry-3.0wr/src/sparse/Makefile +--- fasthenry-3.0wr.orig/src/sparse/Makefile 2020-10-24 18:35:15.348900086 +0300 ++++ fasthenry-3.0wr/src/sparse/Makefile 2020-10-24 18:37:09.729921680 +0300 +@@ -25,12 +25,12 @@ + # $(CC) $(CFLAGS) -o $(DESTINATION) $(TESTO) $(LIBRARY) -lm + + $(LIBRARY) : $(OFILES) +- ar r $(LIBRARY) $? ++ $(AR) r $(LIBRARY) $? + ranlib $(LIBRARY) + + spice : $(LIBRARY) spSMP.o + cp $(LIBRARY) ../SMP.a +- ar r ../SMP.a spSMP.o ++ $(AR) r ../SMP.a spSMP.o + ranlib ../SMP.a + + lint : diff --git a/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-cflags.patch b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-cflags.patch new file mode 100644 index 000000000000..7053406cb26f --- /dev/null +++ b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-cflags.patch @@ -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 diff --git a/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ldflags.patch b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ldflags.patch new file mode 100644 index 000000000000..198f2f7e74fe --- /dev/null +++ b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ldflags.patch @@ -0,0 +1,40 @@ +diff -ruN fasthenry-3.0wr.orig/src/fasthenry/Makefile fasthenry-3.0wr/src/fasthenry/Makefile +--- fasthenry-3.0wr.orig/src/fasthenry/Makefile 2020-07-12 19:17:05.000000000 +0300 ++++ fasthenry-3.0wr/src/fasthenry/Makefile 2020-10-24 18:27:20.624660092 +0300 +@@ -49,7 +49,7 @@ + @if [ $(SOLVER) = SPARSE_SOLVER ]; then \ + cd ../sparse; make CC=$(CC); \ + fi +- $(CC) -o fasthenry $(CFLAGS) $(OBJS) $(MOBJS) $(NONUNIOBJS) $(SOLVERLIB) -lm ++ $(CC) -o fasthenry $(LDFLAGS) $(CFLAGS) $(OBJS) $(MOBJS) $(NONUNIOBJS) $(SOLVERLIB) -lm + mv fasthenry $(BIN)/fasthenry + + clean: +diff -ruN fasthenry-3.0wr.orig/src/misc/Makefile fasthenry-3.0wr/src/misc/Makefile +--- fasthenry-3.0wr.orig/src/misc/Makefile 2019-03-21 23:10:58.000000000 +0200 ++++ fasthenry-3.0wr/src/misc/Makefile 2020-10-24 18:28:12.805126140 +0300 +@@ -1,10 +1,10 @@ + all: MakeLcircuit ReadOutput + + MakeLcircuit: MakeLcircuit.c +- $(CC) -O -o MakeLcircuit MakeLcircuit.c -lm ++ $(CC) $(LDFLAGS) $(CFLAGS) -o MakeLcircuit MakeLcircuit.c -lm + + ReadOutput: ReadOutput.c +- $(CC) -O -o ReadOutput ReadOutput.c -lm ++ $(CC) $(LDFLAGS) $(CFLAGS) -o ReadOutput ReadOutput.c -lm + + clean:: + -@rm -f *.o MakeLcircuit ReadOutput +diff -ruN fasthenry-3.0wr.orig/src/zbuf/Makefile fasthenry-3.0wr/src/zbuf/Makefile +--- fasthenry-3.0wr.orig/src/zbuf/Makefile 2019-09-08 22:53:50.000000000 +0300 ++++ fasthenry-3.0wr/src/zbuf/Makefile 2020-10-24 18:29:50.686000362 +0300 +@@ -41,7 +41,7 @@ + LIBS = -lm + + zbuf: $(OBJS) +- $(CC) -o zbuf $(CFLAGS) $(OBJS) $(LIBS) ++ $(CC) $(LDFLAGS) -o zbuf $(CFLAGS) $(OBJS) $(LIBS) + mv zbuf $(BIN)/zbuf + + clean: -- cgit v1.2.3