the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: fish
Version: 1.23.1
Revision: 3
Description: Friendly interactive shell
Source: http://www.fishshell.org/files/%v/%n-%v.tar.bz2
Source-MD5: ead6b7c6cdb21f35a3d4aa1d5fa596f1
PatchFile: %n.patch
PatchFile-MD5: 6bb3647159792f9bed425dbefa6284db
SetLDFLAGS: -L%p/lib -liconv
BuildDepends: <<
autoconf2.6,
automake1.11,
fink (>= 0.24.12),
gettext-bin,
libgettext8-dev,
libiconv-dev,
libncurses5
<<
Depends: <<
libgettext8-shlibs,
libiconv,
libncurses5-shlibs
<<
BuildConflicts: coreutils-default
Conflicts: coreutils-default
ConfigureParams: --without-xsel docdir='%p/share/doc/%n'
CompileScript: <<
autoreconf -fiv
%{default_script}
<<
InstallScript: make install DESTDIR=%d
DocFiles: ChangeLog README
License: GPL
Maintainer: Daniel Johnson
Homepage: http://www.fishshell.org/
InfoTest: TestScript: make test || exit 2
DescUsage: <<
Please see the included help for how to use fish. Typing 'help'
at the command prompt will launch a browser window with the help file.
By default, the help command will try to launch an X11 browser like
firefox if present. If you want it to use your default Mac OS X browser,
set the environment variable BROWSER to 'open'. From bash use
export BROWSER=open
or from within fish use
set BROWSER 'open'
or you could use a text-based browser like lynx.
Also see http://lwn.net/Articles/136232/ for an introduction to fish.
If you wish to use fish as your login shell, add %p/bin/fish to /etc/shells.
%p/bin is automatically added to the end of the PATH.
<<
DescPackaging: <<
Fish requires a 'seq' command. OS X doesn't have one. coreutils-default
does. If coreutils-default is installed, fish will use it but if not it
will install its own 'seq' command. This is bad and I don't know how to
get around it other than Depending on coreutils-default which is
unacceptable. Therefore my only choice is to Conflict with
coreutils-default until I can come up with a better idea.
<<
diff -ru fish-1.23.1.orig/configure.ac fish-1.23.1/configure.ac
--- fish-1.23.1.orig/configure.ac 2009-03-08 10:46:47.000000000 -0400
+++ fish-1.23.1/configure.ac 2009-03-08 15:40:25.000000000 -0400
@@ -90,43 +90,6 @@
fi
-#
-# Detect directories which may contain additional headers, libraries
-# and commands. This needs to be done early - before Autoconf starts
-# to mess with CFLAGS and all the other environemnt variables.
-#
-# This mostly helps OS X users, since fink usually installs out of
-# tree and doesn't update CFLAGS.
-#
-
-for i in /usr/pkg /sw /opt /opt/local; do
-
- AC_MSG_CHECKING([for $i/include include directory])
- if test -d $i/include; then
- AC_MSG_RESULT(yes)
- CPPFLAGS="$CPPFLAGS -I$i/include/"
- CFLAGS="$CFLAGS -I$i/include/"
- else
- AC_MSG_RESULT(no)
- fi
-
- AC_MSG_CHECKING([for $i/lib library directory])
- if test -d $i/lib; then
- AC_MSG_RESULT(yes)
- LDFLAGS="$LDFLAGS -L$i/lib/ -R$i/lib/"
- else
- AC_MSG_RESULT(no)
- fi
-
- AC_MSG_CHECKING([for $i/bin command directory])
- if test -d $i/bin; then
- AC_MSG_RESULT(yes)
- optbindirs="$optbindirs $i/bin"
- else
- AC_MSG_RESULT(no)
- fi
-
-done
#
@@ -521,7 +484,6 @@
# Check for libiconv_open if we can't find iconv_open. Silly OS X does
# weird macro magic for the sole purpose of amusing me.
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_SEARCH_LIBS( libiconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )] )
LIBS_FISH=$LIBS
LIBS=$LIBS_COMMON
@@ -547,7 +509,6 @@
if test x$local_gettext != xno; then
AC_SEARCH_LIBS( gettext, intl,,)
fi
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )
LIBS_FISH_PAGER=$LIBS
LIBS=$LIBS_COMMON
@@ -560,7 +521,6 @@
if test x$local_gettext != xno; then
AC_SEARCH_LIBS( gettext, intl,,)
fi
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )
LIBS_FISHD=$LIBS
LIBS=$LIBS_COMMON