diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-editors/bvi | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-editors/bvi')
-rw-r--r-- | app-editors/bvi/Manifest | 2 | ||||
-rw-r--r-- | app-editors/bvi/bvi-1.3.2-r2.ebuild | 47 | ||||
-rw-r--r-- | app-editors/bvi/bvi-1.4.0_alpha.ebuild | 42 | ||||
-rw-r--r-- | app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch | 22 | ||||
-rw-r--r-- | app-editors/bvi/files/bvi-1.3.2-tinfo.patch | 35 | ||||
-rw-r--r-- | app-editors/bvi/metadata.xml | 11 |
6 files changed, 159 insertions, 0 deletions
diff --git a/app-editors/bvi/Manifest b/app-editors/bvi/Manifest new file mode 100644 index 000000000000..e5647b2a594b --- /dev/null +++ b/app-editors/bvi/Manifest @@ -0,0 +1,2 @@ +DIST bvi-1.3.2.src.tar.gz 170444 SHA256 ff390af1c474bf870b6171332726b93bad8e716ea378827b55d8aae82dee1c84 SHA512 eb8a01602751b61c471207124c90346375ccf34ba85e661143f6da8f113f48070d132e98213484bd16d0b6b4c8d0fa27776d36f18cac21336076ca35bcfcb58c WHIRLPOOL 5dfa13a5fefe5f6df95e0d0c37961b7998c1eb37296b31771c27c5a71346891d8b2f9dff8ae9b737cfb7df585076ec1efbadac7b492bda706a1d36fbb3d3d6f8 +DIST bvi-1.4.0alpha.src.tar.gz 128821 SHA256 7bd433a9a1e46d79aeabe189899f2c8ff38b321aeeb355c628929c1c9b20779d SHA512 75cf0ff27809e2c4213da72b022e012003d6ef272d734d0c18f03d5cb49bc891b4d3d40a9e6bfff226906062fcd3e319a7503d09409fa2023f5ba1d434e66217 WHIRLPOOL 00ce8428ea4a6a3f268f774d62f1d745bfc39f7eb53171c4778f16b75130502f504f234d754a8b8c8170755c7f69bb9e8704e7a3e66e5a21a1d9a5ec70571b7b diff --git a/app-editors/bvi/bvi-1.3.2-r2.ebuild b/app-editors/bvi/bvi-1.3.2-r2.ebuild new file mode 100644 index 000000000000..c72207b9897d --- /dev/null +++ b/app-editors/bvi/bvi-1.3.2-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +AUTOTOOLS_AUTORECONF="1" +AUTOTOOLS_IN_SOURCE_BUILD="1" + +inherit multilib eutils autotools-utils + +DESCRIPTION="display-oriented editor for binary files, based on the vi texteditor" +HOMEPAGE="http://bvi.sourceforge.net/" +SRC_URI="mirror://sourceforge/bvi/${P}.src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" +KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +src_prepare() { + local PATCHES=( + "${FILESDIR}/${P}-fix-buffer-overflow.patch" + "${FILESDIR}/${P}-tinfo.patch" + ) + sed -i -e 's:ncurses/term.h:term.h:g' bmore.h || die "sed failed in bmore.h" + sed -i -e 's:(INSTALL_PROGRAM) -s:(INSTALL_PROGRAM):g' \ + Makefile.in || die "sed failed in Makefile.in" + + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=(--with-ncurses="${EPREFIX}"/usr) + autotools-utils_src_configure + +} + +src_install() { + autotools-utils_src_install + rm -rf "${ED}"/usr/$(get_libdir)/bmore.help + dodoc README CHANGES CREDITS bmore.help + dohtml -r html/* +} diff --git a/app-editors/bvi/bvi-1.4.0_alpha.ebuild b/app-editors/bvi/bvi-1.4.0_alpha.ebuild new file mode 100644 index 000000000000..cb6dcd4910c5 --- /dev/null +++ b/app-editors/bvi/bvi-1.4.0_alpha.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit multilib eutils versionator + +MY_P=$(replace_version_separator 4 '' ${P}) + +DESCRIPTION="display-oriented editor for binary files, based on the vi texteditor" +HOMEPAGE="http://bvi.sourceforge.net/" +SRC_URI="mirror://sourceforge/bvi/$(replace_version_separator 4 '' ${P}).src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/$MY_P" + +src_prepare() { + sed -i -e 's:(INSTALL_PROGRAM) -s:(INSTALL_PROGRAM):g' \ + Makefile.in || die "sed failed in Makefile.in" + + epatch_user +} + +src_configure() { + econf --with-ncurses="${EPREFIX}"/usr + + sed -i -e 's:ncurses/term.h:term.h:g' bmore.h || die "sed failed in bmore.h" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + rm -rf "${D}"/usr/$(get_libdir)/bmore.help + dodoc README CHANGES CREDITS bmore.help +} diff --git a/app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch b/app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch new file mode 100644 index 000000000000..e3ebaa3d1295 --- /dev/null +++ b/app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch @@ -0,0 +1,22 @@ +diff --git a/edit.c b/edit.c +index 328a0cd..3cf6572 100644 +--- a/edit.c ++++ b/edit.c +@@ -42,7 +42,7 @@ char contru[][4] = {"NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL", + "CAN", " EM", "SUB", "ESC", " FS", " GS", " RS", " US", + "DEL" }; + char tmpbuf[10]; +-char linbuf[256]; ++char linbuf[16384]; + + static char getcbuff[BUFFER]; + static char *getcnext = NULL; +@@ -492,7 +492,7 @@ printline(mempos, scpos) + *(string + print_pos) = '.'; + } + *(string + Anzahl) = '\0'; +- strcat(linbuf, string); ++ strncat(linbuf, string, sizeof(linbuf) - strlen(linbuf) - 1); + mvaddstr(scpos, 0, linbuf); + } + diff --git a/app-editors/bvi/files/bvi-1.3.2-tinfo.patch b/app-editors/bvi/files/bvi-1.3.2-tinfo.patch new file mode 100644 index 000000000000..b00c88811507 --- /dev/null +++ b/app-editors/bvi/files/bvi-1.3.2-tinfo.patch @@ -0,0 +1,35 @@ +diff --git a/configure.in b/configure.in +index 68076d8..81da696 100644 +--- a/configure.in ++++ b/configure.in +@@ -58,17 +58,19 @@ AC_ARG_WITH(ncurses, + fi + ]) + +-AC_CHECK_HEADER(ncurses.h, +- AC_CHECK_LIB(ncurses, initscr, +- AC_DEFINE(HAVE_NCURSES_H) LIBS="${LIBS} -lncurses", +- AC_CHECK_LIB(curses, initscr, +- AC_DEFINE(HAVE_CURSES_H) LIBS="${LIBS} -lcurses", +- AC_MSG_ERROR([bvi requires the curses library]))), +- AC_CHECK_HEADER(curses.h, +- AC_CHECK_LIB(curses, initscr, +- AC_DEFINE(HAVE_CURSES_H) LIBS="${LIBS} -lcurses", +- AC_MSG_ERROR([bvi requires the curses library])), +- AC_MSG_ERROR([bvi requires the curses library]))) ++AC_CHECK_HEADER([ncurses.h],[ ++ AC_SEARCH_LIBS([initscr], [ncurses],[ ++ AC_DEFINE(HAVE_NCURSES_H) ++ AC_SEARCH_LIBS([tputs], [tinfo])], [ ++ AC_SEARCH_LIBS([initscr], [curses],[ ++ AC_DEFINE(HAVE_CURSES_H) ++ AC_SEARCH_LIBS([tputs], [tinfo])],[ ++ AC_MSG_ERROR([bvi requires the curses library])])])],[ ++ AC_CHECK_HEADER([curses.h],[ ++ AC_SEARCH_LIBS([initscr], [curses], [ ++ AC_DEFINE(HAVE_CURSES_H)],[ ++ AC_MSG_ERROR([bvi requires the curses library])])],[ ++ AC_MSG_ERROR([bvi requires the curses library])])]) + + dnl Checks for typedefs, structures, and compiler characteristics. + dnl AC_TYPE_SIZE_T diff --git a/app-editors/bvi/metadata.xml b/app-editors/bvi/metadata.xml new file mode 100644 index 000000000000..1a525d16aaba --- /dev/null +++ b/app-editors/bvi/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>ryao@gentoo.org</email> + <name>Richard Yao</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">bvi</remote-id> + </upstream> +</pkgmetadata> |