diff options
author | David Seifert <soap@gentoo.org> | 2016-09-07 23:20:37 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-09-07 23:26:48 +0200 |
commit | 1d8d995eef56b352407e0c6348193decaef224ca (patch) | |
tree | af5839258864656f0f03f80d738176ea8512b0f3 /sci-libs/lis | |
parent | sys-kernel/gentoo-sources: Linux patch 4.7.3 (diff) | |
download | gentoo-1d8d995eef56b352407e0c6348193decaef224ca.tar.gz gentoo-1d8d995eef56b352407e0c6348193decaef224ca.tar.bz2 gentoo-1d8d995eef56b352407e0c6348193decaef224ca.zip |
sci-libs/lis: Version bump to 1.6.2
* EAPI=6
Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-libs/lis')
-rw-r--r-- | sci-libs/lis/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/lis/files/lis-1.6.2-autotools.patch | 378 | ||||
-rw-r--r-- | sci-libs/lis/lis-1.6.2.ebuild | 66 |
3 files changed, 445 insertions, 0 deletions
diff --git a/sci-libs/lis/Manifest b/sci-libs/lis/Manifest index 67f898dac3e7..a59c6f59fe68 100644 --- a/sci-libs/lis/Manifest +++ b/sci-libs/lis/Manifest @@ -1,2 +1,3 @@ DIST lis-1.4.11.tar.gz 2978494 SHA256 08fd7452e184b72d58c7b99985d840e9c75df1f40fa525c7a260b7d37e9bf7dd SHA512 784f6cce01197588e3c835132016d04f39c871baf4e1111ddc06116a490bae3cdbbb133a781bdf52125d3452ba448d9b0dd3420899a34b9c46f5fad2198dd0d4 WHIRLPOOL 79b66354cb81199c9bb76b1d81bb2a38a29f413d37351a507b06c95260c16a2bfca876d271a98dc4c067954ae99e1e68ea07a3011c26e68a50292ee18497b54f DIST lis-1.4.23.tar.gz 2977200 SHA256 f915b4e3de1fbddc655e39b2e561f1aca5456b2a0e0cdb30b2c434d4c3c4f965 SHA512 8d720e2b69aaa2a3bef96679ae2c96d640787271a38037fa79ac88c571452a1e2f8f28bcbb78633f3d885d25143fb097bbef007433461fb2e0e511e671d9d481 WHIRLPOOL 5f82c645829ee13b6c164cca5a0f739543420c9eb9c40389d7cb37560713cb2d9afdd0ebccb9a57a8a667130df300fd40015036c06e681d90dfefbaab48f5e6e +DIST lis-1.6.2.tar.gz 3129847 SHA256 c2db6d2717626073a00367ef76e7e0ef861fa509060e4932c3275b1708db60d2 SHA512 369f7cfd7e867df950881bd4e060ae9f8a70a8e13c94406b0a863af7f224260340b1dc6c8ae56dd1194afff93c1031c5901ee083823576f4271443caee381930 WHIRLPOOL b8f2565c22274c00da1e746b12e8ca9c8c6a0953f3eef6dd5dbd3d97f1cd79fc28286e58c1f061396eddc8ddc8b4e656a2fdce76f2a636df756da7e0def150c9 diff --git a/sci-libs/lis/files/lis-1.6.2-autotools.patch b/sci-libs/lis/files/lis-1.6.2-autotools.patch new file mode 100644 index 000000000000..d7e1fa2ad9e9 --- /dev/null +++ b/sci-libs/lis/files/lis-1.6.2-autotools.patch @@ -0,0 +1,378 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -372,26 +372,6 @@ + done + AC_MSG_CHECKING([for C compiler vendor]) + AC_MSG_RESULT($[ax_cv_]_AC_LANG_ABBREV[_compiler_vendor]) +- case $ax_cv_c_compiler_vendor in +- dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host $CFLAGS" ;; +- gnu) CFLAGS="-O3 -fomit-frame-pointer $CFLAGS" ;; +- intel) CFLAGS="-ansi_alias $CFLAGS" ;; +- portland) CFLAGS="-O3 -B -fastsse $CFLAGS" ;; +- pathscale) CFLAGS="-O3 $CFLAGS" ;; +- ibm) CFLAGS="-O3 -qansialias -w -qarch=auto -qtune=auto $CFLAGS" +- AR="ar -X any" +- ;; +- sun) case `(uname -m) 2>/dev/null` in +- "i86pc") CFLAGS="-xtarget=native -xO5 -dalign $CFLAGS" +- LDFLAGS="-xtarget=native -xO5" +- ;; +- *) CFLAGS="-xtarget=native64 -xO5 -dalign $CFLAGS" +- LDFLAGS="-xtarget=native64 -xO5" +- ;; +- esac +- ;; +- hp) CFLAGS="+Oall +Optrs_ansi +DSnative $CFLAGS" ;; +- esac + + AC_DEFUN([_AX_PROG_FC_V_OUTPUT], + [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) +@@ -538,6 +518,10 @@ + AC_LANG_PUSH(Fortran 77) + fflags_save="$FFLAGS" + AC_PROG_F77([ifort ifc efc xlf95_r xlf90_r xlf_r xlf95 xlf90 xlf ftn frt pgf95 pgf90 pathf95 pathf90 epcf90 f95 fort lf95 gfortran f90 g77]) ++ ++ AC_F77_LIBRARY_LDFLAGS ++ AC_F77_DUMMY_MAIN ++ + FFLAGS="$fflags_save" + if test "$TARGET" = ""; then + if test "$enable_mpi" = "yes"; then +@@ -582,29 +566,6 @@ + AC_MSG_CHECKING([for Fortran compiler vendor]) + AC_MSG_RESULT($[ax_cv_]_AC_LANG_ABBREV[_compiler_vendor]) + AC_LANG_POP(Fortran 77) +- case $ax_cv_f77_compiler_vendor in +- gnu) FFLAGS="-O3 -fomit-frame-pointer $FFLAGS" +- FCFLAGS="-O3 -fomit-frame-pointer $FCFLAGS" ;; +- intel) FFLAGS="-fpp $FFLAGS" +- FCFLAGS="-fpp $FCFLAGS" +- LDFLAGS="-Vaxlib" +- FCLDFLAGS="-nofor_main" ;; +- portland) FFLAGS="-O3 -fastsse -Mpreprocess $FFLAGS" +- FCFLAGS="-O3 -fastsse -Mpreprocess $FCFLAGS" +- FCLDFLAGS="-Mnomain" ;; +- pathscale) FFLAGS="-O3 $FFLAGS" ;; +- ibm) FFLAGS="-O3 -qsuffix=cpp=F -qfixed=72 -w -qarch=auto -qtune=auto $FFLAGS" +- FCFLAGS="-O3 -qsuffix=cpp=F90 -w -qarch=auto -qtune=auto $FCFLAGS" ;; +- sun) case `(uname -m) 2>/dev/null` in +- "i86pc") FFLAGS="-fpp -xtarget=native -xO5 -dalign $FFLAGS" +- FCFLAGS="-fpp -xtarget=native -xO5 -dalign $FCFLAGS" +- FCLDFLAGS="-xO5" ;; +- *) FFLAGS="-fpp -xtarget=native64 -xO5 -dalign $FFLAGS" +- FCFLAGS="-fpp -xtarget=native64 -xO5 -dalign $FCFLAGS" +- FCLDFLAGS="-xO5" ;; +- esac +- ;; +- esac + + if test x$ax_cv_c_compiler_vendor = x$ax_cv_f77_compiler_vendor; then + CLIBS="" +--- a/src/array/Makefile.am ++++ b/src/array/Makefile.am +@@ -1,16 +1,5 @@ + noinst_LTLIBRARIES = libarray.la + libarray_la_SOURCES = lis_array.c + +-AM_CFLAGS = -I$(top_srcdir)/include $(ILIBS) ++AM_CPPFLAGS = -I$(top_srcdir)/include $(ILIBS) + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/esolver/Makefile.am ++++ b/src/esolver/Makefile.am +@@ -10,16 +10,5 @@ + lis_esolver_rqi.c \ + lis_esolver_si.c + +-AM_CFLAGS = -I$(top_srcdir)/include ++AM_CPPFLAGS = -I$(top_srcdir)/include + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/fortran/amg/Makefile.am ++++ b/src/fortran/amg/Makefile.am +@@ -25,25 +25,6 @@ + + CLEANFILES = *.mod + AM_CPPFLAGS = -I$(top_srcdir)/include +-FCCOMPILE = $(FC) $(AMDEFS) $(AM_FCFLAGS) $(FCFLAGS) +-LTFCCOMPILE = $(LIBTOOL) --mode=compile $(FC) $(AMDEFS) $(AM_FCFLAGS) $(FCFLAGS) +-FCLD = $(FC) +-FCLINK = $(LIBTOOL) --mode=link $(FCLD) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +-PPFCCOMPILE = $(FC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS) +-LTPPFCCOMPILE = $(LIBTOOL) --mode=compile $(FC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FCFLAGS) $(FCFLAGS) +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) + + .NOTPARALLEL: + .NO_PARALLEL: +--- a/src/fortran/Makefile.am ++++ b/src/fortran/Makefile.am +@@ -12,14 +12,3 @@ + + AM_CPPFLAGS = -I$(top_srcdir)/include + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -23,7 +23,7 @@ + liblis@LIBSUFFIX@_la_LIBADD += fortran/libfortran.la + else + if ENABLE_FORTRAN +- liblis@LIBSUFFIX@_la_LIBADD += fortran/libfortran.la ++ liblis@LIBSUFFIX@_la_LIBADD += fortran/libfortran.la $(FLIBS) + endif + endif + liblis@LIBSUFFIX@_la_SOURCES = +--- a/src/matrix/Makefile.am ++++ b/src/matrix/Makefile.am +@@ -17,16 +17,5 @@ + lis_matrix_rco.c \ + lis_matrix_vbr.c + +-AM_CFLAGS = -I$(top_srcdir)/include $(ILIBS) ++AM_CPPFLAGS = -I$(top_srcdir)/include $(ILIBS) + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/matvec/Makefile.am ++++ b/src/matvec/Makefile.am +@@ -13,16 +13,5 @@ + lis_matvec_vbr.c + + +-AM_CFLAGS = -I$(top_srcdir)/include ++AM_CPPFLAGS = -I$(top_srcdir)/include + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/precision/Makefile.am ++++ b/src/precision/Makefile.am +@@ -4,16 +4,5 @@ + lis_precision_vec.c + + +-AM_CFLAGS = -I$(top_srcdir)/include $(MPFLAG) ++AM_CPPFLAGS = -I$(top_srcdir)/include $(MPFLAG) + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/precon/Makefile.am ++++ b/src/precon/Makefile.am +@@ -12,16 +12,5 @@ + lis_precon_ssor.c + + +-AM_CFLAGS = -I$(top_srcdir)/include ++AM_CPPFLAGS = -I$(top_srcdir)/include + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/solver/Makefile.am ++++ b/src/solver/Makefile.am +@@ -17,16 +17,5 @@ + lis_solver_sor.c + + +-AM_CFLAGS = -I$(top_srcdir)/include ++AM_CPPFLAGS = -I$(top_srcdir)/include + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/system/Makefile.am ++++ b/src/system/Makefile.am +@@ -13,16 +13,5 @@ + mt19937ar.c + + +-AM_CFLAGS = -I$(top_srcdir)/include ++AM_CPPFLAGS = -I$(top_srcdir)/include + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/src/vector/Makefile.am ++++ b/src/vector/Makefile.am +@@ -4,16 +4,5 @@ + lis_vector_opv.c + + +-AM_CFLAGS = -I$(top_srcdir)/include ++AM_CPPFLAGS = -I$(top_srcdir)/include + CLEANFILES = *.il +- +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +--- a/test/Makefile.am ++++ b/test/Makefile.am +@@ -5,21 +5,22 @@ + + EXTRA_DIST = defs test.sh testmat.mtx testmat2.mtx + +-testdir = ${prefix}/share/examples/lis ++testdir = $(prefix)/share/lis/examples + + test_DATA = testmat.mtx testmat2.mtx + + test_SCRIPTS = defs test.sh + +-test_PROGRAMS = etest1 etest2 etest3 etest4 etest5 etest6 etest7 spmvtest1 spmvtest2 spmvtest2b spmvtest3 spmvtest3b spmvtest4 spmvtest5 test1 test2 test2b test3 test3b test4 test5 test6 test7 ++check_PROGRAMS = etest1 etest2 etest3 etest4 etest5 etest6 etest7 spmvtest1 spmvtest2 spmvtest2b spmvtest3 spmvtest3b spmvtest4 spmvtest5 test1 test2 test2b test3 test3b test4 test5 test6 test7 + if ENABLE_FORTRAN +- test_PROGRAMS += etest1f etest4f test1f test4f test7f ++ check_PROGRAMS += etest1f etest4f test1f test4f test7f ++ LDADD += $(FLIBS) + endif + if ENABLE_F90 +- test_PROGRAMS += test2f test6f ++ check_PROGRAMS += test2f test6f + if ENABLE_SAAMG + if ENABLE_MPI +- test_PROGRAMS += test8f ++ check_PROGRAMS += test8f + endif + endif + endif +@@ -60,40 +61,13 @@ + test8f_SOURCES = test8f.F90 + endif + +-bin_PROGRAMS = esolve hpcg_kernel hpcg_spmvtest lsolve spmvtest1 spmvtest2 spmvtest2b spmvtest3 spmvtest3b spmvtest4 spmvtest5 ++noinst_PROGRAMS = esolve hpcg_kernel hpcg_spmvtest lsolve spmvtest1 spmvtest2 spmvtest2b spmvtest3 spmvtest3b spmvtest4 spmvtest5 + + esolve_SOURCES = etest5.c + hpcg_kernel_SOURCES = test3b.c + hpcg_spmvtest_SOURCES = spmvtest3b.c + lsolve_SOURCES = test1.c + +-PPF77COMPILE = $(F77) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ +- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS) +-LTPPF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_FFLAGS) $(FFLAGS) +-COMPILE = $(CC) $(AMDEFS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +-LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(AMDEFS) $(DEFS) \ +- $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ +- $(AM_CFLAGS) $(CFLAGS) +- +-if ENABLE_SAAMG +- LINK = $(LIBTOOL) --mode=link $(FC) \ +- $(AM_LDFLAGS) $(LDFLAGS) $(FCLDFLAGS) -o $@ $(LIBS) $(CLIBS) +- F77LINK = $(LIBTOOL) --mode=link $(FC) \ +- $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(LIBS) $(CLIBS) +-else +-if ENABLE_FORTRAN +- LINK = $(LIBTOOL) --mode=link $(FC) \ +- $(AM_LDFLAGS) $(LDFLAGS) $(FCLDFLAGS) -o $@ $(LIBS) $(CLIBS) +- F77LINK = $(LIBTOOL) --mode=link $(F77) \ +- $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(LIBS) $(CLIBS) +-else +- LINK = $(LIBTOOL) --mode=link $(CC) $(AM_LDFLAGS) $(LDFLAGS) -o $@ $(LIBS) +-endif +-endif +- + CLEANFILES = *.il + + diff --git a/sci-libs/lis/lis-1.6.2.ebuild b/sci-libs/lis/lis-1.6.2.ebuild new file mode 100644 index 000000000000..e5143116e924 --- /dev/null +++ b/sci-libs/lis/lis-1.6.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools fortran-2 toolchain-funcs + +DESCRIPTION="Library of Iterative Solvers for Linear Systems" +HOMEPAGE="http://www.ssisc.org/lis/index.en.html" +SRC_URI="http://www.ssisc.org/lis/dl/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse2 doc fortran mpi openmp quad saamg static-libs" + +RDEPEND="mpi? ( virtual/mpi )" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-1.6.2-autotools.patch ) + +pkg_setup() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + if ! tc-has-openmp; then + ewarn "OpenMP is not available in your current selected compiler" + + if tc-is-clang; then + ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp," + ewarn "which you will need to build ${CATEGORY}/${PN} with USE=\"openmp\"" + fi + + die "need openmp capable compiler" + fi + FORTRAN_NEED_OPENMP=1 + fi + + use fortran && fortran-2_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + $(use_enable fortran) \ + $(use_enable openmp omp) \ + $(use_enable quad) \ + $(use_enable "cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4)" fma) \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable saamg) \ + $(use_enable mpi) +} + +src_install() { + use doc && DOCS+=( doc/*.pdf ) + default + + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die + fi +} |