diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-22 20:28:47 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-22 20:28:47 +0000 |
commit | fc72d923ab83fab84f5d09659e4fc20190199979 (patch) | |
tree | 97897dfd04d775e9083e1a0d0da710b1d667ddc6 /dev-libs | |
parent | Improvements for upgrading users (diff) | |
download | gentoo-2-fc72d923ab83fab84f5d09659e4fc20190199979.tar.gz gentoo-2-fc72d923ab83fab84f5d09659e4fc20190199979.tar.bz2 gentoo-2-fc72d923ab83fab84f5d09659e4fc20190199979.zip |
initial ebuild
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libedit/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/libedit/files/20031222-debian-to-gentoo.patch | 120 | ||||
-rw-r--r-- | dev-libs/libedit/files/digest-libedit-20031222 | 1 | ||||
-rw-r--r-- | dev-libs/libedit/libedit-20031222.ebuild | 35 | ||||
-rw-r--r-- | dev-libs/libedit/metadata.xml | 16 |
5 files changed, 180 insertions, 0 deletions
diff --git a/dev-libs/libedit/ChangeLog b/dev-libs/libedit/ChangeLog new file mode 100644 index 000000000000..5684f11ee729 --- /dev/null +++ b/dev-libs/libedit/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for dev-libs/libedit +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/ChangeLog,v 1.1 2003/12/22 20:28:47 vapier Exp $ + +*libedit-20031222 (22 Dec 2003) + + 22 Dec 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me! diff --git a/dev-libs/libedit/files/20031222-debian-to-gentoo.patch b/dev-libs/libedit/files/20031222-debian-to-gentoo.patch new file mode 100644 index 000000000000..e2351f9b3dcc --- /dev/null +++ b/dev-libs/libedit/files/20031222-debian-to-gentoo.patch @@ -0,0 +1,120 @@ +diff -ur netbsd-cvs/Makefile libedit-20031222/Makefile +--- netbsd-cvs/Makefile 2003-12-22 13:44:24.798012752 -0500 ++++ libedit-20031222/Makefile 2003-12-22 14:55:15.133863488 -0500 +@@ -5,6 +5,7 @@ + + WARNS= 3 + LIB= edit ++LIBS=-lncurses + + OSRCS= chared.c common.c el.c emacs.c fcns.c help.c hist.c key.c map.c \ + parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c +@@ -22,9 +23,10 @@ + editline.3 tok_line.3 editline.3 tok_str.3 + + # For speed and debugging +-#SRCS= ${OSRCS} tokenizer.c history.c readline.c ++SRCS= ${OSRCS} tokenizer.c history.c readline.c vis.c unvis.c fgetln.c strlcat.c strlcpy.c + # For protection +-SRCS= editline.c tokenizer.c history.c readline.c ++#SRCS= editline.c tokenizer.c history.c readline.c ++OOBJS= $(patsubst %.c,%.o,$(SRCS)) + + LIBEDITDIR?=${.CURDIR} + +@@ -38,6 +40,7 @@ + CPPFLAGS+=-I. -I${.CURDIR} + CPPFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH + CPPFLAGS+=#-DDEBUG_PASTE -DDEBUG_EDIT ++CFLAGS+=-I. -include ../glibc-bsd-glue/bsdcompat.h -I../glibc-compat -I../glibc-bsd-glue + + AHDR=vi.h emacs.h common.h + ASRC=${LIBEDITDIR}/vi.c ${LIBEDITDIR}/emacs.c ${LIBEDITDIR}/common.c +@@ -46,46 +49,54 @@ + CLEANFILES+= ${AHDR} fcns.h help.h fcns.c help.c + + SUBDIR= readline ++HOST_SH=sh ++LIBEDITDIR=. ++all: .depend libedit.a libedit.so + + vi.h: vi.c makelist + ${HOST_SH} ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/vi.c \ +- > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ > $@.tmp && \ ++ mv $@.tmp $@ + + emacs.h: emacs.c makelist + ${HOST_SH} ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/emacs.c \ +- > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ > $@.tmp && \ ++ mv $@.tmp $@ + + common.h: common.c makelist + ${HOST_SH} ${LIBEDITDIR}/makelist -h ${LIBEDITDIR}/common.c \ +- > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ > $@.tmp && \ ++ mv $@.tmp $@ + + fcns.h: ${AHDR} makelist +- ${HOST_SH} ${LIBEDITDIR}/makelist -fh ${AHDR} > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ ${HOST_SH} ${LIBEDITDIR}/makelist -fh ${AHDR} > $@.tmp && \ ++ mv $@.tmp $@ + + fcns.c: ${AHDR} fcns.h help.h makelist +- ${HOST_SH} ${LIBEDITDIR}/makelist -fc ${AHDR} > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ ${HOST_SH} ${LIBEDITDIR}/makelist -fc ${AHDR} > $@.tmp && \ ++ mv $@.tmp $@ + + help.c: ${ASRC} makelist +- ${HOST_SH} ${LIBEDITDIR}/makelist -bc ${ASRC} > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ ${HOST_SH} ${LIBEDITDIR}/makelist -bc ${ASRC} > $@.tmp && \ ++ mv $@.tmp $@ + + help.h: ${ASRC} makelist +- ${HOST_SH} ${LIBEDITDIR}/makelist -bh ${ASRC} > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ ${HOST_SH} ${LIBEDITDIR}/makelist -bh ${ASRC} > $@.tmp && \ ++ mv $@.tmp $@ + + editline.c: ${OSRCS} +- ${HOST_SH} ${LIBEDITDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET}.tmp && \ +- mv ${.TARGET}.tmp ${.TARGET} ++ ${HOST_SH} ${LIBEDITDIR}/makelist -e ${.ALLSRC:T} > $@.tmp && \ ++ mv $@.tmp $@ + + test.o: ${LIBEDITDIR}/TEST/test.c + + test: libedit.a test.o +- ${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD} -ltermcap ++ ${CC} ${LDFLAGS} ${.ALLSRC} -o $@ libedit.a ${LDADD} -ltermcap + +-.include <bsd.lib.mk> +-.include <bsd.subdir.mk> ++.depend: vi.h emacs.h common.h fcns.h help.h help.c ++.c.o: ++ ${CC} ${CFLAGS} -c $< ++libedit.a: ${OOBJS} ++ ar -r $@ ${OOBJS} ++libedit.so: ${OOBJS} ++ ${CC} --shared -o $@ ${OOBJS} ${LIBS} +diff -ur netbsd-cvs/el.c libedit-20031222/el.c +--- netbsd-cvs/el.c 2003-12-22 13:44:25.474909848 -0500 ++++ libedit-20031222/el.c 2003-12-22 15:00:15.545194024 -0500 +@@ -439,8 +439,10 @@ + static const char elpath[] = "/.editrc"; + char path[MAXPATHLEN]; + ++#if 0 + if (issetugid()) + return (-1); ++#endif + if ((ptr = getenv("HOME")) == NULL) + return (-1); + if (strlcpy(path, ptr, sizeof(path)) >= sizeof(path)) diff --git a/dev-libs/libedit/files/digest-libedit-20031222 b/dev-libs/libedit/files/digest-libedit-20031222 new file mode 100644 index 000000000000..c9061e1f9f00 --- /dev/null +++ b/dev-libs/libedit/files/digest-libedit-20031222 @@ -0,0 +1 @@ +MD5 1a4d1763dcaac64ff7a6a5ed4082764d libedit-20031222.tar.bz2 95133 diff --git a/dev-libs/libedit/libedit-20031222.ebuild b/dev-libs/libedit/libedit-20031222.ebuild new file mode 100644 index 000000000000..a800eaafd226 --- /dev/null +++ b/dev-libs/libedit/libedit-20031222.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libedit/libedit-20031222.ebuild,v 1.1 2003/12/22 20:28:47 vapier Exp $ + +inherit eutils + +DESCRIPTION="BSD replacement for libreadline" +HOMEPAGE="http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="sys-libs/ncurses + virtual/glibc" + +S=${WORKDIR}/netbsd-cvs + +src_unpack() { + unpack ${A} + cd ${S} + mv ${WORKDIR}/glibc-*/*.c . + epatch ${FILESDIR}/${PV}-debian-to-gentoo.patch +} + +src_compile() { + emake -j1 || die +} + +src_install() { + dolib.so libedit.so + dolib.a libedit.a + doman *.[35] +} diff --git a/dev-libs/libedit/metadata.xml b/dev-libs/libedit/metadata.xml new file mode 100644 index 000000000000..1e78268d50a4 --- /dev/null +++ b/dev-libs/libedit/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>vapier@gentoo.org</email> +</maintainer> +<longdescription> +GNU Readline is cool, but BSD Readline is cooler :) +Thus here is libedit by the NetBSD folks! +The glibc/bsdlibc stuff comes from the debian tarball, thanks to them too :) +The patch is handcrafted with a few ideas from libedit.sf.net and a few ideas +from the debian package. This patch aims to be as small as possible (so as +to make future cvs snapshots cake). +</longdescription> +</pkgmetadata> |