<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8cb79b09f79994e7c7be1dded87cbab4804e5082">https://github.com/macports/macports-ports/commit/8cb79b09f79994e7c7be1dded87cbab4804e5082</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 8cb79b09f79994e7c7be1dded87cbab4804e5082
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Thu Mar 19 09:16:57 2020 -0700
<span style='display:block; white-space:pre;color:#404040;'> mumps: tweak patch files to simplify Portfile
</span>---
math/mumps/Portfile | 2 --
math/mumps/files/patch-Makefile.inc.diff | 12 ++++++------
math/mumps/files/patch-shared.diff | 12 ++++++------
3 files changed, 12 insertions(+), 14 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mumps/Portfile b/math/mumps/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b901971..50b65ad 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/mumps/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mumps/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,7 +36,6 @@ mpi.enforce_variant scalapack
</span>
linalg.setup blas_only
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patch.pre_args -p1
</span> patchfiles-append patch-shared.diff \
patch-Makefile.inc.diff
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,7 +56,6 @@ configure.mtune native
</span> configure.cflags-append -fPIC
configure.fflags-append -fPIC
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.env-append MACPORTS_PREFIX=${prefix}
</span> pre-configure {
configure.env-append MACPORTS_BLAS=${linalglib}
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mumps/files/patch-Makefile.inc.diff b/math/mumps/files/patch-Makefile.inc.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 20b75b1..ebd85f5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/mumps/files/patch-Makefile.inc.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mumps/files/patch-Makefile.inc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,12 +1,12 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- a/Makefile.inc 2017-10-02 00:37:01.000000000 -0700
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ b/Makefile.inc 2018-06-29 10:13:01.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.inc 2017-10-02 00:37:01.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile.inc 2018-06-29 10:13:01.000000000 -0700
</span> @@ -40,8 +40,8 @@
# Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 6.0 and later) orderings are recommended.
#
-#SCOTCHDIR = ${HOME}/scotch_6.0
-#ISCOTCH = -I$(SCOTCHDIR)/include
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+SCOTCHDIR = $(MACPORTS_PREFIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SCOTCHDIR = $(PREFIX)
</span> +ISCOTCH = -I$(SCOTCHDIR)/include
#
# You have to choose one among the following two lines depending on
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,8 +25,8 @@
</span>
-#LMETISDIR = /opt/metis-5.1.0/build/Linux-x86_64/libmetis
-#IMETIS = /opt/metis-5.1.0/include
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+LMETISDIR = $(MACPORTS_PREFIX)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+IMETIS = -I$(MACPORTS_PREFIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++LMETISDIR = $(PREFIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++IMETIS = -I$(PREFIX)
</span>
# You have to choose one among the following two lines depending on
# the type of analysis you want to perform. If you want to perform only
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -71,7 +71,7 @@
</span>
# SCALAP should define the SCALAPACK and BLACS libraries.
-SCALAP = -lscalapack -lblacs
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+SCALAP = -L$(MACPORTS_PREFIX) -lscalapack
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SCALAP = -L$(PREFIX) -lscalapack
</span>
# INCLUDE DIRECTORY FOR MPI
-INCPAR = -I/usr/include
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mumps/files/patch-shared.diff b/math/mumps/files/patch-shared.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 281da6e..7dc83d7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/mumps/files/patch-shared.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mumps/files/patch-shared.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -9,8 +9,8 @@ make: add rule for shared library
</span> This works by putting libmumps_common objects into the other libs.
diff --git a/Makefile b/Makefile
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- a/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ b/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile
</span> @@ -63,20 +63,25 @@ libseqneeded:
# Build the libpord.a library and copy it into $(topdir)/lib
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,8 +41,8 @@ diff --git a/Makefile b/Makefile
</span> fi;
diff --git a/PORD/lib/Makefile b/PORD/lib/Makefile
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- a/PORD/lib/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ b/PORD/lib/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- PORD/lib/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ PORD/lib/Makefile
</span> @@ -22,14 +22,15 @@ OBJS = graph.o gbipart.o gbisect.o ddcre
# OUTC = -o
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -62,8 +62,8 @@ diff --git a/PORD/lib/Makefile b/PORD/lib/Makefile
</span> - rm -f *.o libpord.a
+ rm -f *.o libpord$(LIBEXT) libpord$(SHAREDLIBEXT)
diff --git a/src/Makefile b/src/Makefile
<span style='display:block; white-space:pre;background:#ffe0e0;'>---- a/src/Makefile
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ b/src/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/Makefile
</span> @@ -170,10 +170,12 @@
$(libdir)/libmumps_common$(PLAT)$(LIBEXT): $(OBJS_COMMON_MOD) $(OBJS_COMMON_OTHER)
$(AR)$@ $?
</pre><pre style='margin:0'>
</pre>