mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-08-07 03:42:27 +02:00
all required tools moved to 'Tools' directory
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::add_to_group 'Tools'
|
||||
pbuild::set_download_url "ftp://ftp.tcl.tk/pub/tcl/tcl8_6/tcl$V-src.tar.gz"
|
||||
pbuild::set_docfiles 'license.terms' 'README'
|
||||
|
||||
pbuild::configure() {
|
||||
case ${OS} in
|
||||
Linux )
|
||||
srcdir="${SRC_DIR}/unix"
|
||||
;;
|
||||
Darwin )
|
||||
srcdir="${SRC_DIR}/macosx"
|
||||
;;
|
||||
esac
|
||||
"${srcdir}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--bindir="${PREFIX}/sbin" \
|
||||
--enable-shared=no \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pbuild::post_install() {
|
||||
{ cd "${PREFIX}"/sbin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
||||
}
|
||||
|
||||
pbuild::make_all
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::add_to_group 'Tools'
|
||||
pbuild::set_download_url "https://ftp.gnu.org/gnu/$P/$P-$V.tar.gz"
|
||||
pbuild::add_configure_args "--bindir=${PREFIX}/sbin"
|
||||
|
||||
pbuild::make_all
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::set_download_url "http://ftp.gnu.org/gnu/coreutils/$P-$V.tar.xz"
|
||||
pbuild::add_configure_args "--bindir=${PREFIX}/sbin"
|
||||
|
||||
pbuild::make_all
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env pbuild
|
||||
|
||||
pmodules.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pmodules.add_to_group 'Tools'
|
||||
pmodules.make_all
|
||||
@@ -0,0 +1,15 @@
|
||||
diff -u getopt-1.1.6.orig//Makefile getopt-1.1.6/Makefile
|
||||
--- getopt-1.1.6.orig//Makefile 2014-11-24 04:33:39.000000000 -0800
|
||||
+++ getopt-1.1.6/Makefile 2016-10-27 08:27:52.000000000 -0700
|
||||
@@ -61,7 +61,7 @@
|
||||
-$(RM) $(objects) $(binaries)
|
||||
|
||||
getopt: $(objects)
|
||||
- $(CC) $(LDFLAGS) -o $@ $(objects)
|
||||
+ $(CC) -o $@ $(objects) $(LDFLAGS)
|
||||
|
||||
install: getopt install_po
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
|
||||
Common subdirectories: getopt-1.1.6.orig//gnu and getopt-1.1.6/gnu
|
||||
Common subdirectories: getopt-1.1.6.orig//po and getopt-1.1.6/po
|
||||
Common subdirectories: getopt-1.1.6.orig//tests and getopt-1.1.6/tests
|
||||
Executable
+46
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::add_to_group 'Tools'
|
||||
pbuild::set_download_url "http://frodo.looijaard.name/system/files/software/getopt/getopt-1.1.6.tar.gz"
|
||||
pbuild::compile_in_sourcetree
|
||||
|
||||
pbuild::add_patch_Linux "Makefile.patch"
|
||||
|
||||
pbuild::configure() {
|
||||
:
|
||||
}
|
||||
|
||||
pbuild::compile() {
|
||||
declare -x C_INCLUDE_PATH="${PREFIX}/include"
|
||||
declare -x LIBRARY_PATH="${PREFIX}/lib"
|
||||
case ${OS} in
|
||||
Linux )
|
||||
declare -x LDFLAGS="-lintl -L${PREFIX}/lib"
|
||||
;;
|
||||
Darwin )
|
||||
declare -x LDFLAGS="-lintl -liconv -framework CoreFoundation"
|
||||
;;
|
||||
esac
|
||||
|
||||
make -e all
|
||||
}
|
||||
|
||||
pbuild::install() {
|
||||
declare -x DESTDIR="${PREFIX}"
|
||||
declare -x prefix=''
|
||||
make -e install
|
||||
mkdir -p "${PREFIX}/sbin"
|
||||
mv "${PREFIX}/bin/getopt" "${PREFIX}/sbin"
|
||||
}
|
||||
|
||||
pbuild::cleanup_build() {
|
||||
make -e realclean
|
||||
}
|
||||
|
||||
pbuild::make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::add_to_group 'Tools'
|
||||
pbuild::set_download_url "https://ftp.gnu.org/pub/gnu/$P/$P-$V.tar.gz"
|
||||
|
||||
pbuild::add_configure_args "--prefix=${PREFIX}"
|
||||
pbuild::add_configure_args "--bindir=${PREFIX}/sbin"
|
||||
pbuild::add_configure_args "--disable-java"
|
||||
pbuild::add_configure_args "--disable-threads"
|
||||
pbuild::add_configure_args "--disable-shared"
|
||||
pbuild::add_configure_args "--enable-relocatable"
|
||||
pbuild::add_configure_args "--disable-openmp"
|
||||
pbuild::add_configure_args "--disable-acl"
|
||||
pbuild::add_configure_args "--disable-curses"
|
||||
pbuild::add_configure_args "--with-included-gettext"
|
||||
pbuild::add_configure_args "--without-libiconv-prefix"
|
||||
pbuild::add_configure_args "--without-libintl-prefix"
|
||||
pbuild::add_configure_args "--with-included-libxml"
|
||||
pbuild::add_configure_args "--with-pic=yes"
|
||||
|
||||
pbuild::make_all
|
||||
Executable
+58
@@ -0,0 +1,58 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
pbuild::add_to_group 'Tools'
|
||||
pbuild::set_download_url "https://amas.web.psi.ch/Downloads/$P/$P-$V.tar.bz2"
|
||||
|
||||
TCL_DIR="${PMODULES_ROOT}/Tools/Pmodules/${PMODULES_VERSION}"
|
||||
|
||||
PATH="${TCL_DIR}/bin:${PATH}"
|
||||
|
||||
pbuild::configure() {
|
||||
case ${OS} in
|
||||
Linux )
|
||||
declare -x LIBS="-lz -lpthread"
|
||||
;;
|
||||
Darwin )
|
||||
declare -x LIBS="-lz -framework CoreFoundation"
|
||||
;;
|
||||
esac
|
||||
CPPFLAGS="-DUSE_INTERP_ERRORLINE" "${SRC_DIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--exec-prefix="${PREFIX}" \
|
||||
--with-module-path="${PMODULES_ROOT}/Tools/${PMODULES_MODULEFILES_DIR}" \
|
||||
--with-tcl="${TCL_DIR}/lib" \
|
||||
--without-x \
|
||||
--disable-versioning \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pbuild::post_install() {
|
||||
rm -v ${PREFIX}/Modules/bin/add.modules
|
||||
rm -v ${PREFIX}/Modules/bin/mkroot
|
||||
rm -rfv ${PREFIX}/Modules/modulefiles
|
||||
mv -v ${PREFIX}/Modules/share/man/man1/module.1 ${PREFIX}/share/man/man1
|
||||
mv -v ${PREFIX}/Modules/share/man/man4/modulefile.4 ${PREFIX}/share/man/man4
|
||||
rmdir ${PREFIX}/Modules/bin
|
||||
rmdir ${PREFIX}/Modules/share/man/man1
|
||||
rmdir ${PREFIX}/Modules/share/man/man4
|
||||
rmdir ${PREFIX}/Modules/share/man
|
||||
rmdir ${PREFIX}/Modules/share
|
||||
rmdir ${PREFIX}/Modules
|
||||
cp -v "${BUILD_DIR}/modulecmd" "${PREFIX}/libexec/modulecmd.bin" || exit 1
|
||||
}
|
||||
|
||||
# fake module command
|
||||
module() {
|
||||
:
|
||||
}
|
||||
|
||||
pbuild::make_all
|
||||
|
||||
# Local Variables:
|
||||
# mode: sh
|
||||
# sh-basic-offset: 8
|
||||
# tab-width: 8
|
||||
# End:
|
||||
Reference in New Issue
Block a user