science/PETSc: Update 3.8.4 -> 3.9.1

Port changes:
* Update SHEBANG_FILES
* Add TEST_TARGET
* Install custom configuration files that weer previously deleted (needed for depending projects)
This commit is contained in:
Yuri Victorovich 2018-05-21 11:00:41 +00:00
parent 5d502b204a
commit 9fc088d772
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=470530
4 changed files with 92 additions and 45 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= PETSc
DISTVERSION= 3.8.4
DISTVERSION= 3.9.1
CATEGORIES= science devel
MASTER_SITES= http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/
DISTNAME= ${PORTNAME:tl}-${DISTVERSION}
@ -23,8 +23,9 @@ CONFIGURE_ARGS= --with-shared-libraries=1 \
LDFLAGS="${LDFLAGS}" LIBS=""
USE_XORG= x11
MAKEFILE= makefile
SHEBANG_FILES= bin/*.py bin/popup bin/saws/SAWs.py bin/saws/*.bash bin/sendToJenkins
SHEBANG_FILES= lib/petsc/bin/*.py lib/petsc/bin/saws/SAWs.py lib/petsc/bin/saws/*.bash config/*.py
USE_LDCONFIG= yes
TEST_TARGET= test
BINARY_ALIAS= python=${PYTHON_CMD}
DATADIR= ${PREFIX}/share/${PORTNAME:tl}
@ -32,8 +33,10 @@ PLIST_SUB= SHLIB=${DISTVERSION} SHL=${DISTVERSION:C/\.[0-9]$//}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpetsc.so.${DISTVERSION}
@${FIND} ${STAGEDIR}${PREFIX} \( -name "*.html" -o -name "*.mod" \) -delete
@cd ${STAGEDIR}${PREFIX} && ${RM} -r bin/win32fe bin/uncrustify.cfg lib/petsc
@${FIND} ${STAGEDIR}${PREFIX} -name "*.html" -delete
@cd ${STAGEDIR}${PREFIX} && ${RM} -r bin/win32fe lib/petsc/conf/uninstall.py
@${REINPLACE_CMD} -i '' -e 's|^PYTHON = .*|PYTHON = ${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/lib/petsc/conf/petscvariables
@${REINPLACE_CMD} -i '' -e 's|#!/.*|#!${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/lib/petsc/conf/reconfigure-arch-*-c-debug.py
@${RM} -r ${STAGEDIR}${DATADIR}/examples # examples are a mess as installed
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1522044231
SHA256 (petsc-3.8.4.tar.gz) = 9f78dc4dd4c58433fa18d3dd3a9029e39a83e4e4b64f845a029dd9fed44bc4c7
SIZE (petsc-3.8.4.tar.gz) = 27946435
TIMESTAMP = 1526160643
SHA256 (petsc-3.9.1.tar.gz) = 742e838a35d278693e956ed1ca4592c1d663451f6beea0694bf334aeb67681e8
SIZE (petsc-3.9.1.tar.gz) = 29332746

View file

@ -1,11 +0,0 @@
--- makefile.orig 2017-12-18 03:43:13 UTC
+++ makefile
@@ -277,7 +277,7 @@ reconfigure:
@${PYTHON} ${PETSC_ARCH}/lib/petsc/conf/reconfigure-${PETSC_ARCH}.py
#
install:
- @${PYTHON} ./config/install.py -destDir=${DESTDIR}
+ @${PYTHON} ./config/install.py -destDir=${DESTDIR}${PREFIX}
${OMAKE} PETSC_ARCH=${PETSC_ARCH} PETSC_DIR=${PETSC_DIR} mpi4py-install petsc4py-install
newall:

View file

@ -1,27 +1,5 @@
bin/FASTMathInstaller.py
bin/PetscBinaryIO.py
bin/PetscBinaryIOTrajectory.py
bin/PetscBinaryIO_tests.py
bin/TOPSGenerator.py
bin/adiforfix.py
bin/configVars.py
bin/parseargs.py
bin/petsc-mpiexec.uni
bin/petsc_conf.py
bin/petsc_gen_xdmf.py
bin/petscdiff
bin/petsclogformat.py
bin/petscmpiexec
bin/petscnagupgrade.py
bin/popup
bin/portabilitycheck.py
bin/saws/SAWs.py
bin/saws/getSAWs.bash
bin/saws/getStack.bash
bin/sendToJenkins
bin/taucc.py
bin/update.py
include/petsc.h
include/petsc.mod
include/petsc/finclude/petsc.h
include/petsc/finclude/petscao.h
include/petsc/finclude/petscbag.h
@ -44,11 +22,9 @@ include/petsc/finclude/petsctao.h
include/petsc/finclude/petscts.h
include/petsc/finclude/petscvec.h
include/petsc/finclude/petscviewer.h
include/petsc/mpiuni/mpi.h
include/petsc/mpiuni/mpif.h
include/petsc/mpiuni/mpiunifdef.h
include/petsc/private/bagimpl.h
include/petsc/private/characteristicimpl.h
include/petsc/private/dmadaptorimpl.h
include/petsc/private/dmdaimpl.h
include/petsc/private/dmforestimpl.h
include/petsc/private/dmimpl.h
@ -92,6 +68,8 @@ include/petsc/private/tsimpl.h
include/petsc/private/vecimpl.h
include/petsc/private/viewerimpl.h
include/petscao.h
include/petscao.mod
include/petscaodef.mod
include/petscbag.h
include/petscblaslapack.h
include/petscblaslapack_mangle.h
@ -103,17 +81,33 @@ include/petscconfiginfo.h
include/petscconvest.h
include/petscctable.h
include/petsccuda.h
include/petsccusp.h
include/petscdef.mod
include/petscdm.h
include/petscdm.mod
include/petscdmadaptor.h
include/petscdmcomposite.h
include/petscdmda.h
include/petscdmda.mod
include/petscdmdadef.mod
include/petscdmdatypes.h
include/petscdmdef.mod
include/petscdmdefdummy.mod
include/petscdmforest.h
include/petscdmforest.mod
include/petscdmforestdef.mod
include/petscdmlabel.h
include/petscdmlabel.mod
include/petscdmlabeldef.mod
include/petscdmmoab.h
include/petscdmnetwork.h
include/petscdmnetwork.mod
include/petscdmnetworkdef.mod
include/petscdmpatch.h
include/petscdmpatch.mod
include/petscdmpatchdef.mod
include/petscdmplex.h
include/petscdmplex.mod
include/petscdmplexdef.mod
include/petscdmredundant.h
include/petscdmshell.h
include/petscdmsliced.h
@ -124,6 +118,7 @@ include/petscdrawtypes.h
include/petscds.h
include/petscdstypes.h
include/petscdt.h
include/petscdt.mod
include/petscerror.h
include/petscfe.h
include/petscfetypes.h
@ -132,30 +127,56 @@ include/petscfv.h
include/petscfvtypes.h
include/petscgll.h
include/petscis.h
include/petscis.mod
include/petscisdef.mod
include/petscisdefdummy.mod
include/petscistypes.h
include/petscksp.h
include/petscksp.mod
include/petsckspdef.mod
include/petsckspdefdummy.mod
include/petsclog.h
include/petscmachineinfo.h
include/petscmat.h
include/petscmat.mod
include/petscmatcoarsen.h
include/petscmatdef.mod
include/petscmatdefdummy.mod
include/petscmatelemental.h
include/petscmath.h
include/petscmathypre.h
include/petscmatlab.h
include/petscoptions.h
include/petscpc.h
include/petscpc.mod
include/petscpcdef.mod
include/petscpcdefdummy.mod
include/petscpctypes.h
include/petscpf.h
include/petscsf.h
include/petscsftypes.h
include/petscsnes.h
include/petscsnes.mod
include/petscsnesdef.mod
include/petscsnesdefdummy.mod
include/petscsys.h
include/petscsys.mod
include/petscsysdef.mod
include/petscsysdefdummy.mod
include/petsctao.h
include/petsctao.mod
include/petsctaodef.mod
include/petsctaolinesearch.h
include/petsctime.h
include/petscts.h
include/petscts.mod
include/petsctsdef.mod
include/petsctsdefdummy.mod
include/petscvalgrind.h
include/petscvec.h
include/petscvec.mod
include/petscvecdef.mod
include/petscvecdefdummy.mod
include/petscversion.h
include/petscviennacl.h
include/petscviewer.h
@ -166,6 +187,27 @@ include/petscwebclient.h
lib/libpetsc.so
lib/libpetsc.so.%%SHL%%
lib/libpetsc.so.%%SHLIB%%
lib/petsc/bin/PetscBinaryIO.py
lib/petsc/bin/PetscBinaryIOTrajectory.py
lib/petsc/bin/PetscBinaryIO_tests.py
lib/petsc/bin/petsc_conf.py
lib/petsc/bin/petsc_gen_xdmf.py
lib/petsc/bin/petscdiff
lib/petsc/bin/petsclogformat.py
lib/petsc/bin/petscmpiexec
lib/petsc/bin/petscnagupgrade.py
lib/petsc/bin/saws/SAWs.py
lib/petsc/bin/saws/getSAWs.bash
lib/petsc/bin/saws/getStack.bash
lib/petsc/bin/taucc.py
lib/petsc/conf/PETScBuildInternal.cmake
lib/petsc/conf/modules/petsc/%%SHLIB%%
lib/petsc/conf/petscrules
lib/petsc/conf/petscvariables
lib/petsc/conf/reconfigure-arch-%%PYTHON_PLATFORM%%-c-debug.py
lib/petsc/conf/rules
lib/petsc/conf/test
lib/petsc/conf/variables
libdata/pkgconfig/PETSc.pc
%%DATADIR%%/datafiles/matrices/amesos2_test_mat0.mtx
%%DATADIR%%/datafiles/matrices/hpd-complex-int32-float32
@ -185,13 +227,24 @@ libdata/pkgconfig/PETSc.pc
%%DATADIR%%/datafiles/matrices/spd-real-int32-float64
%%DATADIR%%/datafiles/matrices/spd-real-int64-float32
%%DATADIR%%/datafiles/matrices/spd-real-int64-float64
%%DATADIR%%/datafiles/matrices/tiny_system
%%DATADIR%%/datafiles/matrices/tiny_system_with_x0
%%DATADIR%%/datafiles/matrices/tiny_system_x0
%%DATADIR%%/datafiles/meshes/2Dgrd.exo
%%DATADIR%%/datafiles/meshes/FourBrickHex-large.exo
%%DATADIR%%/datafiles/meshes/FourBrickTet-large.exo
%%DATADIR%%/datafiles/meshes/FourSquareH-large.exo
%%DATADIR%%/datafiles/meshes/FourSquareQ-large.exo
%%DATADIR%%/datafiles/meshes/FourSquareT-large.exo
%%DATADIR%%/datafiles/meshes/Rect-tri3.exo
%%DATADIR%%/datafiles/meshes/TwoQuads.exo
%%DATADIR%%/datafiles/meshes/annulus-20.exo
%%DATADIR%%/datafiles/meshes/blockcylinder-50.exo
%%DATADIR%%/datafiles/meshes/cow.msh
%%DATADIR%%/datafiles/meshes/cube_5tets.cas
%%DATADIR%%/datafiles/meshes/cube_5tets_ascii.cas
%%DATADIR%%/datafiles/meshes/cube_periodic.msh
%%DATADIR%%/datafiles/meshes/cube_periodic_bin.msh
%%DATADIR%%/datafiles/meshes/cylinder.med
%%DATADIR%%/datafiles/meshes/doublet-tet.msh
%%DATADIR%%/datafiles/meshes/grid_c.cgns
@ -205,6 +258,8 @@ libdata/pkgconfig/PETSc.pc
%%DATADIR%%/datafiles/meshes/square.msh
%%DATADIR%%/datafiles/meshes/square_bin.msh
%%DATADIR%%/datafiles/meshes/square_bin_physnames.msh
%%DATADIR%%/datafiles/meshes/square_periodic.msh
%%DATADIR%%/datafiles/meshes/square_periodic_bin.msh
%%DATADIR%%/datafiles/meshes/square_quad.msh
%%DATADIR%%/datafiles/meshes/squaremotor-30.exo
%%DATADIR%%/datafiles/meshes/texas.msh