Merge branch 'master' of gitlab.psi.ch:Pmodules/buildblocks

This commit is contained in:
2018-07-09 14:09:37 +02:00
8 changed files with 33 additions and 18 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env modbuild
SOURCE_URL="https://www.unidata.ucar.edu/downloads/$P/ftp/$P-$V.tar.gz"
pbuild::pre_configure() {
:
}
@@ -15,12 +17,24 @@ pbuild::configure() {
--prefix="${PREFIX}" \
--enable-netcdf-4 \
--with-pic \
--enable-pnetcdf \
--enable-remote-fortran-bootstrap \
|| exit 1
}
pbuild::build() {
make check
make
make install
make build-netcdf-fortran
make install-netcdf-fortran
}
pbuild::install() {
:
}
pbuild::add_to_group 'HDF5'
pbuild::set_runtime_dependencies "${COMPILER}" "${MPI}" 'hdf5'
pbuild::set_build_dependencies "${COMPILER}" "${MPI}" 'hdf5'
pbuild::set_docfiles 'COPYRIGHT' 'README.md' 'RELEASE_NOTES.md'
pbuild::make_all

View File

@@ -1,6 +1,10 @@
#!/usr/bin/env modbuild
SOURCE_URL="ftp://ftp.gnu.org/gnu/$P/$P-$V_MAJOR.$V_MINOR.$V_PATCHLVL.tar.gz"
module use 'Libraries'
pbuild::set_source_url "ftp://ftp.gnu.org/gnu/${P}/${P}-${V_PKG}.tar.gz"
pbuild::add_to_group 'Libraries'
pbuild::use_cc '/usr/bin/cc'
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
@@ -11,10 +15,5 @@ pbuild::configure() {
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
module use 'Libraries'
pbuild::add_to_group 'Libraries'
pbuild::make_all

1
MPI/lammps/2018/variants Normal file
View File

@@ -0,0 +1 @@
lammps/2018.3 unstable gcc/7.3.0 openmpi/3.0.1

View File

@@ -1,7 +1,10 @@
#!/usr/bin/env modbuild
SOURCE_URL="lammps-2017.8.tar.gz"
pbuild::add_to_group 'MPI'
pbuild::set_download_url="file:///lammps-2017.8.tar.gz"
pbuild::set_docfiles \
LICENSE \
README
pbuild::compile_in_sourcetree
pbuild::configure() {
@@ -18,9 +21,5 @@ pbuild::install() {
strip "${PREFIX}/bin/lmp_omp"
}
pbuild::add_to_group 'MPI'
pbuild::set_docfiles \
LICENSE \
README
pbuild::make_all

View File

@@ -1,2 +1,2 @@
emacs/25.1 stable b:libungif/4.1.4 b:tiff/4.0.3
emacs/25.3 unstable b:libungif/4.1.4 b:tiff/4.0.9
emacs/25.3 stable b:libungif/4.1.4 b:tiff/4.0.9

View File

@@ -1,3 +1,4 @@
gnuplot/4.6.3 stable
gnuplot/5.0.0 stable
gnuplot/5.2.0 stable
gnuplot/5.2.4 stable

View File

@@ -1,6 +1,8 @@
#!/usr/bin/env modbuild
SOURCE_URL="https://sourceforge.net/projects/gnuplot/files/$P/$V/$P-$V.tar.gz"
pbuild::add_to_group 'Tools'
pbuild::set_source_url "https://sourceforge.net/projects/gnuplot/files/$P/$V/$P-$V.tar.gz"
pbuild::set_docfiles 'Copyright' 'ChangeLog' 'NEWS' 'README'
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
@@ -10,8 +12,6 @@ pbuild::configure() {
|| exit 1
}
pbuild::add_to_group 'Tools'
pbuild::set_docfiles 'Copyright' 'ChangeLog' 'NEWS' 'README'
pbuild::make_all
# Local Variables: