- em.xyz renamed to pmodules.xxy
- underscore removed as prefix of function names - keyword function removed
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.post_install() {
|
||||
pmodules.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%.*}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_runtime_dependencies ""
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_runtime_dependencies ""
|
||||
pmodules.set_build_dependencies "${COMPILER}"
|
||||
pmodules.make_all
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
case ${OS} in
|
||||
Linux )
|
||||
srcdir="${MODULE_SRCDIR}/unix"
|
||||
@@ -17,13 +17,13 @@ function em.configure() {
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.post_install() {
|
||||
pmodules.post_install() {
|
||||
{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
||||
}
|
||||
|
||||
# use system's cc
|
||||
declare CC=cc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles 'license.terms' 'README'
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_docfiles 'license.terms' 'README'
|
||||
pmodules.make_all
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
case ${OS} in
|
||||
Linux )
|
||||
srcdir="${MODULE_SRCDIR}/unix"
|
||||
@@ -18,7 +18,7 @@ function em.configure() {
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.post_install() {
|
||||
pmodules.post_install() {
|
||||
:
|
||||
#{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
||||
}
|
||||
@@ -26,7 +26,7 @@ function em.post_install() {
|
||||
# use system's cc
|
||||
declare CC=cc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_build_dependencies 'Tcl'
|
||||
em.set_docfiles 'license.terms' 'README'
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_build_dependencies 'Tcl'
|
||||
pmodules.set_docfiles 'license.terms' 'README'
|
||||
pmodules.make_all
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
@@ -11,8 +11,8 @@ function em.configure() {
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles \
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_docfiles \
|
||||
AUTHORS \
|
||||
COPYING \
|
||||
COPYING.EXCEPTION \
|
||||
@@ -21,8 +21,8 @@ em.set_docfiles \
|
||||
README \
|
||||
THANKS
|
||||
|
||||
em.set_build_dependencies "m4"
|
||||
em.make_all
|
||||
pmodules.set_build_dependencies "m4"
|
||||
pmodules.make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
@@ -11,8 +11,8 @@ function em.configure() {
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles \
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_docfiles \
|
||||
AUTHORS \
|
||||
COPYING \
|
||||
ChangeLog \
|
||||
@@ -20,8 +20,8 @@ em.set_docfiles \
|
||||
NEWS \
|
||||
README \
|
||||
THANKS
|
||||
em.set_build_dependencies 'm4' 'autoconf'
|
||||
em.make_all
|
||||
pmodules.set_build_dependencies 'm4' 'autoconf'
|
||||
pmodules.make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
@@ -11,6 +11,6 @@ function em.configure() {
|
||||
# use system gcc to compile
|
||||
#declare -rx CC=gcc
|
||||
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.add_to_family 'Programming'
|
||||
em.make_all
|
||||
pmodules.set_build_dependencies "${COMPILER}"
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.make_all
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}/bootstrap" --prefix="${PREFIX}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_build_dependencies "${COMPILER}"
|
||||
pmodules.make_all
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-languages=c,c++,objc,obj-c++,lto,fortran \
|
||||
@@ -21,8 +21,8 @@ declare -rx CC=gcc
|
||||
declare -rx CXX=g++
|
||||
|
||||
module use 'Libraries'
|
||||
em.add_to_family 'Programming'
|
||||
em.set_build_dependencies 'gmp' 'mpfr' 'mpc'
|
||||
em.set_docfiles 'COPYING' 'COPYING.LIB' 'COPYING.RUNTIME' 'COPYING3' 'COPYING3.LIB' 'NEWS' 'README'
|
||||
em.make_all
|
||||
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
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_runtime_dependencies ""
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_runtime_dependencies ""
|
||||
pmodules.set_build_dependencies "${COMPILER}"
|
||||
pmodules.make_all
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
@@ -11,8 +11,8 @@ function em.configure() {
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.set_docfiles 'AUTHORS' 'COPYING' 'NEWS' 'README' 'THANKS'
|
||||
em.set_build_dependencies 'autoconf' 'automake'
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.set_docfiles 'AUTHORS' 'COPYING' 'NEWS' 'README' 'THANKS'
|
||||
pmodules.set_build_dependencies 'autoconf' 'automake'
|
||||
pmodules.make_all
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
@@ -11,5 +11,5 @@ function em.configure() {
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.make_all
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
:
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
pmodules.build() {
|
||||
:
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
pmodules.install() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
rsync --exclude=".info" --delete --verbose --archive . "${PREFIX}"
|
||||
}
|
||||
|
||||
em.add_to_family 'Programming'
|
||||
em.make_all
|
||||
pmodules.add_to_group 'Programming'
|
||||
pmodules.make_all
|
||||
|
||||
Reference in New Issue
Block a user