build-blocks:
- use modbuild in shebang - refactore function calls
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
pmodules.configure() {
|
||||
pbuild::configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-languages=c,c++,objc,obj-c++,lto,fortran \
|
||||
@@ -21,8 +19,8 @@ declare -rx CC=gcc
|
||||
declare -rx CXX=g++
|
||||
|
||||
module use 'Libraries'
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_build_dependencies 'gmp' 'mpfr' 'mpc'
|
||||
pmodules.set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
|
||||
pmodules.make_all
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user