Readline is a library to edit command lines as they are typed in, this is the GPLv3 newer version then the one in base, okay and tweaks aja@

This commit is contained in:
laurent 2010-07-23 14:51:11 +00:00
parent 92e27d20ff
commit 5a1f7b5841
8 changed files with 199 additions and 0 deletions

28
devel/readline/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/07/23 14:51:11 laurent Exp $
COMMENT = library to edit command lines as they are typed in
V = 6.1
DISTNAME = readline-${V}
SHARED_LIBS += ehistory 0.0 # 6.1
SHARED_LIBS += ereadline 0.0 # 6.1
CATEGORIES = devel
HOMEPAGE = http://tiswww.case.edu/php/chet/readline/rltop.html
MAINTAINER = Laurent Fanis <laurent@openbsd.org>
#GPLv3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ftp://ftp.cwru.edu/pub/bash/
CONFIGURE_STYLE = gnu
PATCHFILES = readline-6.1-patches/readline61-001 \
readline-6.1-patches/readline61-002
.include <bsd.port.mk>

15
devel/readline/distinfo Normal file
View File

@ -0,0 +1,15 @@
MD5 (readline-6.1-patches/readline61-001) = xkLy6E2CCISwv5/RdrxsPw==
MD5 (readline-6.1-patches/readline61-002) = GnZ4Gh6nNOgxWIKF237JsQ==
MD5 (readline-6.1.tar.gz) = /C9+cU/nktsc5t3EyftO8w==
RMD160 (readline-6.1-patches/readline61-001) = s8nDUAieL8GcIXsU5gWABP2nxcs=
RMD160 (readline-6.1-patches/readline61-002) = KgSbEh34bDpSNLXKSVPPF7ZcSrM=
RMD160 (readline-6.1.tar.gz) = tQ9Ho5UuNUZVBW2WhLBe5lAn4pE=
SHA1 (readline-6.1-patches/readline61-001) = sL/Xpmk2dLkVmV5t1RO/3O7ZiUY=
SHA1 (readline-6.1-patches/readline61-002) = WvJOfzPYC0pYj3cVPvffjZwEM4A=
SHA1 (readline-6.1.tar.gz) = VIQKDckH5/pZjX/83L0XuuaazoM=
SHA256 (readline-6.1-patches/readline61-001) = mtvHkcC3bU8WFiOtnkpZONdjv0Bn1Z0YAxLWINfJTd4=
SHA256 (readline-6.1-patches/readline61-002) = oZUZzVa/PFXSziJrcLrhqWL/D0DiR40JDdErZiTCPWI=
SHA256 (readline-6.1.tar.gz) = 8Mr2CMBszW1Ws77hhDRY1QnFP5tT3//+B8wR2PA/qWk=
SIZE (readline-6.1-patches/readline61-001) = 1631
SIZE (readline-6.1-patches/readline61-002) = 1177
SIZE (readline-6.1.tar.gz) = 2261725

View File

@ -0,0 +1,48 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2010/07/23 14:51:11 laurent Exp $
--- Makefile.in.orig Sun Apr 19 18:14:24 2009
+++ Makefile.in Tue Jul 13 13:34:53 2010
@@ -97,8 +97,8 @@ GCC_LINT_CFLAGS = $(XCCFLAGS) $(GCC_LINT_FLAGS) @CFLAG
$(CC) -c $(CCFLAGS) $<
# The name of the main library target.
-LIBRARY_NAME = libreadline.a
-STATIC_LIBS = libreadline.a libhistory.a
+LIBRARY_NAME = libereadline.a
+STATIC_LIBS = libereadline.a libehistory.a
# The C code source files for this library.
CSOURCES = $(srcdir)/readline.c $(srcdir)/funmap.c $(srcdir)/keymaps.c \
@@ -151,12 +151,12 @@ everything: all examples
static: $(STATIC_LIBS)
-libreadline.a: $(OBJECTS)
+libereadline.a: $(OBJECTS)
$(RM) $@
$(AR) $(ARFLAGS) $@ $(OBJECTS)
-test -n "$(RANLIB)" && $(RANLIB) $@
-libhistory.a: $(HISTOBJ) xmalloc.o
+libehistory.a: $(HISTOBJ) xmalloc.o
$(RM) $@
$(AR) $(ARFLAGS) $@ $(HISTOBJ) xmalloc.o
-test -n "$(RANLIB)" && $(RANLIB) $@
@@ -222,12 +222,12 @@ uninstall-headers:
maybe-uninstall-headers: uninstall-headers
install-static: installdirs $(STATIC_LIBS) install-headers install-doc install-examples
- -$(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
+ -$(MV) $(DESTDIR)$(libdir)/libereadline.a $(DESTDIR)$(libdir)/libreadline.old
+ $(INSTALL_DATA) libereadline.a $(DESTDIR)$(libdir)/libereadline.a
+ -test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libereadline.a
+ -$(MV) $(DESTDIR)$(libdir)/libehistory.a $(DESTDIR)$(libdir)/libehistory.old
+ $(INSTALL_DATA) libehistory.a $(DESTDIR)$(libdir)/libehistory.a
+ -test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libehistory.a
installdirs: $(srcdir)/support/mkinstalldirs
-$(SHELL) $(srcdir)/support/mkinstalldirs $(DESTDIR)$(includedir) \

View File

@ -0,0 +1,45 @@
$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2010/07/23 14:51:11 laurent Exp $
--- doc/Makefile.in.orig Wed Dec 23 16:42:59 2009
+++ doc/Makefile.in Tue Jul 13 10:56:08 2010
@@ -201,30 +201,30 @@ installdirs: $(topdir)/support/mkdirs
install: installdirs
if test -f readline.info; then \
- ${INSTALL_DATA} readline.info $(DESTDIR)$(infodir)/readline.info; \
+ ${INSTALL_DATA} readline.info $(DESTDIR)$(infodir)/ereadline.info; \
else \
- ${INSTALL_DATA} $(srcdir)/readline.info $(DESTDIR)$(infodir)/readline.info; \
+ ${INSTALL_DATA} $(srcdir)/readline.info $(DESTDIR)$(infodir)/ereadline.info; \
fi
if test -f rluserman.info; then \
- ${INSTALL_DATA} rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
+ ${INSTALL_DATA} rluserman.info $(DESTDIR)$(infodir)/erluserman.info; \
else \
- ${INSTALL_DATA} $(srcdir)/rluserman.info $(DESTDIR)$(infodir)/rluserman.info; \
+ ${INSTALL_DATA} $(srcdir)/rluserman.info $(DESTDIR)$(infodir)/erluserman.info; \
fi
if test -f history.info; then \
- ${INSTALL_DATA} history.info $(DESTDIR)$(infodir)/history.info; \
+ ${INSTALL_DATA} history.info $(DESTDIR)$(infodir)/ehistory.info; \
else \
- ${INSTALL_DATA} $(srcdir)/history.info $(DESTDIR)$(infodir)/history.info; \
+ ${INSTALL_DATA} $(srcdir)/history.info $(DESTDIR)$(infodir)/ehistory.info; \
fi
-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
install-info --dir-file=$(DESTDIR)$(infodir)/dir \
- $(DESTDIR)$(infodir)/readline.info ; \
+ $(DESTDIR)$(infodir)/ereadline.info ; \
install-info --dir-file=$(DESTDIR)$(infodir)/dir \
- $(DESTDIR)$(infodir)/history.info ; \
+ $(DESTDIR)$(infodir)/ehistory.info ; \
install-info --dir-file=$(DESTDIR)$(infodir)/dir \
- $(DESTDIR)$(infodir)/rluserman.info ; \
+ $(DESTDIR)$(infodir)/erluserman.info ; \
else true; fi
- -${INSTALL_DATA} $(srcdir)/readline.3 $(DESTDIR)$(man3dir)/readline$(man3ext)
- -${INSTALL_DATA} $(srcdir)/history.3 $(DESTDIR)$(man3dir)/history$(man3ext)
+ -${INSTALL_DATA} $(srcdir)/readline.3 $(DESTDIR)$(man3dir)/ereadline$(man3ext)
+ -${INSTALL_DATA} $(srcdir)/history.3 $(DESTDIR)$(man3dir)/ehistory$(man3ext)
-if test -n "${htmldir}" ; then \
if test -f readline.html; then \
${INSTALL_DATA} readline.html $(DESTDIR)$(htmldir)/readline.html; \

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-shlib_Makefile_in,v 1.1.1.1 2010/07/23 14:51:11 laurent Exp $
--- shlib/Makefile.in.orig Tue Jul 13 11:58:49 2010
+++ shlib/Makefile.in Tue Jul 13 12:00:00 2010
@@ -118,8 +118,8 @@ CCFLAGS = $(DEFS) $(LOCAL_DEFS) $(CPPFLAGS) $(INCLUDES
# The name of the main library target.
-SHARED_READLINE = $(SHLIB_LIBPREF)readline$(SHLIB_DOT)$(SHLIB_LIBVERSION)
-SHARED_HISTORY = $(SHLIB_LIBPREF)history$(SHLIB_DOT)$(SHLIB_LIBVERSION)
+SHARED_READLINE = $(SHLIB_LIBPREF)ereadline$(SHLIB_DOT)$(SHLIB_LIBVERSION)
+SHARED_HISTORY = $(SHLIB_LIBPREF)ehistory$(SHLIB_DOT)$(SHLIB_LIBVERSION)
SHARED_LIBS = $(SHARED_READLINE) $(SHARED_HISTORY)
# The C code source files for this library.

16
devel/readline/pkg/DESCR Normal file
View File

@ -0,0 +1,16 @@
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.
The history facilites are also placed into a separate library, the History
library, as part of the build process.
The History library may be used without Readline in applications which desire
its capabilities.
To avoid any confusion with the base readline/history library make sure you
link to ereadline and ehistory.
In the headers you can check for RL_READLINE_VERSION, RL_VERSION_MAJOR and
RL_VERSION_MINOR to see which header you have picked up.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/07/23 14:51:11 laurent Exp $
@lib lib/libehistory.so.${LIBehistory_VERSION}
@lib lib/libereadline.so.${LIBereadline_VERSION}

30
devel/readline/pkg/PLIST Normal file
View File

@ -0,0 +1,30 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/07/23 14:51:11 laurent Exp $
%%SHARED%%
include/readline/
include/readline/chardefs.h
include/readline/history.h
include/readline/keymaps.h
include/readline/readline.h
include/readline/rlconf.h
include/readline/rlstdc.h
include/readline/rltypedefs.h
include/readline/tilde.h
@info info/ereadline.info
@info info/erluserman.info
@info info/history-6.1.info
lib/libehistory.a
lib/libereadline.a
@man man/man3/ehistory.3
@man man/man3/ereadline.3
share/readline/
share/readline/excallback.c
share/readline/fileman.c
share/readline/histexamp.c
share/readline/manexamp.c
share/readline/rl-fgets.c
share/readline/rl.c
share/readline/rlcat.c
share/readline/rlevent.c
share/readline/rlptytest.c
share/readline/rltest.c
share/readline/rlversion.c