diff options
Diffstat (limited to 'app-shells/tcsh')
-rw-r--r-- | app-shells/tcsh/Manifest | 9 | ||||
-rw-r--r-- | app-shells/tcsh/files/tcsh-6.18.01-aix.patch | 14 | ||||
-rw-r--r-- | app-shells/tcsh/files/tcsh-6.20.00-debian-dircolors.patch | 21 | ||||
-rw-r--r-- | app-shells/tcsh/files/tcsh-6.20.00-use-ncurses-tinfo.patch | 11 | ||||
-rw-r--r-- | app-shells/tcsh/metadata.xml | 15 | ||||
-rw-r--r-- | app-shells/tcsh/tcsh-6.20.00.ebuild | 101 |
6 files changed, 171 insertions, 0 deletions
diff --git a/app-shells/tcsh/Manifest b/app-shells/tcsh/Manifest new file mode 100644 index 000000000000..95bd821f03c6 --- /dev/null +++ b/app-shells/tcsh/Manifest @@ -0,0 +1,9 @@ +AUX tcsh-6.18.01-aix.patch 474 SHA256 fe21dd7ea7783e199374f6c97f07b9f95b805c0194bf63d4325f3d318c2f52a3 SHA512 ae5dd2f5aee7c14734e775b55f780aa430dd2efc8407b671308215c69e3b97ad37a3b54ad2bc7fabe84b1806997a78ccd15b06ac59491c93dcad14bb14032bd5 WHIRLPOOL 1871f62a3718a340d5f85844654d41f7eb4e42c9e2232c55803b2f0e03689562aa8131b00a4c92f0b15bb9ca6c9956fccb203b2f41ccce236e183d0d27374136 +AUX tcsh-6.20.00-debian-dircolors.patch 506 SHA256 ff3d745448e2491348a9eb92a0d37a989b857caff39926811ca35b141f2c3310 SHA512 c761857c343c833aea5061baeb54dd86f7a8804424b7ea2009d05fd57b92ba3b892c05fe48a8f4e00a6eee39515086063a9c518004d726626dc5c466958a6dad WHIRLPOOL 9cc6dd89472a25be61832ba7bc62c66cf4f9bd64049f871a70aa974d90bc6ca4b1efe289383d39e9ac8d7f2a7e8958fb56d3b74627d69e33553d885c890f356e +AUX tcsh-6.20.00-use-ncurses-tinfo.patch 382 SHA256 62377f6dd9bb6eb6ff2aa26489343847492b1af7ad4d9e3e713fdbb78f4b0cfa SHA512 d6e2346a0ed093651be7073b04cd31ec1bd587c52fc9a21295405699fed2a63d6ea8415e7c0d29e0f03732288b4a8749e14c9ee85c39a1b4f8e51cfa996166c3 WHIRLPOOL 7a38ed34f9cbcd91f80189447c21bed8e71dcee7005f1d4876522badfc66a543d2c2fb0c4d1a744d17d3a2c2f2ba1a8cdf9dd76a561d0a76e58589d7ada6d296 +DIST tcsh-6.20.00.tar.gz 1001696 SHA256 b89de7064ab54dac454a266cfe5d8bf66940cb5ed048d0c30674ea62e7ecef9d SHA512 c5635393c22341e62fb9a0b953ddf8871a876ab09deb08c98237f93afa9257b4a3381d1db65eefe769e22ef845db29ab7bc78773f1f609d73c8205689a6683e9 WHIRLPOOL 09090ca8f698b4cc85b9a6dede56cf83a1f71b9844ac99729d0472bb9f7c4593572673b07f0ec9a0eb34cf7903cad08c20d93c795aff66f0717a48b47efa86b0 +DIST tcsh-gentoo-patches-r1.9.tar.bz2 2488 SHA256 6375f48d78b64fd97fc2cb07e8117e41459521a8de3919d174eec321a98af483 SHA512 9903e9c3e2279abcac09a3235f3c5db9f42156c18137eb651ede195ca2b069f0b5bc6105fed33666b69796c4ebf03e4efe63cd9beba1898bac7297a2f74bfd3d WHIRLPOOL a16e642f32095f5403cad38446acc50e1802e874dba66eccfdc2ab7f5108fe77e91f5990585ba4fffb808be92c15a05f70eaf1fb436da040287b04c207c9a105 +EBUILD tcsh-6.20.00.ebuild 2653 SHA256 d576a5d6aabf248bcc146d2c58692aba8d8c58e91a3c5923c2fce05d5e44d5cc SHA512 7eabfa6dc1bdbda05a7ef5acaa3734e34bba45e7aa7a74957d4c4fc98acd0c223aaefb4c50b242d51f2a768eb50167fb2deb5b7340a4f4d219f77522a38e75e5 WHIRLPOOL 8f388a5b8e2c0f61fc9c9b2d9f052161bded37f60a9ec60ec1116adbd5197e52c8e0b50f0c67e8fb3f83427e326bf474a2ebf7f02d91f4bee9d4832b6f2d3932 +MISC ChangeLog 4109 SHA256 513e7fc1972369540071c0a04791ec68c0a48dc0c1f02578c3e9211c5cdcadd1 SHA512 ca22bc79242038d1c1a1eaff0e3e4fb965d5106b37bf6412f41fc3b0e75a12bde427561c5a622db4e2deaca99dbeada463c0cb5845c4a03fae7f4d62b4e2d80f WHIRLPOOL f779521d29920ea1dda7fba10eec1743c95490cec0195ff59cf55f1c568b2b30255693236e72a8d46c557409651fa27674d05804d75dcd874d8d51858b8d1e58 +MISC ChangeLog-2015 19499 SHA256 315cc3d9a126704dc65869a471caf4256f21e435299889dd75a0bd9f6c0c2f9c SHA512 5fd83ece138bc3171e706a27071301729ebd97f920478d3c659711b3d0921d6975f59519cae135de8f2d4a072a6a76a55e5ebd0aad0f7d7d61439fb5c82d1510 WHIRLPOOL e875020a9abbf5e2fb2961c1f00b7a87cd1e3a089429fc3f42ec088a199d896288113793225acc175467d550643182f4d1189a3c2075c29b39008c5d8026c943 +MISC metadata.xml 652 SHA256 4eb992c02775173cc426a601f5f6dc7db9951760396ed3c452dccb2b869f9f3a SHA512 355c4cef934eb118937a8504c497b84c39cce30aba12cbce4dbc7c698f23787aeb7eb408dcf1670a509f289a0f88990cd6b5b9260a9b2b2d3bfcb4a2e39084b6 WHIRLPOOL 7db1a425ad545a14f1a2bdb2cb80b16f680207c030a7f86e4ed636444356f46323b25d285e803aa2c8f413efc4292381e9ccad6083e2b0900fd74409c8943a17 diff --git a/app-shells/tcsh/files/tcsh-6.18.01-aix.patch b/app-shells/tcsh/files/tcsh-6.18.01-aix.patch new file mode 100644 index 000000000000..669d20634731 --- /dev/null +++ b/app-shells/tcsh/files/tcsh-6.18.01-aix.patch @@ -0,0 +1,14 @@ +Upstream report, without better patch yet: +http://bugs.gw.com/view.php?id=366 + +--- tc.who.c.orig 2014-06-26 11:21:43 +0200 ++++ tc.who.c 2014-06-26 11:21:58 +0200 +@@ -60,6 +60,8 @@ + # define TCSH_PATH_UTMP _PATH_UTMPX + # elif defined(UTMPX_FILE) + # define TCSH_PATH_UTMP UTMPX_FILE ++# elif defined(UTMP_FILE) ++# define TCSH_PATH_UTMP UTMP_FILE + # elif __FreeBSD_version >= 900000 + # /* Why isn't this defined somewhere? */ + # define TCSH_PATH_UTMP "/var/run/utx.active" diff --git a/app-shells/tcsh/files/tcsh-6.20.00-debian-dircolors.patch b/app-shells/tcsh/files/tcsh-6.20.00-debian-dircolors.patch new file mode 100644 index 000000000000..3b18f1c45d77 --- /dev/null +++ b/app-shells/tcsh/files/tcsh-6.20.00-debian-dircolors.patch @@ -0,0 +1,21 @@ +forward-ported 6.14 to 6.20 patch from Debian + +--- tcsh-6.20.00/tw.color.c ++++ tcsh-6.20.00/tw.color.c +@@ -382,13 +382,10 @@ + if ((Char)variables[i].variable[0] == (v[0] & CHAR) && + (Char)variables[i].variable[1] == (v[1] & CHAR)) + break; +- if (i < nvariables) { +- v += 3; ++ v += 3; ++ if (i < nvariables) + getstring(&c, &v, &variables[i].color, ':'); +- continue; +- } +- else +- stderror(ERR_BADCOLORVAR, v[0], v[1]); ++ continue; + } + break; + } diff --git a/app-shells/tcsh/files/tcsh-6.20.00-use-ncurses-tinfo.patch b/app-shells/tcsh/files/tcsh-6.20.00-use-ncurses-tinfo.patch new file mode 100644 index 000000000000..e17841863d81 --- /dev/null +++ b/app-shells/tcsh/files/tcsh-6.20.00-use-ncurses-tinfo.patch @@ -0,0 +1,11 @@ +--- tcsh-6.20.00/configure.ac ++++ tcsh-6.20.00/configure.ac +@@ -317,7 +317,7 @@ + dnl Checks for libraries + AC_SEARCH_LIBS(crypt, crypt) + AC_SEARCH_LIBS(getspnam, sec) +-AC_SEARCH_LIBS([tgetent], [termlib termcap curses ncurses], [], [ ++AC_SEARCH_LIBS([tgetent], [ncurses tinfo], [], [ + AC_MSG_ERROR([unable to find the tgetent() function]) + ]) + AC_SEARCH_LIBS(gethostbyname, nsl) diff --git a/app-shells/tcsh/metadata.xml b/app-shells/tcsh/metadata.xml new file mode 100644 index 000000000000..b99b69c44e6d --- /dev/null +++ b/app-shells/tcsh/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>grobian@gentoo.org</email> + <name>Fabian Groffen</name> + </maintainer> + <longdescription> + Tcsh is an enhanced, but completely compatible version of the Berkeley + UNIX C shell (csh). It is a command language interpreter usable both as + an interactive login shell and a shell script command processor. It + includes a command-line editor, programmable word completion, spelling + correction, a history mechanism, job control and a C-like syntax. + </longdescription> +</pkgmetadata> diff --git a/app-shells/tcsh/tcsh-6.20.00.ebuild b/app-shells/tcsh/tcsh-6.20.00.ebuild new file mode 100644 index 000000000000..f78c18beaf4d --- /dev/null +++ b/app-shells/tcsh/tcsh-6.20.00.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils flag-o-matic autotools prefix + +CONFVER="1.9" + +DESCRIPTION="Enhanced version of the Berkeley C shell (csh)" +HOMEPAGE="http://www.tcsh.org/" +SRC_URI=" + ftp://ftp.astron.com/pub/tcsh/${P}.tar.gz + https://dev.gentoo.org/~grobian/distfiles/tcsh-gentoo-patches-r${CONFVER}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls doc" +RESTRICT="test" + +# we need gettext because we run autoconf (AM_ICONV) +RDEPEND=" + >=sys-libs/ncurses-5.1:0= + virtual/libiconv" +DEPEND="${RDEPEND} + sys-devel/gettext + doc? ( dev-lang/perl )" + +CONFDIR=${WORKDIR}/tcsh-gentoo-patches-r${CONFVER} + +PATCHES=( + "${FILESDIR}"/${PN}-6.20.00-debian-dircolors.patch # bug #120792 + "${FILESDIR}"/${PN}-6.20.00-use-ncurses-tinfo.patch + "${FILESDIR}"/${PN}-6.18.01-aix.patch +) + +src_prepare() { + epatch "${PATCHES[@]}" + + eautoreconf + + # fix gencat usage + sed \ + -e 's/cat \$\^ \$> | \$(GENCAT) \$@/rm -f $@; $(GENCAT) $@ $> $^/' \ + -i nls/Makefile.in || die + + # use sysmalloc (for larger alloc sets) on Darwin also + sed -i -e 's/__MACHTEN__/__MACH__/' config_f.h || die + + # unify ECHO behaviour + echo "#undef ECHO_STYLE" >> config_f.h + echo "#define ECHO_STYLE BOTH_ECHO" >> config_f.h + + eprefixify "${CONFDIR}"/* + # activate the right default PATH + if [[ -z ${EPREFIX} ]] ; then + sed -i \ + -e 's/^#MAIN//' -e '/^#PREFIX/d' \ + "${CONFDIR}"/csh.login || die + else + sed -i \ + -e 's/^#PREFIX//' -e '/^#MAIN/d' \ + "${CONFDIR}"/csh.login || die + fi + + eapply_user +} + +src_configure() { + # make tcsh look and live along the lines of the prefix + append-cppflags -D_PATH_DOTCSHRC="'"'"${EPREFIX}/etc/csh.cshrc"'"'" + append-cppflags -D_PATH_DOTLOGIN="'"'"${EPREFIX}/etc/csh.login"'"'" + append-cppflags -D_PATH_DOTLOGOUT="'"'"${EPREFIX}/etc/csh.logout"'"'" + append-cppflags -D_PATH_USRBIN="'"'"${EPREFIX}/usr/bin"'"'" + append-cppflags -D_PATH_BIN="'"'"${EPREFIX}/bin"'"'" + + econf \ + --prefix="${EPREFIX:-}" \ + --datarootdir='${prefix}/usr/share' \ + $(use_enable nls) +} + +src_install() { + emake DESTDIR="${D}" install install.man + + DOCS=( FAQ Fixes NewThings Ported README WishList Y2K ) + if use doc ; then + perl tcsh.man2html tcsh.man || die + HTML_DOCS=( tcsh.html/*.html ) + fi + einstalldocs + + insinto /etc + doins \ + "${CONFDIR}"/csh.cshrc \ + "${CONFDIR}"/csh.login + + # bug #119703: add csh -> tcsh symlink + dosym tcsh /bin/csh +} |