all buildblocks moved one level up

This commit is contained in:
2015-10-14 18:20:36 +02:00
parent 75832ca05a
commit 0a9fefd921
134 changed files with 0 additions and 0 deletions

19
Programming/Python/build Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
pbuild::post_install() {
ln -fs "${PREFIX}/bin/python${V%%.*}" "${PREFIX}/bin/python"
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python"
ln -fs "${PREFIX}/include/python${V%.*}m" "${PREFIX}/include/python${V%.*}"
}
pbuild::add_to_group 'Programming'
pbuild::set_runtime_dependencies ""
pbuild::set_build_dependencies "${COMPILER}"
pbuild::make_all

View File

@@ -0,0 +1,19 @@
#%Module1.0
set whatis "scripting language."
set url "http://www.python.org/"
set license "Python Software Foundation license (GPL-compatible)"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
Python is an easy to learn, powerful programming language. It has
efficient high-level data structures and a simple but effective
approach to object-oriented programming. Pythons elegant syntax
and dynamic typing, together with its interpreted nature, make it
an ideal language for scripting and rapid application development
in many areas on most platforms.
"
source $env(PSI_LIBMODULES)

27
Programming/Tcl/build Executable file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env modbuild
pbuild::configure() {
case ${OS} in
Linux )
srcdir="${MODULE_SRCDIR}/unix"
;;
Darwin )
srcdir="${MODULE_SRCDIR}/macosx"
;;
esac
"${srcdir}"/configure \
--prefix="${PREFIX}" \
--enable-shared=no \
|| exit 1
}
pbuild::post_install() {
{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
}
# use system's cc
declare CC=cc
pbuild::add_to_group 'Programming'
pbuild::set_docfiles 'license.terms' 'README'
pbuild::make_all

View File

@@ -0,0 +1,17 @@
#%Module1.0
set whatis "a very powerful, easy to learn programming language"
set url "http://www.tcl.tk"
set license "BSD-lik"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
Tcl (Tool Command Language) is a very powerful but easy to learn dynamic
programming language, suitable for a very wide range of uses, including
web and desktop applications, networking, administration, testing and many
more. Open source and business-friendly, Tcl is a mature yet evolving
language that is truly cross platform, easily deployed and highly
extensible.
"
source $env(PSI_LIBMODULES)

30
Programming/Tk/build Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env modbuild
pbuild::configure() {
case ${OS} in
Linux )
srcdir="${MODULE_SRCDIR}/unix"
;;
Darwin )
srcdir="${MODULE_SRCDIR}/macosx"
;;
esac
"${srcdir}"/configure \
--prefix="${PREFIX}" \
--with-tcl=${TCL_PREFIX}/lib \
--enable-shared=no \
|| exit 1
}
pbuild::post_install() {
:
#{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
}
# use system's cc
declare CC=cc
pbuild::add_to_group 'Programming'
pbuild::set_build_dependencies 'Tcl'
pbuild::set_docfiles 'license.terms' 'README'
pbuild::make_all

16
Programming/Tk/modulefile Normal file
View File

@@ -0,0 +1,16 @@
#%Module1.0
set whatis "graphical user interface toolkit"
set url "http://www.tcl.tk"
set license "BSD-like"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
Tk is a graphical user interface toolkit that takes developing desktop
applications to a higher level than conventional approaches. Tk is the
standard GUI not only for Tcl, but for many other dynamic languages, and
can produce rich, native applications that run unchanged across Windows,
Mac OS X, Linux and more.
"
source $env(PSI_LIBMODULES)

29
Programming/autoconf/build Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
pbuild::add_to_group 'Programming'
pbuild::set_docfiles \
AUTHORS \
COPYING \
COPYING.EXCEPTION \
COPYINGv3 \
NEWS \
README \
THANKS
pbuild::set_build_dependencies "m4"
pbuild::make_all
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End:

View File

@@ -0,0 +1,17 @@
#%Module1.0
set whatis "part of the GNU autotools"
set url "http://www.gnu.org/software/autoconf/"
set license "GNU GPL v2/v3"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
Autoconf is an extensible package of M4 macros that produce shell scripts
to automatically configure software source code packages. These scripts
can adapt the packages to many kinds of UNIX-like systems without manual
user intervention. Autoconf creates a configuration script for a package
from a template file that lists the operating system features that the
package can use, in the form of M4 macro calls.
"
source $env(PSI_LIBMODULES)

29
Programming/automake/build Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
pbuild::add_to_group 'Programming'
pbuild::set_docfiles \
AUTHORS \
COPYING \
ChangeLog \
HACKING \
NEWS \
README \
THANKS
pbuild::set_build_dependencies 'm4' 'autoconf'
pbuild::make_all
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End:

View File

@@ -0,0 +1,14 @@
#%Module1.0
set whatis "tool for automatically generating Makefile.in files"
set url "http://www.gnu.org/software/automake/"
set license "GNU GPL v2"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
Automake is a tool for automatically generating Makefile.in files
compliant with the GNU Coding Standards. Automake requires the use
of Autoconf.
"
source $env(PSI_LIBMODULES)

14
Programming/binutils/build Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
# use system gcc to compile
#declare -rx CC=gcc
pbuild::set_build_dependencies "${COMPILER}"
pbuild::add_to_group 'Programming'
pbuild::make_all

View File

@@ -0,0 +1,42 @@
#%Module1.0
set whatis "collection of binary tools like:ld, as, nm"
set url "http://www.gnu.org/software/binutils/"
set license "GNU GPL v3"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
The GNU Binutils are a collection of binary tools. The main ones are:
ld - the GNU linker.
as - the GNU assembler.
But they also include:
addr2line - Converts addresses into filenames and line numbers.
ar - A utility for creating, modifying and extracting from archives.
c++filt - Filter to demangle encoded C++ symbols.
dlltool - Creates files for building and using DLLs.
gold - A new, faster, ELF only linker, still in beta test.
gprof - Displays profiling information.
nlmconv - Converts object code into an NLM.
nm - Lists symbols from object files.
objcopy - Copies and translates object files.
objdump - Displays information from object files.
ranlib - Generates an index to the contents of an archive.
readelf - Displays information from any ELF format object file.
size - Lists the section sizes of an object or archive file.
strings - Lists printable strings from files.
strip - Discards symbols.
windmc - A Windows compatible message compiler.
windres - A compiler for Windows resource files.
Most of these programs use BFD, the Binary File Descriptor library, to do
low-level manipulation. Many of them also use the opcodes library to assemble
and disassemble machine instructions.
The binutils have been ported to most major Unix variants as well as Wintel
systems, and their main reason for existence is to give the GNU system (and
GNU/Linux) the facility to compile and link programs."
source $env(PSI_LIBMODULES)

11
Programming/cmake/build Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}/bootstrap" --prefix="${PREFIX}" --system-curl --verbose
}
pbuild::add_to_group 'Programming'
#pbuild::set_build_dependencies "${COMPILER}"
pbuild::make_all

View File

@@ -0,0 +1,16 @@
#%Module1.0
set whatis "cross-platform, open-source build system."
set url "http://www.cmake.org/"
set license "Kitware, Inc., Insight Software Consortium (BSD-like)"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
CMake is a family of tools designed to build, test and package software.
CMake is used to control the software compilation process using simple
platform and compiler independent configuration files. CMake generates
native makefiles and workspaces that can be used in the compiler
environment of your choice.
"
source $env(PSI_LIBMODULES)

26
Programming/gcc/build Executable file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-languages=c,c++,objc,obj-c++,lto,fortran \
--with-gmp="${GMP_PREFIX}" \
--with-mpfr="${MPFR_PREFIX}" \
--with-mpc="${MPC_PREFIX}" \
--enable-lto \
--disable-multilib \
--with-pkgversion="PSI Environment Module" \
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
declare -rx CXX=g++
module use 'Libraries'
pbuild::add_to_group 'Programming'
pbuild::set_build_dependencies 'gmp' 'mpfr' 'mpc'
pbuild::set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
pbuild::make_all

View File

@@ -0,0 +1,39 @@
#%Module1.0
set whatis "GNU Compiler Collection"
set url "http://gcc.gnu.org/"
set license "GNU GPL v2/v3"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
The GNU Compiler Collection includes front ends for C, C++, Objective-C,
Fortran, Java, Ada, and Go, as well as libraries for these languages
(libstdc++, libgcj,...). GCC was originally written as the compiler for
the GNU operating system.
This module includes compilers for
- C/C++
- Objective-C/Objective-C++
- Fortran
"
source $env(PSI_LIBMODULES)
set-family "Compiler"
setenv CC $PREFIX/bin/gcc
setenv CXX $PREFIX/bin/g++
setenv F77 $PREFIX/bin/gfortran
setenv F90 $PREFIX/bin/gfortran
setenv FC $PREFIX/bin/gfortran
setenv FORTRAN $PREFIX/bin/gfortran
# Ubuntu hack
if { [file exist "/usr/include/x86_64-linux-gnu"] } {
append-path C_INCLUDE_PATH "/usr/include/x86_64-linux-gnu"
append-path CPLUS_INCLUDE_PATH "/usr/include/x86_64-linux-gnu"
}
if { [file exist "/usr/lib/x86_64-linux-gnu"] } {
append-path LIBRARY_PATH "/usr/lib/x86_64-linux-gnu"
}

View File

@@ -0,0 +1,3 @@
gmp/6.0.0
mpfr/3.1.3
mpc/1.0.3

7
Programming/gtest/build Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env modbuild
pbuild::add_to_group 'Programming'
pbuild::set_runtime_dependencies ""
pbuild::set_build_dependencies "${COMPILER}"
pbuild::make_all

16
Programming/libtool/build Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
pbuild::add_to_group 'Programming'
pbuild::set_docfiles 'AUTHORS' 'COPYING' 'NEWS' 'README' 'THANKS'
pbuild::set_build_dependencies 'autoconf' 'automake'
pbuild::make_all

View File

@@ -0,0 +1,17 @@
#%Module1.0
set whatis "generic library support script"
set url "http://www.gnu.org/software/libtool/"
set libtool "GNU GPL v2"
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
set help "
GNU libtool is a generic library support script. Libtool hides the
complexity of using shared libraries behind a consistent, portable
interface.
To use libtool, add the new generic library building commands to
your Makefile, Makefile.in, or Makefile.am.
"
source $env(PSI_LIBMODULES)

13
Programming/m4/build Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env modbuild
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
|| exit 1
}
# use system gcc to compile
declare -rx CC=gcc
pbuild::add_to_group 'Programming'
pbuild::make_all

22
Programming/m4/modulefile Normal file
View File

@@ -0,0 +1,22 @@
#%Module1.0
module-whatis "traditional unix macro processor"
module-url 'http://www.gnu.org/software/m4/'
module-license "GNU GPL v3"
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
module-help "
GNU M4 is an implementation of the traditional Unix macro processor. It
is mostly SVR4 compatible although it has some extensions (for example,
handling more than 9 positional parameters to macros). GNU M4 also has
built-in functions for including files, running shell commands, doing
arithmetic, etc.
GNU M4 is a macro processor in the sense that it copies its input to the
output expanding macros as it goes. Macros are either builtin or user-
defined and can take any number of arguments. Besides just doing macro
expansion, m4 has builtin functions for including named files, running
UNIX commands, doing integer arithmetic, manipulating text in various
ways, recursion etc... m4 can be used either as a front-end to a compiler
or as a macro processor in its own right.
"

17
Programming/psi-python27/build Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env modbuild
pbuild::configure() {
:
}
pbuild::build() {
:
}
pbuild::install() {
cd "${MODULE_SRCDIR}"
rsync --exclude=".info" --delete --verbose --archive . "${PREFIX}"
}
pbuild::add_to_group 'Programming'
pbuild::make_all

View File

@@ -0,0 +1,18 @@
#%Module1.0
set whatis "Anaconda Python Distribution - Python scripting language."
set url "https://store.continuum.io/cshop/anaconda/"
set license "http://docs.continuum.io/anaconda/eula.html"
set maintainer "Derek Feichtinger <derek.feichtinger@psi.ch>"
set help "Anaconda is a completely free Python distribution
(including for commercial use and redistribution). It includes over
195 of the most popular Python packages for science, math,
engineering, data analysis.
The distribution is enriched by PSI specific packages.
"
set dont-setenv { LD_LIBRARY_PATH }
source $env(PSI_LIBMODULES)