app-shells/tcsh: drop 6.24.01-r1, EAPI=7--

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2025-11-08 00:07:35 +02:00
parent 33dd355e42
commit cc85058a05
2 changed files with 0 additions and 110 deletions

View File

@@ -1,4 +1,3 @@
DIST tcsh-6.24.01.tar.gz 949438 BLAKE2B 4f3005e98d02aa12cea41405ab7e56cd840ba207d36a657699041b045f537bfbf1c992a20435ee97ea21b4bb25f0d7af532ccd2ef50de8542ca94f914e3f3ca5 SHA512 47425f9bc5ae3df163fe1c9f8a1b1a6c3893b186843d561fb7020c75561587286036cc679212f17fd0f760735d9e01da414e60a69db0ffcb74276f053ea80479
DIST tcsh-6.24.15.tar.gz 958802 BLAKE2B da369d2c6abfcbd93c1a1eaf74663443b545ce82f53fa0272829a1e625255c982f890250f1adf26c952dc026e22cbe960981c19c16194ce4801a907f2b3e32e2 SHA512 190d394ee15772b846ccc8052ba019baea7a59a1cd303a9440c39fb28325b29726135caf79382b76be1ba1479061c9e6c5240590ae3165e03d968ce506926b62
DIST tcsh-6.24.16.tar.gz 958396 BLAKE2B addbfc37a4276499f56b6ca2f13e3937ea66a0449d19d2c4edacb6193bba679ef324a7bbb8221f62343f23b30ea27e1f6ea0eed634e5dc8ea882dbc4601d55a0 SHA512 076ec595a8789bca33b16ba3b805fdbc6ea4e4e259110b0c59b4fc3a28c2d82ff62803c9c9bbfb537eae176f18e37e8ea5196f1ace3d44f7e466c423310e5b71
DIST tcsh-gentoo-patches-r1.10.tar.xz 2344 BLAKE2B 82131a926b99734173c2524cddfad69cdfc4653370699da8ebc135bd198a32b0bb290ff93b7a478dcf02c7353a82a2cc4efb0a2e39539d1a74ea9fea1b3f7e2a SHA512 d9e01c9b162529501b5eaafe031dfe880818129f4d197a07012e698293841269568a19c595453259d784129271c7f7230b6ce326880b06c4c82bb89b8645a3f4

View File

@@ -1,109 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic autotools prefix
CONFVER="1.10"
DESCRIPTION="Enhanced version of the Berkeley C shell (csh)"
HOMEPAGE="https://www.tcsh.org/"
SRC_URI="
https://astron.com/pub/tcsh/${P}.tar.gz
https://astron.com/pub/tcsh/old/${P}.tar.gz
https://dev.gentoo.org/~grobian/distfiles/tcsh-gentoo-patches-r${CONFVER}.tar.xz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="nls doc"
RESTRICT="test"
# we need gettext because we run autoconf (AM_ICONV)
RDEPEND="
>=sys-libs/ncurses-5.1:0=
virtual/libcrypt:=
virtual/libiconv"
DEPEND="${RDEPEND}
sys-devel/gettext
doc? ( dev-lang/perl )"
CONFDIR=${WORKDIR}/tcsh-gentoo-patches-r${CONFVER}
PATCHES=(
"${FILESDIR}"/${PN}-6.23.02-dircolors.patch # bug #120792
"${FILESDIR}"/${PN}-6.21.04-no-nls.patch
"${FILESDIR}"/${PN}-6.21.00-use-ncurses.patch
)
src_prepare() {
default
eautoreconf
# fix gencat usage
sed \
-e 's/cat \$\^ \$> | \$(GENCAT) \$@/rm -f $@; $(GENCAT) $@ $> $^/' \
-i nls/Makefile.in || die
# always use sysmalloc, the builtin malloc fails on Darwin, musl,
# etc. it's already used for glibc-linux, so this doesn't change
# anything for the majority of users
sed -i -e 's/undef SYSMALLOC/define SYSMALLOC/' 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
}
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"'"'"
# musl's utmp is non-functional
if use elibc_musl ; then
export ac_cv_header_utmp_h=no
export ac_cv_header_utmpx_h=no
fi
econf \
--prefix="${EPREFIX:-}" \
--datarootdir='${prefix}/usr/share' \
$(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install install.man
DOCS=( FAQ Fixes NewThings Ported README.md 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
}