diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-21 19:04:59 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-21 19:04:59 +0000 |
commit | 77b9f0d5906f0bd9ddf010abe155218c6629738a (patch) | |
tree | 8cea5001e36d78aea62dd100ba74ee77906b69e6 /app-editors/teco/teco-36_p19940820-r1.ebuild | |
parent | f5a622ba784bb66ee85eb669a821801c5e135ed8 (diff) |
gentoo auto-resync : 21:11:2022 - 19:04:59
Diffstat (limited to 'app-editors/teco/teco-36_p19940820-r1.ebuild')
-rw-r--r-- | app-editors/teco/teco-36_p19940820-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/app-editors/teco/teco-36_p19940820-r1.ebuild b/app-editors/teco/teco-36_p19940820-r1.ebuild new file mode 100644 index 000000000000..8372bb8b385a --- /dev/null +++ b/app-editors/teco/teco-36_p19940820-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs flag-o-matic readme.gentoo-r1 + +DESCRIPTION="Classic TECO editor, Predecessor to EMACS" +HOMEPAGE="https://www.ibiblio.org/pub/linux/apps/editors/tty/ https://www.ibiblio.org/pub/academic/computer-science/history/pdp-11/teco/" +SRC_URI="https://www.ibiblio.org/pub/linux/apps/editors/tty/teco.tar.gz -> ${P}.tar.gz + doc? ( https://dev.gentoo.org/~ulm/distfiles/tecodoc.tar.gz )" +S="${WORKDIR}" + +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:0=" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-double-free.patch + "${FILESDIR}"/${PN}-gcc4.patch + "${FILESDIR}"/${PN}-warnings.patch + "${FILESDIR}"/${PN}-no-common.patch + "${FILESDIR}"/${PN}-void-functions.patch + "${FILESDIR}"/${PN}-more-warnings.patch +) + +src_prepare() { + default + local pkg_config=$("$(tc-getPKG_CONFIG)" --libs ncurses) + sed -i -e "s:\$(CC):& \$(LDFLAGS):;s:-ltermcap:${pkg_config}:" \ + Makefile || die +} + +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 + use doc && dodoc doc/* + + local DOC_CONTENTS="The TECO binary is called te. + \nSample configurations and documentation are available + in /usr/share/doc/${PF}/." + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} |