Skip to content
Permalink
Browse files

base: bundle TclX extension to support signal handling

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@118297 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
neverpanic committed Mar 29, 2014
1 parent 42d8be7 commit 1c1b6e0d77994c11e0e787645a4c2bcefeb2c0de
Showing with 415 additions and 22 deletions.
  1. +17 −4 aclocal.m4
  2. +367 −7 configure
  3. +9 −4 configure.ac
  4. +22 −7 vendor/Makefile.in
  5. BIN vendor/tclx8.4.1.tar.bz2
@@ -96,9 +96,10 @@ AC_DEFUN([_MP_EXTRACT_KEY], [dnl
$1=$(AS_ECHO([$2]) | sed -E 's/^--?([[^=]]+)=.*$/\1/')dnl
])

dnl Configure a project contained in a .tar.gz (or .tgz) tarball, extracting it
dnl previously, if necessary. Different from AC_CONFIG_SUBDIRS (on which this
dnl macro is based), you can pass parameters to the sub-configure script.
dnl Configure a project contained in a .tar.gz, .tgz or .tar.bz2 tarball,
dnl extracting it previously, if necessary. Different from AC_CONFIG_SUBDIRS
dnl (on which this macro is based), you can pass parameters to the
dnl sub-configure script.
dnl
dnl Parameters:
dnl - The relative path to the tarball
@@ -116,7 +117,19 @@ AC_DEFUN([MP_CONFIG_TARBALL], [
mp_tarball_vendordir="$(dirname "$mp_tarball")"
AS_MKDIR_P(["$mp_tarball_vendordir"])
AC_MSG_NOTICE([=== extracting $mp_tarball])
(cd "$mp_tarball_vendordir"; gzip -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
mp_tarball_extract_cmd=
case "$mp_tarball" in
*.tar.gz | *.tgz)
mp_tarball_extract_cmd="gzip"
;;
*.tar.bz2 | *.tbz2)
mp_tarball_extract_cmd="bzip2"
;;
*)
AC_MSG_ERROR([Don't know how to extract tarball $mp_tarball])
;;
esac
(cd "$mp_tarball_vendordir"; "$mp_tarball_extract_cmd" -d < "$ac_abs_confdir/$mp_tarball" | tar xf - || AC_MSG_ERROR([failed to extract $mp_tarball]))
fi
if ! test -d "$ac_dir"; then
AC_MSG_ERROR([tarball $mp_tarball did not extract to $ac_dir])

0 comments on commit 1c1b6e0

Please sign in to comment.
You can’t perform that action at this time.