the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: readline-shlibs
Version: 4.3
Revision: 1030
Maintainer: Fink Core Group
GCC: 4.0
#
BuildDepends: fink (>= 0.24.12), libncurses5 (>= 5.4-20041023-1006)
Depends: ncurses (>= 5.4-20041023-1006), libncurses5-shlibs (>= 5.4-20041023-1006)
Conflicts: readline
Replaces: readline
Source: mirror:gnu:readline/readline-%v.tar.gz
Source-MD5: f86f7cb717ab321fe15f1bbcb058c11e
PatchFile: %n.patch
PatchFile-MD5: 2ffd0be700e128851e35536adb5677f1
PatchScript: sed 's|@FINK@|%p|g' < %{PatchFile} | patch -p1
SetCFLAGS: -DNEED_EXTERN_PC=1
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d mandir=%p/share/man infodir=%p/share/info
pushd %i
rm -rf include
ln -s libhistory.%v.dylib lib/libhistory.4.2.dylib
ln -s libreadline.%v.dylib lib/libreadline.4.2.dylib
rm -f lib/libhistory.dylib
rm -f lib/libreadline.dylib
rm -f lib/*.a
rm -rf share/info
rm -rf share/man
popd
<<
DocFiles: README COPYING CHANGES USAGE
Shlibs: <<
%p/lib/libhistory.4.dylib 4.2.0 %n (>= 4.3-15)
%p/lib/libreadline.4.dylib 4.2.0 %n (>= 4.3-15)
<<
#
Description: Comfortable terminal input library
DescDetail: <<
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are typed
in. Both Emacs and vi editing modes are available. The Readline
library includes additional functions to maintain a list of
previously-entered command lines, to recall and perhaps reedit those
lines, and perform csh-like history expansion on previous commands.
<<
DescPackaging: <<
Previous versions by Sylvain Cuaz.
1) previous revisions by Christoph Pfisterer
2) specify mandir & infodir
3) the symbolic links from libreadline.4.2.dylib and libhistory.4.2.dylib are
needed for backward compatibility. Future versions will also need links
from libreadline.4.3.dylib and libhistory.4.3.dylib (due to the way
things were done in readline-4.3-1 and readline-4.3-2).
<<
DescPort: <<
1) don't bother trying to install-info (build runtime foc index),
since we're not at the runtime location and fink deletes the results
when creating the .deb
2) set the compatibility-version to 4.2.0 to agree with previous versions of
the readline package
3) (dmrrsn) SHLIB_XLDFLAGS and SHLIB_LIBS fields now match what is used in
readline5 (only works for 10.3 and later)
<<
License: GPL
Homepage: http://cnswww.cns.cwru.edu/~chet/readline/rltop.html
diff -ruN readline-4.3/Makefile.in readline-4.3-patched/Makefile.in
--- readline-4.3/Makefile.in 2002-01-24 10:15:24.000000000 -0500
+++ readline-4.3-patched/Makefile.in 2010-05-03 15:42:54.000000000 -0400
@@ -208,10 +208,8 @@
install: $(INSTALL_TARGETS)
install-static: installdirs $(STATIC_LIBS) install-headers
- -$(MV) $(DESTDIR)$(libdir)/libreadline.a $(DESTDIR)$(libdir)/libreadline.old
$(INSTALL_DATA) libreadline.a $(DESTDIR)$(libdir)/libreadline.a
-test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libreadline.a
- -$(MV) $(DESTDIR)$(libdir)/libhistory.a $(DESTDIR)$(libdir)/libhistory.old
$(INSTALL_DATA) libhistory.a $(DESTDIR)$(libdir)/libhistory.a
-test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libhistory.a
-( if test -d doc ; then \
diff -ruN readline-4.3/doc/Makefile.in readline-4.3-patched/doc/Makefile.in
--- readline-4.3/doc/Makefile.in Mon May 20 12:54:51 2002
+++ readline-4.3-patched/doc/Makefile.in Thu Dec 9 23:34:37 2004
@@ -193,14 +193,6 @@
else \
${INSTALL_DATA} $(srcdir)/history.info $(DESTDIR)$(infodir)/history.info; \
fi
- -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
- install-info --dir-file=$(DESTDIR)$(infodir)/dir \
- $(DESTDIR)$(infodir)/readline.info ; \
- install-info --dir-file=$(DESTDIR)$(infodir)/dir \
- $(DESTDIR)$(infodir)/history.info ; \
- install-info --dir-file=$(DESTDIR)$(infodir)/dir \
- $(DESTDIR)$(infodir)/rluserman.info ; \
- else true; fi
-${INSTALL_DATA} $(srcdir)/readline.3 $(DESTDIR)$(man3dir)/readline$(man3ext)
-${INSTALL_DATA} $(srcdir)/history.3 $(DESTDIR)$(man3dir)/history$(man3ext)
-if test -n "${htmldir}" ; then \
diff -ruN readline-4.3/support/shobj-conf readline-4.3-patched/support/shobj-conf
--- readline-4.3/support/shobj-conf Wed Apr 17 13:27:46 2002
+++ readline-4.3-patched/support/shobj-conf Thu Dec 9 23:36:22 2004
@@ -140,15 +140,15 @@
SHOBJ_CFLAGS='-dynamic -fno-common'
- SHOBJ_LD=/usr/bin/libtool
+ SHOBJ_LD='${CC}'
SHLIB_LIBVERSION='$(SHLIB_MAJOR)$(SHLIB_MINOR).$(SHLIB_LIBSUFF)'
SHLIB_LIBSUFF='dylib'
- SHOBJ_LDFLAGS='-dynamic'
- SHLIB_XLDFLAGS='-arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
+ SHOBJ_LDFLAGS=''
+ SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/`echo $@ | sed "s:\\(.*\\.[0-9]\\)\\.[0-9]:\\1:"` -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version 4.2.0 -v'
- SHLIB_LIBS='-lSystem'
+ SHLIB_LIBS='-L@FINK@/lib -lncurses'
;;
openbsd*)