pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/shells/bash3 Initial import of bash3 -- latest version...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eef2cc98ce84
branches:  trunk
changeset: 555097:eef2cc98ce84
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Feb 24 15:47:43 2009 +0000

description:
Initial import of bash3 -- latest version of bash-3 branch.

Since two people already asked for it, here's the package, but
maintainer is set to pkgsrc-users.

Bash is an sh-compatible shell that incorporates useful features from
the Korn shell (ksh) and C shell (csh). It is intended to conform to
the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.

It offers functional improvements over sh for both programming and
interactive use; these include command line editing, unlimited size
command history, job control, shell functions and aliases, indexed
arrays of unlimited size, and integer arithmetic in any base from two
to sixty-four. In addition, most sh scripts can be run by Bash without
modification.

This package contains the outdated version 3 of bash.

diffstat:

 shells/bash3/DESCR            |  12 ++++++
 shells/bash3/Makefile         |  83 +++++++++++++++++++++++++++++++++++++++++++
 shells/bash3/PLIST            |   8 ++++
 shells/bash3/distinfo         |   8 ++++
 shells/bash3/patches/patch-af |  54 +++++++++++++++++++++++++++
 shells/bash3/patches/patch-ag |  15 +++++++
 shells/bash3/patches/patch-ah |   8 ++++
 7 files changed, 188 insertions(+), 0 deletions(-)

diffs (216 lines):

diff -r 5d7e97aa7149 -r eef2cc98ce84 shells/bash3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash3/DESCR        Tue Feb 24 15:47:43 2009 +0000
@@ -0,0 +1,12 @@
+Bash is an sh-compatible shell that incorporates useful features from
+the Korn shell (ksh) and C shell (csh). It is intended to conform to
+the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.
+
+It offers functional improvements over sh for both programming and
+interactive use; these include command line editing, unlimited size
+command history, job control, shell functions and aliases, indexed
+arrays of unlimited size, and integer arithmetic in any base from two
+to sixty-four. In addition, most sh scripts can be run by Bash without
+modification.
+
+This package contains the outdated version 3 of bash.
diff -r 5d7e97aa7149 -r eef2cc98ce84 shells/bash3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash3/Makefile     Tue Feb 24 15:47:43 2009 +0000
@@ -0,0 +1,83 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/24 15:47:43 wiz Exp $
+
+DISTNAME=      bash-3.2.48
+CATEGORIES=    shells
+MASTER_SITES=  ${MASTER_SITE_GNU:=bash/} \
+               ftp://ftp.cwru.edu/pub/bash/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.gnu.org/software/bash/bash.html
+COMMENT=       The GNU Bourne Again Shell (version 3)
+
+CONFLICTS=     static-bash-[0-9]*
+
+PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_TOOLS+=            makeinfo yacc
+USE_PKGLOCALEDIR=      yes
+TEXINFO_REQD=          4.1
+GNU_CONFIGURE=         yes
+MAKE_ENV+=             INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
+CONFIGURE_ARGS=                LOCAL_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS:M*:Q}
+CPPFLAGS+=             -DDEFAULT_PATH_VALUE="\"/usr/bin:/bin:${LOCALBASE}/bin:/usr/local/bin\""
+MAKE_JOBS_SAFE=                no
+TEST_TARGET=           test
+
+INFO_FILES=            YES # PLIST
+PKG_SHELL=             bin/bash
+INSTALLATION_DIRS=     ${PKGMANDIR}/man1
+
+# All features enabled by default.
+CONFIGURE_ARGS+=       --enable-readline
+CONFIGURE_ARGS+=       --enable-progcomp
+CONFIGURE_ARGS+=       --enable-process-substitution
+CONFIGURE_ARGS+=       --enable-job-control
+CONFIGURE_ARGS+=       --enable-history
+CONFIGURE_ARGS+=       --enable-help-builtin
+CONFIGURE_ARGS+=       --enable-extended-glob
+CONFIGURE_ARGS+=       --enable-dparen-arithmetic
+CONFIGURE_ARGS+=       --enable-directory-stack
+CONFIGURE_ARGS+=       --enable-debugger
+CONFIGURE_ARGS+=       --enable-cond-regexp
+CONFIGURE_ARGS+=       --enable-alias
+CONFIGURE_ARGS+=       --enable-brace-expansion
+CONFIGURE_ARGS+=       --enable-array-variables
+
+.include "../../mk/bsd.prefs.mk"
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.bash
+PKG_SUPPORTED_OPTIONS= static
+
+.include "../../mk/bsd.options.mk"
+
+##
+## Static link
+##
+.if !empty(PKG_OPTIONS:Mstatic)
+CONFIGURE_ARGS+=       --enable-static-link
+BUILDLINK_DEPMETHOD.gettext=   build
+BUILDLINK_DEPMETHOD.readline=  build
+.endif
+
+# the code has problems with older versions of yacc
+.if !empty(MACHINE_PLATFORM:MIRIX-5*)
+USE_TOOLS+=    bison
+.endif
+
+# Use "readline" package on Darwin to avoid link erros.
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+=               --with-installed-readline
+
+USE_GNU_READLINE=              yes
+BUILDLINK_API_DEPENDS.readline+=       readline>=4.3
+
+.include "../../devel/readline/buildlink3.mk"
+.endif
+
+post-install:
+       ${INSTALL_MAN} ${WRKSRC}/doc/bash.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKSRC}/doc/bashbug.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5d7e97aa7149 -r eef2cc98ce84 shells/bash3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash3/PLIST        Tue Feb 24 15:47:43 2009 +0000
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/24 15:47:43 wiz Exp $
+bin/bash
+bin/bashbug
+info/bash.info
+man/man1/bash.1
+man/man1/bashbug.1
+share/locale/en@boldquot/LC_MESSAGES/bash.mo
+share/locale/en@quot/LC_MESSAGES/bash.mo
diff -r 5d7e97aa7149 -r eef2cc98ce84 shells/bash3/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash3/distinfo     Tue Feb 24 15:47:43 2009 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/02/24 15:47:43 wiz Exp $
+
+SHA1 (bash-3.2.48.tar.gz) = efaff12f5d58d81999830891b030842858a1e7e8
+RMD160 (bash-3.2.48.tar.gz) = 41b7091859e64b049d131ed3e84909916a2e4a2f
+Size (bash-3.2.48.tar.gz) = 2541712 bytes
+SHA1 (patch-af) = 34833c0628a60b5200a9559581c617d878eb62a8
+SHA1 (patch-ag) = 4da0a43f6b890482affff46b18eef4be67770e48
+SHA1 (patch-ah) = 6f88b33d9b56fabd319fa23cd1ff41594a01045b
diff -r 5d7e97aa7149 -r eef2cc98ce84 shells/bash3/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash3/patches/patch-af     Tue Feb 24 15:47:43 2009 +0000
@@ -0,0 +1,54 @@
+$NetBSD: patch-af,v 1.1.1.1 2009/02/24 15:47:43 wiz Exp $
+
+--- builtins/printf.def.orig   2007-09-18 15:24:09.000000000 +0000
++++ builtins/printf.def
+@@ -74,6 +74,11 @@ $END
+ #  undef PRIdMAX
+ #endif
+ 
++#if defined (_AIX) && !defined (_AIX51)
++   /* AIX defines do not work.  Undefine them.  */
++#  undef PRIdMAX
++#  undef PRIuMAX
++#endif
+ #if !defined (PRIdMAX)
+ #  if HAVE_LONG_LONG
+ #    define PRIdMAX   "lld"
+@@ -81,6 +86,13 @@ $END
+ #    define PRIdMAX   "ld"
+ #  endif
+ #endif
++#if !defined (PRIuMAX) && defined (_AIX)
++#  if HAVE_LONG_LONG
++#    define PRIuMAX "llu"
++#  else
++#    define PRIuMAX "lu"
++#  endif
++#endif
+ 
+ #if !defined (errno)
+ extern int errno;
+@@ -466,7 +478,11 @@ printf_builtin (list)
+               p = pp = getintmax ();
+               if (p != pp)
+                 {
++#if defined (_AIX) && !defined (_AIX51)
++                  f = mklong (start, PRIdMAX, sizeof (intmax_t) - 2);
++#else
+                   f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
++#endif
+                   PF (f, pp);
+                 }
+               else
+@@ -493,7 +509,11 @@ printf_builtin (list)
+               p = pp = getuintmax ();
+               if (p != pp)
+                 {
++#if defined (_AIX) && !defined (_AIX51)
++                  f = mklong (start, PRIuMAX, sizeof (uintmax_t) - 2);
++#else
+                   f = mklong (start, PRIdMAX, sizeof (PRIdMAX) - 2);
++#endif
+                   PF (f, pp);
+                 }
+               else
diff -r 5d7e97aa7149 -r eef2cc98ce84 shells/bash3/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash3/patches/patch-ag     Tue Feb 24 15:47:43 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ag,v 1.1.1.1 2009/02/24 15:47:43 wiz Exp $
+
+--- builtins/psize.c.orig      2005-07-07 14:21:32.000000000 +0200
++++ builtins/psize.c
+@@ -41,10 +41,6 @@
+ #include "../general.h"
+ #include "../sig.h"
+ 
+-#ifndef errno
+-extern int errno;
+-#endif
+-
+ int nw;
+ 
+ sighandler
diff -r 5d7e97aa7149 -r eef2cc98ce84 shells/bash3/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/bash3/patches/patch-ah     Tue Feb 24 15:47:43 2009 +0000
@@ -0,0 +1,8 @@
+$NetBSD: patch-ah,v 1.1.1.1 2009/02/24 15:47:43 wiz Exp $
+
+--- po/LINGUAS.orig    2006-01-10 22:51:33.000000000 +0000
++++ po/LINGUAS
+@@ -1,2 +1,2 @@
+ # Set of available languages.
+-en@quot en@boldquot ru
++en@quot en@boldquot



Home | Main Index | Thread Index | Old Index