Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plan files for builder itself #59

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ To set up the defaults for Builder run the configure command once:
Then you can configure all relevant paths in `~/.buildrc`. A more complete
description is in the [configuration details](doc/Configuration.md).

**Hint:** *You can also use Builder to install itself, which has the benefit of
installing a suitable modulefile automatically. See [Install](doc/Install.md)
for details.*


### Optional

To make best use of the installed packages, you likely also want to install a
Expand Down
38 changes: 38 additions & 0 deletions plans/Builder/0.1/default
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash
#
# Builder – Compile scripts for local installs of software packages.
# Copyright (C) 2020 Forschungszentrum Jülich GmbH, INM-6
#
# Builder is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Builder is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Builder. If not, see <https://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
URL="https://github.com/INM-6/Builder/archive/v${VERSION}.tar.gz"
MD5SUM="d00f46d1ed303ef0585d4f5877a0881b"
SHA256SUM="c0c31bf219a655437064e61e6185b2e09dd40f961d695d0dbba59c9c58045985"

build_prepare() {
log_status ">>> nothing to prepare"
}
build_package() {
log_status ">>> nothing to build"
}
build_install () {
log_status ">>> installing..."
mkdir -pv "${LOG}"
cd "${SOURCE}"
mkdir -pv "${TARGET}"
cp -rv build_functions.sh plans "${TARGET}" 2>&1 | tee "${LOG}/make-install.log"
cp -rv build.sh "${TARGET}/build" 2>&1 | tee "${LOG}/make-install.log"
}
24 changes: 24 additions & 0 deletions plans/Builder/0.1/default.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#%Module1.0#####################################################################
#
# ${AUTOMATIC_BUILD_WARNING}
#
set INSTALLDIR "${TARGET}"

proc ModulesHelp { } {
puts stderr "
Collection of tools and scripts to install software on a system.

In contrast to usual packaging systems, the aim is to equally help users and
admins. Many aspects are inspired by Portage, which is used by the Gentoo
Linux distribution.

See https://github.com/INM-6/Builder
"
}

module-whatis "Bash testing framework (${VERSION})"

conflict ${PACKAGE}
${PREREQ_DEPENDS}

prepend-path PATH \$INSTALLDIR
1 change: 1 addition & 0 deletions plans/nest-simulator/3.1/default
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ SHA256SUM=5c11dd6b451c4c6bf93037bf29d5231c6c75a0e1a8863344f6fb9bb225f279ca

CMAKEFLAGS+=" -Dwith-boost=ON -Dwith-python=ON -Dwith-mpi=ON -Dwith-detailed-timers=ON -Dwith-ltdl=OFF"

# shellcheck source=plans/nest-simulator/common
source "$(dirname "${PLAN}")/../common"
2 changes: 1 addition & 1 deletion plans/nest-simulator/common
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module_install () {
log_status ">>> installing module file to ${module_path}"
mkdir -pv "$(dirname "${module_path}")"
module="$(cat "${PLAN}.module")"
if version_gt $BASH_VERSION 4.4; then
if version_gt "${BASH_VERSION}" "4.4"; then
echo -e "${module@P}" >"${module_path}"
else
# this is a bad substitute for the power of the bash>4.4 notation.
Expand Down
1 change: 1 addition & 0 deletions plans/nest-simulator/master/default
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ URL="https://github.com/nest/nest-simulator/archive/${VERSION}.tar.gz"

CMAKEFLAGS+=" -Dwith-boost=ON -Dwith-python=ON -Dwith-mpi=ON -Dwith-detailed-timers=ON -Dwith-ltdl=OFF"

# shellcheck source=plans/nest-simulator/common
source "$(dirname "${PLAN}")/../common"