mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Convert libedit recipe to an actual recipe
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
DESCRIPTION="A BSD licensed replacement for the GNU readline library."
|
||||
HOMEPAGE="http://www.thrysoee.dk/editline/"
|
||||
SRC_URI="http://www.thrysoee.dk/editline/libedit-20120601-3.0.tar.gz"
|
||||
CHECKSUM_MD5="e50f6a7afb4de00c81650f7b1a0f5aea"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
LICENSE="BSD (3-clause)"
|
||||
COPYRIGHT="1992-2012 The NetBSD Foundation, Inc."
|
||||
BUILD()
|
||||
{
|
||||
cd libedit-20120601-3.0
|
||||
autoreconf --force --install
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--disable-shared \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd libedit-20120601-3.0
|
||||
make install
|
||||
}
|
||||
49
dev-libs/libedit/libedit-20120601_3.0.recipe
Normal file
49
dev-libs/libedit/libedit-20120601_3.0.recipe
Normal file
@@ -0,0 +1,49 @@
|
||||
SUMMARY="A BSD licensed replacement for the GNU readline library"
|
||||
DESCRIPTION="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."
|
||||
LICENSE="BSD (3-clause)"
|
||||
COPYRIGHT="1992-2012 The NetBSD Foundation, Inc."
|
||||
HOMEPAGE="http://www.thrysoee.dk/editline/"
|
||||
SRC_URI="http://www.thrysoee.dk/editline/libedit-20120601-3.0.tar.gz"
|
||||
CHECKSUM_MD5="e50f6a7afb4de00c81650f7b1a0f5aea"
|
||||
REVISION="2"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
|
||||
PATCHES="libedit-20120601_3.0.patch"
|
||||
|
||||
PROVIDES="
|
||||
libedit = $portVersion
|
||||
lib:libedit = 0.0.41 compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
ncurses
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
$REQUIRES
|
||||
cmd:aclocal
|
||||
cmd:autoreconf
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:sed
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
"
|
||||
|
||||
SOURCE_DIR="libedit-20120601-3.0"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf --force --install
|
||||
runConfigure ./configure
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
prepareInstalledDevelLibs libedit
|
||||
fixPkgconfig
|
||||
}
|
||||
@@ -37,19 +37,6 @@ diff -urN libedit-20120601-3.0/src/editline/readline.h libedit-20120601-3.0-haik
|
||||
#include <sys/ttydefaults.h>
|
||||
#endif
|
||||
#ifndef CTRL
|
||||
diff -urN libedit-20120601-3.0/src/el.c libedit-20120601-3.0-haiku/src/el.c
|
||||
--- libedit-20120601-3.0/src/el.c 2012-03-11 15:00:23.000000000 -0700
|
||||
+++ libedit-20120601-3.0-haiku/src/el.c 2012-06-16 15:01:11.013893632 -0700
|
||||
@@ -55,7 +55,9 @@
|
||||
#include <stdarg.h>
|
||||
#include <ctype.h>
|
||||
#include <locale.h>
|
||||
+#ifdef HAVE_LANGINFO_H
|
||||
#include <langinfo.h>
|
||||
+#endif
|
||||
#include "el.h"
|
||||
|
||||
/* el_init():
|
||||
diff -urN libedit-20120601-3.0/src/vis.c libedit-20120601-3.0-haiku/src/vis.c
|
||||
--- libedit-20120601-3.0/src/vis.c 2011-07-08 23:39:42.000000000 -0700
|
||||
+++ libedit-20120601-3.0-haiku/src/vis.c 2012-06-16 15:01:11.063176704 -0700
|
||||
Reference in New Issue
Block a user