Merge branch '16-new-build-block-for-combined-tcl-tk' into 'master'
Resolve "new build-block for combined Tcl/Tk" Closes #16 See merge request Pmodules/buildblocks!16
This commit is contained in:
4
Programming/TclTk/build
Executable file
4
Programming/TclTk/build
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
./build_Tcl "$@" ||exit $?
|
||||
./build_Tk -f "$@"
|
||||
30
Programming/TclTk/build_Tcl
Executable file
30
Programming/TclTk/build_Tcl
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::set_download_url "ftp://ftp.tcl.tk/pub/tcl/tcl8_6/tcl${V_PKG}-src.tar.gz"
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
pbuild::install_docfiles 'license.terms' 'README'
|
||||
|
||||
#pbuild::pre_prep() {
|
||||
# pbuild::set_unpack_dir "tcl${V_PKG}-src.tar.gz" "${SRC_DIR}/Tcl"
|
||||
# pbuild::set_unpack_dir "tk${V_PKG}-src.tar.gz" "${SRC_DIR}/Tk"
|
||||
#}
|
||||
|
||||
pbuild::pre_configure_Linux() {
|
||||
srcdir="${SRC_DIR}/unix"
|
||||
}
|
||||
|
||||
pbuild::pre_configure_Darwin() {
|
||||
srcdir="${SRC_DIR}/macosx"
|
||||
}
|
||||
|
||||
pbuild::configure() {
|
||||
"${srcdir}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-shared=no \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pbuild::post_install() {
|
||||
{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
||||
}
|
||||
38
Programming/TclTk/build_Tk
Executable file
38
Programming/TclTk/build_Tk
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::set_download_url "ftp://ftp.tcl.tk/pub/tcl/tk8_6/tk${V_PKG}-src.tar.gz"
|
||||
|
||||
pbuild::add_to_group 'Programming'
|
||||
pbuild::install_docfiles 'license.terms' 'README'
|
||||
|
||||
|
||||
pbuild::pre_configure_Linux() {
|
||||
srcdir="${SRC_DIR}/unix"
|
||||
}
|
||||
|
||||
pbuild::pre_configure_Darwin() {
|
||||
srcdir="${SRC_DIR}/macosx"
|
||||
}
|
||||
|
||||
pbuild::configure() {
|
||||
export PATH="${PREFIX}/bin:$PATH"
|
||||
export C_INCLUDE_PATH="${PREFIX}/include:${C_INCLUDE_PATH}"
|
||||
export LIBRARY_PATH="${PREFIX}/lib:${LIBRARY_PATH}"
|
||||
|
||||
"${srcdir}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-shared=no \
|
||||
--with-tcl="${PREFIX}/lib" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
pbuild::compile() {
|
||||
export PATH="${PREFIX}/bin:$PATH"
|
||||
export C_INCLUDE_PATH="${PREFIX}/include:${C_INCLUDE_PATH}"
|
||||
export LIBRARY_PATH="${PREFIX}/lib:${LIBRARY_PATH}"
|
||||
make -j3
|
||||
}
|
||||
|
||||
pbuild::post_install() {
|
||||
{ cd "${PREFIX}"/bin && rm -f wish && ln -fs wish${V%.*} wish; };
|
||||
}
|
||||
1
Programming/TclTk/files/variants.rhel6
Normal file
1
Programming/TclTk/files/variants.rhel6
Normal file
@@ -0,0 +1 @@
|
||||
TclTk/8.6.9 stable
|
||||
16
Programming/TclTk/modulefile
Normal file
16
Programming/TclTk/modulefile
Normal file
@@ -0,0 +1,16 @@
|
||||
#%Module1.0
|
||||
|
||||
module-whatis "a very powerful, easy to learn programming language"
|
||||
module-url "http://www.tcl.tk"
|
||||
module-license "BSD-lik"
|
||||
module-maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
|
||||
module-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.
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user