Import of pkgsrc-2014Q1
This commit is contained in:
4
devel/editline/DESCR
Normal file
4
devel/editline/DESCR
Normal file
@@ -0,0 +1,4 @@
|
||||
This is an autotool- and libtoolized port of the NetBSD Editline library
|
||||
(libedit). This Berkeley-style licensed command line editor library
|
||||
provides generic line editing, history, and tokenization functions,
|
||||
similar to those found in GNU Readline.
|
||||
24
devel/editline/Makefile
Normal file
24
devel/editline/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
# $NetBSD: Makefile,v 1.3 2013/10/11 14:24:29 wiz Exp $
|
||||
#
|
||||
|
||||
DISTNAME= libedit-20130712-3.1
|
||||
PKGNAME= editline-3.1.20130712
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.thrysoee.dk/editline/
|
||||
|
||||
MAINTAINER= ryoon@NetBSD.org
|
||||
HOMEPAGE= http://www.thrysoee.dk/editline/
|
||||
COMMENT= NetBSD Editline library (libedit) for generic line editing
|
||||
LICENSE= modified-bsd
|
||||
|
||||
USE_LIBTOOL= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LANGUAGES= c c++
|
||||
USE_TOOLS+= automake autoreconf
|
||||
|
||||
pre-configure:
|
||||
cd ${WRKSRC} && autoreconf -fiv
|
||||
|
||||
.include "../../mk/termcap.buildlink3.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
30
devel/editline/PLIST
Normal file
30
devel/editline/PLIST
Normal file
@@ -0,0 +1,30 @@
|
||||
@comment $NetBSD: PLIST,v 1.2 2013/07/15 15:14:29 ryoon Exp $
|
||||
include/editline/history.h
|
||||
include/editline/readline.h
|
||||
include/histedit.h
|
||||
lib/libedit.la
|
||||
lib/pkgconfig/libedit.pc
|
||||
man/man3/editline.3
|
||||
man/man3/el_deletestr.3
|
||||
man/man3/el_end.3
|
||||
man/man3/el_get.3
|
||||
man/man3/el_getc.3
|
||||
man/man3/el_gets.3
|
||||
man/man3/el_history.3
|
||||
man/man3/el_history_end.3
|
||||
man/man3/el_history_init.3
|
||||
man/man3/el_init.3
|
||||
man/man3/el_insertstr.3
|
||||
man/man3/el_line.3
|
||||
man/man3/el_parse.3
|
||||
man/man3/el_push.3
|
||||
man/man3/el_reset.3
|
||||
man/man3/el_resize.3
|
||||
man/man3/el_set.3
|
||||
man/man3/el_source.3
|
||||
man/man3/el_tok_end.3
|
||||
man/man3/el_tok_init.3
|
||||
man/man3/el_tok_line.3
|
||||
man/man3/el_tok_reset.3
|
||||
man/man3/el_tok_str.3
|
||||
man/man5/editrc.5
|
||||
29
devel/editline/buildlink3.mk
Normal file
29
devel/editline/buildlink3.mk
Normal file
@@ -0,0 +1,29 @@
|
||||
# $NetBSD: buildlink3.mk,v 1.3 2013/08/11 07:42:51 obache Exp $
|
||||
|
||||
BUILDLINK_TREE+= editline
|
||||
|
||||
.if !defined(EDITLINE_BUILDLINK3_MK)
|
||||
EDITLINE_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_API_DEPENDS.editline+= editline>=3.0.20130712nb1
|
||||
BUILDLINK_PKGSRCDIR.editline?= ../../devel/editline
|
||||
|
||||
BUILDLINK_FILES.editline+= include/history.h
|
||||
BUILDLINK_FILES.editline+= include/readline.h
|
||||
|
||||
BUILDLINK_FNAME_TRANSFORM.editline+= -e 's|include/editline/history\.h|include/readline/history.h|g'
|
||||
BUILDLINK_FNAME_TRANSFORM.editline+= -e 's|include/editline/readline\.h|include/readline/readline.h|g'
|
||||
|
||||
CHECK_BUILTIN.editline:= yes
|
||||
.include "../../devel/editline/builtin.mk"
|
||||
CHECK_BUILTIN.editline:= no
|
||||
|
||||
# A built-in editline is always going to use a built-in termcap.
|
||||
.if !empty(USE_BUILTIN.editline:M[yY][eE][sS])
|
||||
USE_BUILTIN.termcap= yes
|
||||
.endif
|
||||
|
||||
.include "../../mk/termcap.buildlink3.mk"
|
||||
.endif # EDITLINE_BUILDLINK3_MK
|
||||
|
||||
BUILDLINK_TREE+= -editline
|
||||
82
devel/editline/builtin.mk
Normal file
82
devel/editline/builtin.mk
Normal file
@@ -0,0 +1,82 @@
|
||||
# $NetBSD: builtin.mk,v 1.4 2013/11/23 11:29:35 obache Exp $
|
||||
|
||||
BUILTIN_PKG:= editline
|
||||
|
||||
BUILTIN_FIND_LIBS:= edit
|
||||
BUILTIN_FIND_HEADERS_VAR:= H_EDITLINE
|
||||
BUILTIN_FIND_HEADERS.H_EDITLINE=editline/readline.h \
|
||||
readline/readline.h
|
||||
|
||||
.include "../../mk/buildlink3/bsd.builtin.mk"
|
||||
|
||||
###
|
||||
### Determine if there is a built-in implementation of the package and
|
||||
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
|
||||
###
|
||||
.if !defined(IS_BUILTIN.editline)
|
||||
IS_BUILTIN.editline= no
|
||||
. if empty(H_EDITLINE:M__nonexistent__) && \
|
||||
!empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS])
|
||||
IS_BUILTIN.editline= yes
|
||||
. endif
|
||||
.endif
|
||||
MAKEVARS+= IS_BUILTIN.editline
|
||||
|
||||
###
|
||||
### Determine whether we should use the built-in implementation if it
|
||||
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
|
||||
###
|
||||
.if !defined(USE_BUILTIN.editline)
|
||||
. if ${PREFER.editline} == "pkgsrc"
|
||||
USE_BUILTIN.editline= no
|
||||
. else
|
||||
USE_BUILTIN.editline= ${IS_BUILTIN.editline}
|
||||
. if defined(BUILTIN_PKG.editline) && \
|
||||
!empty(IS_BUILTIN.editline:M[yY][eE][sS])
|
||||
USE_BUILTIN.editline= yes
|
||||
. endif
|
||||
MAKEVARS+= USE_BUILTIN.editline
|
||||
. endif
|
||||
.endif
|
||||
|
||||
CHECK_BUILTIN.editline?= no
|
||||
.if !empty(CHECK_BUILTIN.editline:M[nN][oO])
|
||||
|
||||
. if !empty(USE_BUILTIN.editline:M[yY][eE][sS])
|
||||
. if !empty(H_EDITLINE:M/usr/include/editline/readline.h)
|
||||
BUILDLINK_TARGETS+= buildlink-readline-readline-h
|
||||
BUILDLINK_TARGETS+= buildlink-readline-history-h
|
||||
. endif
|
||||
|
||||
BUILDLINK_TRANSFORM+= l:history:edit:${BUILTIN_LIBNAME.termcap}
|
||||
BUILDLINK_TRANSFORM+= l:readline:edit:${BUILTIN_LIBNAME.termcap}
|
||||
|
||||
. if !target(buildlink-readline-readline-h)
|
||||
.PHONY: buildlink-readline-readline-h
|
||||
buildlink-readline-readline-h:
|
||||
${RUN} \
|
||||
src=${H_EDITLINE:Q}; \
|
||||
dest=${BUILDLINK_DIR}"/include/readline/readline.h"; \
|
||||
if ${TEST} ! -f "$$dest" -a -f "$$src"; then \
|
||||
fname=`${BASENAME} $$src`; \
|
||||
${ECHO_BUILDLINK_MSG} "Linking $$fname -> readline.h."; \
|
||||
${MKDIR} `${DIRNAME} "$$dest"`; \
|
||||
${LN} -s "$$src" "$$dest"; \
|
||||
fi
|
||||
. endif
|
||||
|
||||
. if !target(buildlink-readline-history-h)
|
||||
.PHONY: buildlink-readline-history-h
|
||||
buildlink-readline-history-h:
|
||||
${RUN} \
|
||||
src=${H_EDITLINE:Q}; \
|
||||
dest=${BUILDLINK_DIR}"/include/readline/history.h"; \
|
||||
if ${TEST} ! -f "$$dest" -a -f "$$src"; then \
|
||||
fname=`${BASENAME} $$src`; \
|
||||
${ECHO_BUILDLINK_MSG} "Linking $$fname -> history.h."; \
|
||||
${MKDIR} `${DIRNAME} "$$dest"`; \
|
||||
${LN} -s "$$src" "$$dest"; \
|
||||
fi
|
||||
. endif
|
||||
. endif
|
||||
.endif # CHECK_BUILTIN.editline
|
||||
8
devel/editline/distinfo
Normal file
8
devel/editline/distinfo
Normal file
@@ -0,0 +1,8 @@
|
||||
$NetBSD: distinfo,v 1.2 2013/07/15 15:14:29 ryoon Exp $
|
||||
|
||||
SHA1 (libedit-20130712-3.1.tar.gz) = 6bb65d88244a89680cec73682093f66c01a8a9b9
|
||||
RMD160 (libedit-20130712-3.1.tar.gz) = 69f55494ebe04f9f01c3a7cde515484a1095337e
|
||||
Size (libedit-20130712-3.1.tar.gz) = 483857 bytes
|
||||
SHA1 (patch-Makefile.am) = 6d70f52c62a9180c74830a895cd0f1e2cc4f8a8f
|
||||
SHA1 (patch-ab) = 29ed6d0aad2a4c76ada124867cb0e3ff88b8030e
|
||||
SHA1 (patch-ac) = 71b27006acc43128ad9756e07eb79e961f6f9c94
|
||||
13
devel/editline/patches/patch-Makefile.am
Normal file
13
devel/editline/patches/patch-Makefile.am
Normal file
@@ -0,0 +1,13 @@
|
||||
$NetBSD: patch-Makefile.am,v 1.1 2013/07/15 15:14:29 ryoon Exp $
|
||||
|
||||
* Create history.h symlink like NetBSD base libedit.
|
||||
|
||||
--- Makefile.am.orig 2011-08-02 08:07:56.000000000 +0000
|
||||
+++ Makefile.am
|
||||
@@ -7,3 +7,6 @@ SUBDIRS = src examples doc
|
||||
EXTRA_DIST = libedit.pc.in
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libedit.pc
|
||||
+
|
||||
+install-data-local:
|
||||
+ cd ${DESTDIR}${PREFIX}/include/editline && ln -s readline.h history.h
|
||||
29
devel/editline/patches/patch-ab
Normal file
29
devel/editline/patches/patch-ab
Normal file
@@ -0,0 +1,29 @@
|
||||
$NetBSD: patch-ab,v 1.1 2013/07/15 01:42:47 ryoon Exp $
|
||||
|
||||
--- acinclude.m4.orig 2005-08-28 17:26:59.000000000 +0900
|
||||
+++ acinclude.m4
|
||||
@@ -65,3 +65,23 @@ AC_DEFUN([EL_GETPW_R_DRAFT],
|
||||
AC_MSG_RESULT(yes)],
|
||||
[AC_MSG_RESULT(no)])
|
||||
])
|
||||
+
|
||||
+AC_DEFUN([EL_PRAGMA_WEAK],
|
||||
+[
|
||||
+ AC_MSG_CHECKING([if we can use C pragma weak SYM])
|
||||
+ AC_RUN_IFELSE([#include <stdio.h>
|
||||
+ #pragma weak ___non_existent_function___
|
||||
+ extern void ___non_existent_function___(void);
|
||||
+ int main(void) {
|
||||
+ if (___non_existent_function___ == 0) {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ else {
|
||||
+ return 1;
|
||||
+ }
|
||||
+ }],
|
||||
+ [AC_DEFINE([HAVE_PRAGMA_WEAK], 1, [Define to 1 if we can use C pragma weak SYM.])
|
||||
+ AC_MSG_RESULT(yes)],
|
||||
+ [AC_MSG_RESULT(no)],
|
||||
+ [AC_MSG_RESULT(cross compiling; assumed `no')])
|
||||
+])
|
||||
\ No newline at end of file
|
||||
12
devel/editline/patches/patch-ac
Normal file
12
devel/editline/patches/patch-ac
Normal file
@@ -0,0 +1,12 @@
|
||||
$NetBSD: patch-ac,v 1.1 2013/07/15 01:42:47 ryoon Exp $
|
||||
|
||||
--- configure.ac.orig 2009-01-11 19:33:42.000000000 +0900
|
||||
+++ configure.ac
|
||||
@@ -57,6 +57,7 @@ AC_C_CONST
|
||||
AC_TYPE_PID_T
|
||||
AC_TYPE_SIZE_T
|
||||
AC_CHECK_TYPES([u_int32_t])
|
||||
+EL_PRAGMA_WEAK
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_CLOSEDIR_VOID
|
||||
Reference in New Issue
Block a user