diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-editors/teco | |
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/teco')
-rw-r--r-- | app-editors/teco/Manifest | 5 | ||||
-rw-r--r-- | app-editors/teco/files/teco-double-free.diff | 20 | ||||
-rw-r--r-- | app-editors/teco/files/teco-gcc4.patch | 11 | ||||
-rw-r--r-- | app-editors/teco/files/teco-warnings.patch | 47 | ||||
-rw-r--r-- | app-editors/teco/metadata.xml | 27 | ||||
-rw-r--r-- | app-editors/teco/teco-1.00-r4.ebuild | 66 |
6 files changed, 176 insertions, 0 deletions
diff --git a/app-editors/teco/Manifest b/app-editors/teco/Manifest new file mode 100644 index 000000000000..79ec4c152111 --- /dev/null +++ b/app-editors/teco/Manifest @@ -0,0 +1,5 @@ +DIST tech.txt.gz 1971 SHA256 b363c59a4e97793e0c7bd0011cfc6d6669621e7a8b7c98e88da0d098aae83b7c SHA512 8c74d813d7e1bcd2f911982a8b49fa8b97ff85475a4798ea23d9a25ef30ad7243cfc851525aea895eec1a2f69aad84b6cce890ee6a29763a63c1a6d1358a200f WHIRLPOOL 5814546368ee3a0794c098496c25b5ccfe63c84e72cc802edfdbfe415f4a1920d518496b67011c63d0e3ff950204af5c61bad0e1684c35b1c724a977b2145a5a +DIST teco.doc.gz 129896 SHA256 c2102dcfc223e5f8fe189b2dd75dfb6f8dbdf1e7509761c974da45e6ba115c66 SHA512 ea294aaa0d54de5b58ef645fbaf5c9512f5a27fb2b49b1120b4a712d01c6482f01a53ac2dac7c8eabdf110823a4556563cde828fc7416479b9c23157282e76da WHIRLPOOL 650e504660874a88170ca8e88735ac7e3c9a0587191aa56591c441949402ea170cf72f23084d85c2bd74de340a42585b64f9a93b45c2f4089fd4f9d2642394e8 +DIST teco.tar.gz 61305 SHA256 2d20d7246df15863a3cc485ee38706fd4dd8650aab0578d202913cc5750fc8e4 SHA512 686b3944a82d088a2fce12a9b770f4aa5f58aaadde064b3d3342114f0ece2d7cbae27d0e92fd026def6f62a3ff0dc82b37146e30a93b2ec195dc7f376b45fdf7 WHIRLPOOL 976dfcffd0dd9c40e97574c22efc99b8985484534a4f8f8deae218daad9ccc6c4f29e1c352ec0be5e73368993d3d04e757b708ca325b42b8fa3c1e71ae2e42b9 +DIST tecolore.txt.gz 7039 SHA256 a7cd56d4d9bce8befd8d73fe8cbb1ab22740571f52354880c84ffd0fcd22d884 SHA512 f8b66637dd140057331bb950b639f755b7d2a58c6d9feb5c89c062350f3213b40f4e955c586643312b4bcdcfd5ce67c621c8f7351e08a4303be35af967ce206e WHIRLPOOL c847df458b938d3b6a5d41ea868bbf1107a191cd5cf0f5e93e93d8c8c1f1fb55574bf5db9768fbfbf520d5306ffdae8b0915167e9a7a6ff958b9a286df077cc3 +DIST tecoprog.doc.gz 15629 SHA256 8e0349b73ffcd22c668d81ea1427f93324d8f236862847634f7118fd4cde26d7 SHA512 f49de461d6411345e9e72b51bf39bc1155acc07901b54d8fda94b99a4a573005ccffc475ef8aac3bfc0b8bd246dc0077399d4bcef70e8a5e753c45995df7ad55 WHIRLPOOL 17a80c2ee2c66509689359103167c6e6c2809f8a3f54d6293de8288f37641491a34ead63691572e99e84e07c39565f441f6b56e5a8c9e20ae32f5641dac69a45 diff --git a/app-editors/teco/files/teco-double-free.diff b/app-editors/teco/files/teco-double-free.diff new file mode 100644 index 000000000000..5a62b23d90be --- /dev/null +++ b/app-editors/teco/files/teco-double-free.diff @@ -0,0 +1,20 @@ +--- te_exec2.c 1993-11-12 21:12:47.000000000 +0000 ++++ te_exec2.c.new 2005-08-21 18:31:26.495907720 +0100 +@@ -197,7 +197,7 @@ + { + if (eisw) /* if ending a file execute, restore the previous "old command string" */ + { +- fclose(eisw); /* return the file descriptor */ ++ fclose(eisw), eisw = NULL; /* return the file descriptor */ + dly_free_blist(cbuf.f); /* return the command string used by the file (after execution done) */ + cbuf.f = oldcstring.f; + cbuf.z = oldcstring.z; +@@ -214,7 +214,7 @@ + oldcstring.z = cbuf.z; + cbuf.f = NULL; /* and make it inaccessible to "rdcmd" */ + } +- if (eisw) fclose(eisw); /* if a command file had been open, close it */ ++ if (eisw) fclose(eisw), eisw = NULL; /* if a command file had been open, close it */ + esp->val1 = (eisw = t_eisw) ? -1 : 0; + esp->flag1 = colonflag; + colonflag = 0; diff --git a/app-editors/teco/files/teco-gcc4.patch b/app-editors/teco/files/teco-gcc4.patch new file mode 100644 index 000000000000..fe4d8d3759b4 --- /dev/null +++ b/app-editors/teco/files/teco-gcc4.patch @@ -0,0 +1,11 @@ +--- te_subs.c.orig 2007-03-18 19:58:40 +0100 ++++ te_subs.c 2007-03-18 19:58:57 +0100 +@@ -231,7 +231,7 @@ + char c; + { + if (isdigit(c)) return(c - '0' + 1); +- else if isalpha(c) return(mapch_l[c] - 'a' + 11); ++ else if (isalpha(c)) return(mapch_l[c] - 'a' + 11); + else if (fors) + { + if (c == '_') return (SERBUF); diff --git a/app-editors/teco/files/teco-warnings.patch b/app-editors/teco/files/teco-warnings.patch new file mode 100644 index 000000000000..f8bbfbfff181 --- /dev/null +++ b/app-editors/teco/files/teco-warnings.patch @@ -0,0 +1,47 @@ +Include stdlib.h for exit(3). +Fix conflicting type for malloc(3). +Avoid casting pointers from/to int. + +--- teco-orig/te_defs.h ++++ teco/te_defs.h +@@ -6,6 +6,7 @@ + /* version for multiple buffers 04/19/89 11.25 */ + + #include <stdio.h> ++#include <stdlib.h> + #include <ctype.h> + #include <setjmp.h> + +--- teco-orig/te_rdcmd.c ++++ teco/te_rdcmd.c +@@ -94,7 +94,8 @@ + qreg[i].f = cbuf.f; /* put the old command string in its place */ + if (qreg[i].f) qreg[i].f->b = (struct buffcell *) &qreg[i]; + qreg[i].z = cbuf.z; +- cbuf.f = (struct buffcell *) (cbuf.z = 0); /* no old command string */ ++ cbuf.f = NULL; /* no old command string */ ++ cbuf.z = 0; + err = 0; /* no previous error */ + goto restart; + } +--- teco-orig/te_utils.c ++++ teco/te_utils.c +@@ -13,7 +13,6 @@ + + struct buffcell *get_bcell() + { +- char *malloc(); + struct buffcell *p; + int i; + +--- teco-orig/te_window.c ++++ teco/te_window.c +@@ -1051,7 +1051,7 @@ + pp->c = loc % CELLSIZE; + pp->dot = loc; + } +- return( (int) pb0->f); ++ return(pb0->f != NULL); + } + + /* routine to move N lines (back, forward, or 0) */ diff --git a/app-editors/teco/metadata.xml b/app-editors/teco/metadata.xml new file mode 100644 index 000000000000..871e92f06b8d --- /dev/null +++ b/app-editors/teco/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>ulm@gentoo.org</email> + <name>Ulrich Müller</name> +</maintainer> +<longdescription lang="en"> + TECO /tee'koh/ /n.,v. obs./ 1. [originally an acronym for `[paper] + Tape Editor and COrrector'; later, `Text Editor and COrrector'] /n./ + A text editor developed at MIT and modified by just about everybody. + With all the dialects included, TECO may have been the most prolific + editor in use before EMACS, to which it was directly ancestral. + Noted for its powerful programming-language-like features and its + unspeakably hairy syntax. It is literally the case that every string + of characters is a valid TECO program (though probably not a useful + one); one common game used to be mentally working out what the TECO + commands corresponding to human names did. + + In mid-1991, TECO is pretty much one with the dust of history, + having been replaced in the affections of hackerdom by EMACS. + Descendants of an early (and somewhat lobotomized) version adopted + by DEC can still be found lurking on VMS and a couple of crufty + PDP-11 operating systems, however, and ports of the more advanced + MIT versions remain the focus of some antiquarian interest. +</longdescription> +</pkgmetadata> diff --git a/app-editors/teco/teco-1.00-r4.ebuild b/app-editors/teco/teco-1.00-r4.ebuild new file mode 100644 index 000000000000..1acf2f9a3fcf --- /dev/null +++ b/app-editors/teco/teco-1.00-r4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs flag-o-matic readme.gentoo + +DESCRIPTION="Classic TECO editor, Predecessor to EMACS" +HOMEPAGE="http://www.ibiblio.org/pub/linux/apps/editors/tty/ http://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco" +SRC_URI="http://www.ibiblio.org/pub/linux/apps/editors/tty/teco.tar.gz + doc? ( mirror://gentoo/tecolore.txt.gz + mirror://gentoo/tech.txt.gz + mirror://gentoo/teco.doc.gz + mirror://gentoo/tecoprog.doc.gz )" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="alpha amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" +IUSE="doc" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}" + +src_unpack() { + unpack teco.tar.gz + if use doc; then + mkdir doc + cd doc || die + unpack tecolore.txt.gz tech.txt.gz teco.doc.gz tecoprog.doc.gz + fi +} + +src_prepare() { + local pkg_config=$("$(tc-getPKG_CONFIG)" --libs ncurses) + sed -i -e "s:\$(CC):& \$(LDFLAGS):;s:-ltermcap:${pkg_config}:" \ + Makefile || die + # bug 103257 + epatch "${FILESDIR}"/${PN}-double-free.diff + epatch "${FILESDIR}"/${PN}-gcc4.patch + epatch "${FILESDIR}"/${PN}-warnings.patch +} + +src_compile() { + append-flags -ansi + append-cppflags -D_POSIX_SOURCE + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +src_install() { + dobin te + doman te.1 + dodoc sample.tecorc sample.tecorc2 READ.ME MANIFEST + if use doc; then + cd doc + dodoc tecolore.txt tech.txt teco.doc tecoprog.doc + fi + + DOC_CONTENTS="The TECO binary is called te. + \nSample configurations and documentation are available + in /usr/share/doc/${PF}/." + readme.gentoo_create_doc +} |