diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-18 12:24:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-18 12:24:45 +0100 |
commit | 16be64511bd21e32a29645b49e37611507709790 (patch) | |
tree | bfb80060e55c09b383ac0257408890c961550171 /app-shells | |
parent | 4d6e1311ded368813dc93f130293f64148e22c45 (diff) |
gentoo auto-resync : 18:08:2024 - 12:24:44
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/Manifest.gz | bin | 10633 -> 10630 bytes | |||
-rw-r--r-- | app-shells/zsh/Manifest | 1 | ||||
-rw-r--r-- | app-shells/zsh/zsh-9999.ebuild | 241 |
3 files changed, 242 insertions, 0 deletions
diff --git a/app-shells/Manifest.gz b/app-shells/Manifest.gz Binary files differindex 384fa5d013f4..3db4dc558f8e 100644 --- a/app-shells/Manifest.gz +++ b/app-shells/Manifest.gz diff --git a/app-shells/zsh/Manifest b/app-shells/zsh/Manifest index 12c3a6efea3b..69b39d91c6ad 100644 --- a/app-shells/zsh/Manifest +++ b/app-shells/zsh/Manifest @@ -13,4 +13,5 @@ EBUILD zsh-5.9-r3.ebuild 6461 BLAKE2B 848f4889733ad50dbe7b9b5a01e940b82c05a288f1 EBUILD zsh-5.9-r4.ebuild 6665 BLAKE2B 6456b27f90b440d91528c70850fa9188ff89ec0465cbfdbaa4d8cbcd2f0b9ff19eae5760a75d7db17de8a71407a81993a005440cd1834ce00c7a9a2469bfb759 SHA512 fd38838fcdb2e997b168e5c85771717e132798f11f9503bb87cea97e1c8e8972bc507fccbc2869900a50489a36860f093dd71257d7481d2b90d4e9df6dba277e EBUILD zsh-5.9-r5.ebuild 6760 BLAKE2B 966d7925065384ac60f34f23ed87e23386da2b99a8e948ca50b85db1a67dd70919ab60c6a3168d178ebccf3fe9af8a5e6d64b1ac2dc1a48e12c448487632fab9 SHA512 3d8ace1afa83e342bb585a73abe4eac2f2f2f3a144e7ac0d953050ea36d459340f2a8cdb21f2c1e1803f5b6989ed3951905d394e8ceebb6536886320b99be31b EBUILD zsh-5.9-r6.ebuild 6752 BLAKE2B 56f033bb13af2170a7222cc2dfafcb9655c0e8779252519ae2d5c1db31c2ae06dc2b91d24d1a88fc1838b4b843e88ca2cc4b083d92f0939b74a7befae7d1c912 SHA512 54f72065bbec7b6f7fd136ca91e81a070bf2289f90aeaffa15404ce1e21ca222e84f3cdd0bd5f25d8930337ec46bdf6f2553552a9d7b67981fd61a985fe20a41 +EBUILD zsh-9999.ebuild 6299 BLAKE2B 386baa03b274929b7bf6e40c12ce239ca09e9fe5e589475a33706a15f2d46d77b9d6c25c4665cc5a43be9afe8e8ef8cf31ec2bddf69d58f4b5b519325bbeef71 SHA512 73c941c2015077fbf5879a40477f3ee1e953827bfb03707ef560eccd6aff81fe5dc4cb42e6a865f3f6101d830875d6dc35cb3bab972b454fca5d590c6b49fba8 MISC metadata.xml 685 BLAKE2B 1c15216cf141717d22a619dac9c2b2a2b3b722676073d238b0edbe8a034543ada1f852ace77823032d8ccfdc50bf346a8d3b2eb2d6f0fc00be644853c8a2bae1 SHA512 c73f1c2b89865f120ec1c44f437f2e45a462972e649dbe2aea051a5beb42b4289995de02981ec9150f12a36e34a13569bd250f4a962321c578af357153973e35 diff --git a/app-shells/zsh/zsh-9999.ebuild b/app-shells/zsh/zsh-9999.ebuild new file mode 100644 index 000000000000..4511850c60c0 --- /dev/null +++ b/app-shells/zsh/zsh-9999.ebuild @@ -0,0 +1,241 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic prefix + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.code.sf.net/p/zsh/code" +else + SRC_URI="https://www.zsh.org/pub/${P}.tar.xz + doc? ( https://www.zsh.org/pub/${P}-doc.tar.xz )" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +fi + + +DESCRIPTION="UNIX Shell similar to the Korn shell" +HOMEPAGE="https://www.zsh.org/" + +LICENSE="ZSH gdbm? ( GPL-2 )" +SLOT="0" +IUSE="caps debug doc examples gdbm maildir pcre static valgrind" + +RDEPEND=" + >=sys-libs/ncurses-5.1:0= + static? ( >=sys-libs/ncurses-5.7-r4:0=[static-libs] ) + caps? ( sys-libs/libcap ) + pcre? ( + dev-libs/libpcre2 + static? ( dev-libs/libpcre2[static-libs] ) + ) + gdbm? ( + sys-libs/gdbm:= + static? ( sys-libs/gdbm:=[static-libs] ) + ) +" +DEPEND="${RDEPEND} + valgrind? ( dev-debug/valgrind ) +" +PDEPEND=" + examples? ( app-doc/zsh-lovers ) +" +BDEPEND=" + sys-apps/groff +" +if [[ ${PV} == *9999 ]] ; then + BDEPEND+=" + app-text/yodl + doc? ( + sys-apps/texinfo + app-text/texi2html + virtual/latex-base + ) + " +fi + +PATCHES=( + # Add openrc specific options for init.d completion + "${FILESDIR}"/${PN}-5.3-init.d-gentoo.diff +) + +src_prepare() { + if [[ ${PV} != *9999 ]]; then + # fix zshall problem with soelim + ln -s Doc man1 || die + mv Doc/zshall.1 Doc/zshall.1.soelim || die + soelim Doc/zshall.1.soelim > Doc/zshall.1 || die + fi + + default + + hprefixify configure.ac + if [[ ${PV} == *9999 ]] ; then + sed -i "/^VERSION=/s@=.*@=${PV}@" Config/version.mk || die + fi + eautoreconf +} + +src_configure() { + local myconf=( + --bindir="${EPREFIX}"/bin + --libdir="${EPREFIX}"/usr/$(get_libdir) + --enable-etcdir="${EPREFIX}"/etc/zsh + --enable-runhelpdir="${EPREFIX}"/usr/share/zsh/${PV%_*}/help + --enable-fndir="${EPREFIX}"/usr/share/zsh/${PV%_*}/functions + --enable-site-fndir="${EPREFIX}"/usr/share/zsh/site-functions + --enable-function-subdirs + --with-tcsetpgrp + --enable-multibyte + --with-term-lib='tinfow ncursesw' + $(use_enable maildir maildir-support) + $(use_enable pcre) + $(use_enable caps cap) + $(use_enable gdbm) + $(use_enable valgrind zsh-valgrind) + ) + + if use static ; then + myconf+=( --disable-dynamic ) + append-ldflags -static + fi + if use debug ; then + myconf+=( + --enable-zsh-debug + --enable-zsh-mem-debug + --enable-zsh-mem-warning + --enable-zsh-secure-free + --enable-zsh-hash-debug + ) + fi + + if [[ ${CHOST} == *-darwin* ]]; then + myconf+=( --enable-libs=-liconv ) + append-ldflags -Wl,-x + fi + + econf "${myconf[@]}" + + if use static ; then + # compile all modules statically, see Bug #27392 + # removed cap and curses because linking failes + sed -e "s,link=no,link=static,g" \ + -e "/^name=zsh\/cap/s,link=static,link=no," \ + -e "/^name=zsh\/curses/s,link=static,link=no," \ + -i "${S}"/config.modules || die + if ! use gdbm ; then + sed -i '/^name=zsh\/db\/gdbm/s,link=static,link=no,' \ + "${S}"/config.modules || die + fi + fi +} + +src_compile() { + default + + if [[ ${PV} == *9999 ]] && use doc ; then + emake -C Doc everything + fi +} + +src_test() { + # Fixes tests A03quoting.ztst B03print.ztst on musl + # Please refer: + # https://www.zsh.org/mla/workers/2021/msg00805.html + # Test E02xtrace fails on musl, so we are removing it. + # Closes: https://bugs.gentoo.org/833981 + if use elibc_musl ; then + unset LC_ALL + unset LC_COLLATE + unset LC_NUMERIC + unset LC_MESSAGES + unset LANG + rm "${S}"/Test/E02xtrace.ztst || die + fi + + # Breaks tests if inherited from environment. + unset TMPPREFIX + + addpredict /dev/ptmx + local i + for i in C02cond.ztst V08zpty.ztst X02zlevi.ztst Y01completion.ztst Y02compmatch.ztst Y03arguments.ztst ; do + rm "${S}"/Test/${i} || die + done + emake check +} + +src_install() { + emake DESTDIR="${D}" install $(usex doc "install.info" "") + + insinto /etc/zsh + export PREFIX_QUOTE_CHAR='"' PREFIX_EXTRA_REGEX="/EUID/s,0,${EUID}," + newins "$(prefixify_ro "${FILESDIR}"/zprofile-5)" zprofile + + keepdir /usr/share/zsh/site-functions + insinto /usr/share/zsh/${PV%_*}/functions/Prompts + newins "${FILESDIR}"/prompt_gentoo_setup-1 prompt_gentoo_setup + + local i + + # install miscellaneous scripts (bug #54520) + sed -e "s:/usr/local/bin/perl:${EPREFIX}/usr/bin/perl:g" \ + -e "s:/usr/local/bin/zsh:${EPREFIX}/bin/zsh:g" \ + -i {Util,Misc}/* || die + for i in Util Misc ; do + insinto /usr/share/zsh/${PV%_*}/${i} + doins ${i}/* + done + + # install header files (bug #538684) + insinto /usr/include/zsh + doins config.h Src/*.epro + for i in Src/{zsh.mdh,*.h} ; do + sed -e 's@\.\./config\.h@config.h@' \ + -e 's@#\(\s*\)include "\([^"]\+\)"@#\1include <zsh/\2>@' \ + -i "${i}" + doins "${i}" + done + + dodoc ChangeLog* META-FAQ NEWS README config.modules + + if use doc ; then + pushd "${WORKDIR}/${PN}-${PV%_*}" >/dev/null + dodoc Doc/zsh.{dvi,pdf} + docinto html + dodoc Doc/*.html + popd >/dev/null + fi + + docinto StartupFiles + dodoc StartupFiles/z* +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + echo + elog "If you want to enable Portage completions and Gentoo prompt," + elog "emerge app-shells/gentoo-zsh-completions and add" + elog " autoload -U compinit promptinit" + elog " compinit" + elog " promptinit; prompt gentoo" + elog "to your ~/.zshrc" + echo + elog "Also, if you want to enable cache for the completions, add" + elog " zstyle ':completion::complete:*' use-cache 1" + elog "to your ~/.zshrc" + echo + elog "Note that a system zprofile startup file is installed. This will override" + elog "PATH and possibly other variables that a user may set in ~/.zshenv." + elog "Custom PATH settings and similar overridden variables can be moved to ~/.zprofile" + elog "or other user startup files that are sourced after the system zprofile." + echo + elog "If PATH must be set in ~/.zshenv to affect things like non-login ssh shells," + elog "one method is to use a separate path-setting file that is conditionally sourced" + elog "in ~/.zshenv and also sourced from ~/.zprofile. For more information, see the" + elog "zshenv example in ${EROOT}/usr/share/doc/${PF}/StartupFiles/." + echo + elog "See https://wiki.gentoo.org/wiki/Zsh/HOWTO for more introduction documentation." + echo + fi +} |