mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
Merge pull request #255 from flatcar-linux/dongsu/vim-8.2.3582
app-editors/vim: update to 8.2.3582
This commit is contained in:
commit
c344820e61
@ -1,3 +1,5 @@
|
|||||||
DIST vim-8.2.0360-gentoo-patches.tar.xz 2612 BLAKE2B a9273a686b31dd873b25bfc07f7bc254f11038bde275ae4e6f56513a14e0268fdc1032ae847d1d7f8539f8a657217011770ccb4685998f34722383ec7bfb1a15 SHA512 00bc8eb8b20a4a6f3bbd179bb90d42fa6727c8eaae5b625e95e52c33638d456ef36d06b51c542ecaffb237c0b4f7aa72dc3bae7fe00144d55ab0d2fa51950f3b
|
DIST vim-8.2.0360-gentoo-patches.tar.xz 2612 BLAKE2B a9273a686b31dd873b25bfc07f7bc254f11038bde275ae4e6f56513a14e0268fdc1032ae847d1d7f8539f8a657217011770ccb4685998f34722383ec7bfb1a15 SHA512 00bc8eb8b20a4a6f3bbd179bb90d42fa6727c8eaae5b625e95e52c33638d456ef36d06b51c542ecaffb237c0b4f7aa72dc3bae7fe00144d55ab0d2fa51950f3b
|
||||||
DIST vim-8.2.0814.tar.gz 14953478 BLAKE2B fd4155ec749bd9a705e8114ff7f8cc321182c9286733ff2f665e265ec0af830f9e70c730b8d0215f6db1f73a8e2f878d22932a72c8dbfe921591be7adcdaab00 SHA512 4ddd9e2d30719f931cadd1a4de5700736f641f4b074378d9ea1462a90b81975ce8e8c3ca2e3a1e15ac0288824eef5b0f0a3e31482f7637c450c6d7e52c8f40d2
|
DIST vim-8.2.0814.tar.gz 14953478 BLAKE2B fd4155ec749bd9a705e8114ff7f8cc321182c9286733ff2f665e265ec0af830f9e70c730b8d0215f6db1f73a8e2f878d22932a72c8dbfe921591be7adcdaab00 SHA512 4ddd9e2d30719f931cadd1a4de5700736f641f4b074378d9ea1462a90b81975ce8e8c3ca2e3a1e15ac0288824eef5b0f0a3e31482f7637c450c6d7e52c8f40d2
|
||||||
DIST vim-8.2.3428.tar.gz 15715383 BLAKE2B 865842bae0de25c34f255085f6edfe35b6905e220bdcb76372d7289ef1f6c2b2dee2f88e4a5f849d43fa560db4ade1e8e498d86f5651c5218d9153cde5ecddd3 SHA512 7cb473afa0ad6a9728dfc2f7d8ca19a21de329c4790141c7cb815b71c07e92a1ce04a5fcc2a0381c4beb304670d6c08629dc2ed2cb0842998cca2fd846c8cd6b
|
DIST vim-8.2.3428.tar.gz 15715383 BLAKE2B 865842bae0de25c34f255085f6edfe35b6905e220bdcb76372d7289ef1f6c2b2dee2f88e4a5f849d43fa560db4ade1e8e498d86f5651c5218d9153cde5ecddd3 SHA512 7cb473afa0ad6a9728dfc2f7d8ca19a21de329c4790141c7cb815b71c07e92a1ce04a5fcc2a0381c4beb304670d6c08629dc2ed2cb0842998cca2fd846c8cd6b
|
||||||
|
DIST vim-8.2.3567.tar.gz 15771981 BLAKE2B 5a10ce998769b73a9c3b30fccb84e90eef8242d04e52b1cf475af777233ac774a6e5ec8c2aa09cadfe2db747b485fcc26d1d953017df4bb459d8a427715a3048 SHA512 f1b5debc77d5392966d168974eab7faae99082509a8148ea212e8e06ae980d9a2652ac77547d77d10953119527f68c633440cf813bb6dec8e259b7628af93af6
|
||||||
|
DIST vim-8.2.3582.tar.gz 15778667 BLAKE2B c8eaa95fa4fde6514168a9f42a712a78442a7fe504b59158e2e7717b8025a59cb4d8948451d72418b29f2b7cf3619cd765ef43e1304d73f81a6cba405f9706e7 SHA512 f476f24390807b71a0e02729f1815b3743b6b42cdd28a414e9ceaf0aa3fd4cab91e3550a669b1c64b4cd83207515cfe2b4acf2358a6def60e216e101c979037e
|
||||||
|
@ -191,6 +191,9 @@ src_install() {
|
|||||||
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
||||||
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
||||||
|
|
||||||
|
# Delete defaults.vim to avoid conflicts with one from vim[minimal]
|
||||||
|
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"
|
||||||
|
|
||||||
local keep_colors="default"
|
local keep_colors="default"
|
||||||
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
||||||
|
|
||||||
@ -199,6 +202,9 @@ src_install() {
|
|||||||
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
||||||
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
||||||
|
|
||||||
|
# Delete skip_defaults_vim config not supported by vim[minimal]
|
||||||
|
sed -i '/skip_defaults_vim/d' "${ED}"/etc/vim/vimrc || die "sed failed"
|
||||||
|
|
||||||
eshopts_pop
|
eshopts_pop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
|
# Please bump with app-editors/vim and app-editors/gvim
|
||||||
|
|
||||||
VIM_VERSION="8.2"
|
VIM_VERSION="8.2"
|
||||||
inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop xdg-utils
|
inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop xdg-utils
|
||||||
|
|
||||||
@ -12,25 +15,24 @@ if [[ ${PV} == 9999* ]] ; then
|
|||||||
else
|
else
|
||||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||||
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
fi
|
fi
|
||||||
|
S="${WORKDIR}"/vim-${PV}
|
||||||
|
|
||||||
DESCRIPTION="vim and gvim shared files"
|
DESCRIPTION="vim and gvim shared files"
|
||||||
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
LICENSE="vim"
|
LICENSE="vim"
|
||||||
|
SLOT="0"
|
||||||
IUSE="nls acl minimal"
|
IUSE="nls acl minimal"
|
||||||
|
|
||||||
DEPEND="sys-devel/autoconf"
|
BDEPEND="sys-devel/autoconf"
|
||||||
# avoid icon file collision bug #673880
|
# Avoid icon file collision, bug #673880
|
||||||
RDEPEND="!!<app-editors/gvim-8.1.0648"
|
RDEPEND="!!<app-editors/gvim-8.1.0648"
|
||||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||||
|
|
||||||
S=${WORKDIR}/vim-${PV}
|
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
# people with broken alphabets run into trouble. bug 82186.
|
# people with broken alphabets run into trouble. bug #82186.
|
||||||
unset LANG LC_ALL
|
unset LANG LC_ALL
|
||||||
export LC_COLLATE="C"
|
export LC_COLLATE="C"
|
||||||
|
|
||||||
@ -50,7 +52,7 @@ src_prepare() {
|
|||||||
-e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
-e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||||
"${S}"/runtime/tools/mve.awk || die "sed failed"
|
"${S}"/runtime/tools/mve.awk || die "sed failed"
|
||||||
|
|
||||||
# See #77841. We remove this file after the tarball extraction.
|
# See bug #77841. We remove this file after the tarball extraction.
|
||||||
rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed"
|
rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed"
|
||||||
|
|
||||||
# Read vimrc and gvimrc from /etc/vim
|
# Read vimrc and gvimrc from /etc/vim
|
||||||
@ -191,6 +193,9 @@ src_install() {
|
|||||||
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
||||||
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
||||||
|
|
||||||
|
# Delete defaults.vim to avoid conflicts with one from vim[minimal]
|
||||||
|
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"
|
||||||
|
|
||||||
local keep_colors="default"
|
local keep_colors="default"
|
||||||
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
||||||
|
|
||||||
@ -199,6 +204,9 @@ src_install() {
|
|||||||
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
||||||
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
||||||
|
|
||||||
|
# Delete skip_defaults_vim config not supported by vim[minimal]
|
||||||
|
sed -i '/skip_defaults_vim/d' "${ED}"/etc/vim/vimrc || die "sed failed"
|
||||||
|
|
||||||
eshopts_pop
|
eshopts_pop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
233
sdk_container/src/third_party/portage-stable/app-editors/vim-core/vim-core-8.2.3567.ebuild
vendored
Normal file
233
sdk_container/src/third_party/portage-stable/app-editors/vim-core/vim-core-8.2.3567.ebuild
vendored
Normal file
@ -0,0 +1,233 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Please bump with app-editors/vim and app-editors/gvim
|
||||||
|
|
||||||
|
VIM_VERSION="8.2"
|
||||||
|
inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop xdg-utils
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||||
|
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||||
|
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}"/vim-${PV}
|
||||||
|
|
||||||
|
DESCRIPTION="vim and gvim shared files"
|
||||||
|
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||||
|
|
||||||
|
LICENSE="vim"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="nls acl minimal"
|
||||||
|
|
||||||
|
BDEPEND="sys-devel/autoconf"
|
||||||
|
# Avoid icon file collision, bug #673880
|
||||||
|
RDEPEND="!!<app-editors/gvim-8.1.0648"
|
||||||
|
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# people with broken alphabets run into trouble. bug #82186.
|
||||||
|
unset LANG LC_ALL
|
||||||
|
export LC_COLLATE="C"
|
||||||
|
|
||||||
|
# Gnome sandbox silliness. bug #114475.
|
||||||
|
mkdir -p "${T}"/home || die "mkdir -p failed"
|
||||||
|
export HOME="${T}"/home
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ ${PV} != 9999* ]] ; then
|
||||||
|
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||||
|
eapply "${WORKDIR}"/patches
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fixup a script to use awk instead of nawk
|
||||||
|
sed -i \
|
||||||
|
-e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||||
|
"${S}"/runtime/tools/mve.awk || die "sed failed"
|
||||||
|
|
||||||
|
# See bug #77841. We remove this file after the tarball extraction.
|
||||||
|
rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed"
|
||||||
|
|
||||||
|
# Read vimrc and gvimrc from /etc/vim
|
||||||
|
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
|
||||||
|
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
|
||||||
|
|
||||||
|
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||||
|
# Hopefully this pattern won't break for a while at least.
|
||||||
|
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||||
|
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||||
|
"${S}"/runtime/doc/syntax.txt \
|
||||||
|
"${S}"/runtime/doc/tagsrch.txt \
|
||||||
|
"${S}"/runtime/doc/usr_29.txt \
|
||||||
|
"${S}"/runtime/menu.vim \
|
||||||
|
"${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||||
|
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||||
|
# This fixes bug #43885 (20 Mar 2004 agriffis)
|
||||||
|
sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||||
|
# correctly. To avoid some really entertaining error messages about stuff
|
||||||
|
# which isn't even in the source file being invalid, we'll do some trickery
|
||||||
|
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||||
|
find "${S}" -name '*.c' | while read c; do
|
||||||
|
echo >> "$c" || die "echo failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Try to avoid sandbox problems. Bug #114475.
|
||||||
|
if [[ -d "${S}"/src/po ]]; then
|
||||||
|
sed -i -e \
|
||||||
|
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||||
|
"${S}"/src/po/Makefile || die "sed failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||||
|
|
||||||
|
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
|
||||||
|
sed -i -e \
|
||||||
|
"s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||||
|
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||||
|
# Bug 57859 suggests that we want to do this for all archs
|
||||||
|
filter-flags -funroll-all-loops
|
||||||
|
|
||||||
|
# Fix bug #76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||||
|
# everyone since previous flag filtering bugs have turned out to affect
|
||||||
|
# multiple archs...
|
||||||
|
replace-flags -O3 -O2
|
||||||
|
|
||||||
|
# Fix bug #18245: Prevent "make" from the following chain:
|
||||||
|
# (1) Notice configure.ac is newer than auto/configure
|
||||||
|
# (2) Rebuild auto/configure
|
||||||
|
# (3) Notice auto/configure is newer than auto/config.mk
|
||||||
|
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||||
|
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||||
|
|
||||||
|
# Remove src/auto/configure file.
|
||||||
|
rm -v src/auto/configure || die "rm configure failed"
|
||||||
|
|
||||||
|
emake -j1 -C src autoconf
|
||||||
|
|
||||||
|
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||||
|
# things are for ppc64, see bug 86433.
|
||||||
|
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||||
|
if [[ -e "${file}" ]]; then
|
||||||
|
addwrite ${file}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Let Portage do the stripping. Some people like that.
|
||||||
|
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||||
|
|
||||||
|
# Keep Gentoo Prefix env contained within the EPREFIX
|
||||||
|
use prefix && myconf+=" --without-local-dir"
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--with-modified-by=Gentoo-${PVR} \
|
||||||
|
--enable-gui=no \
|
||||||
|
--without-x \
|
||||||
|
--disable-darwin \
|
||||||
|
--disable-perlinterp \
|
||||||
|
--disable-pythoninterp \
|
||||||
|
--disable-rubyinterp \
|
||||||
|
--disable-gpm \
|
||||||
|
--disable-selinux \
|
||||||
|
$(use_enable nls) \
|
||||||
|
$(use_enable acl) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -j1 -C src auto/osdef.h objects
|
||||||
|
emake tools
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||||
|
|
||||||
|
dodir /usr/{bin,share/{man/man1,vim}}
|
||||||
|
emake -C src \
|
||||||
|
installruntime \
|
||||||
|
installmanlinks \
|
||||||
|
installmacros \
|
||||||
|
installtutor \
|
||||||
|
installtutorbin \
|
||||||
|
installtools \
|
||||||
|
install-languages \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
BINDIR="${EPREFIX}"/usr/bin \
|
||||||
|
MANDIR="${EPREFIX}"/usr/share/man \
|
||||||
|
DATADIR="${EPREFIX}"/usr/share
|
||||||
|
|
||||||
|
keepdir ${vimfiles}/keymap
|
||||||
|
|
||||||
|
# default vimrc is installed by vim-core since it applies to
|
||||||
|
# both vim and gvim
|
||||||
|
insinto /etc/vim/
|
||||||
|
newins "${FILESDIR}"/vimrc-r5 vimrc
|
||||||
|
eprefixify "${ED}"/etc/vim/vimrc
|
||||||
|
|
||||||
|
if use minimal; then
|
||||||
|
# To save space, install only a subset of the files.
|
||||||
|
# Helps minimalize the livecd, bug 65144.
|
||||||
|
eshopts_push -s extglob
|
||||||
|
|
||||||
|
rm -rv "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent} || die "rm failed"
|
||||||
|
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
||||||
|
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
||||||
|
|
||||||
|
# Delete defaults.vim to avoid conflicts with one from vim[minimal]
|
||||||
|
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"
|
||||||
|
|
||||||
|
local keep_colors="default"
|
||||||
|
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
||||||
|
|
||||||
|
local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
|
||||||
|
# tinkering with the next line might make bad things happen ...
|
||||||
|
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
||||||
|
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
||||||
|
|
||||||
|
# Delete skip_defaults_vim config not supported by vim[minimal]
|
||||||
|
sed -i '/skip_defaults_vim/d' "${ED}"/etc/vim/vimrc || die "sed failed"
|
||||||
|
|
||||||
|
eshopts_pop
|
||||||
|
fi
|
||||||
|
|
||||||
|
newbashcomp "${FILESDIR}"/xxd-completion xxd
|
||||||
|
|
||||||
|
# install gvim icon since both vim/gvim desktop files reference it
|
||||||
|
doicon -s scalable "${FILESDIR}"/gvim.svg
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# update icon cache
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
# Update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# update icon cache
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
233
sdk_container/src/third_party/portage-stable/app-editors/vim-core/vim-core-8.2.3582.ebuild
vendored
Normal file
233
sdk_container/src/third_party/portage-stable/app-editors/vim-core/vim-core-8.2.3582.ebuild
vendored
Normal file
@ -0,0 +1,233 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Please bump with app-editors/vim and app-editors/gvim
|
||||||
|
|
||||||
|
VIM_VERSION="8.2"
|
||||||
|
inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop xdg-utils
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||||
|
EGIT_CHECKOUT_DIR=${WORKDIR}/vim-${PV}
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> vim-${PV}.tar.gz
|
||||||
|
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
fi
|
||||||
|
S="${WORKDIR}"/vim-${PV}
|
||||||
|
|
||||||
|
DESCRIPTION="vim and gvim shared files"
|
||||||
|
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||||
|
|
||||||
|
LICENSE="vim"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="nls acl minimal"
|
||||||
|
|
||||||
|
BDEPEND="sys-devel/autoconf"
|
||||||
|
# Avoid icon file collision, bug #673880
|
||||||
|
RDEPEND="!!<app-editors/gvim-8.1.0648"
|
||||||
|
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# people with broken alphabets run into trouble. bug #82186.
|
||||||
|
unset LANG LC_ALL
|
||||||
|
export LC_COLLATE="C"
|
||||||
|
|
||||||
|
# Gnome sandbox silliness. bug #114475.
|
||||||
|
mkdir -p "${T}"/home || die "mkdir -p failed"
|
||||||
|
export HOME="${T}"/home
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ ${PV} != 9999* ]] ; then
|
||||||
|
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||||
|
eapply "${WORKDIR}"/patches
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fixup a script to use awk instead of nawk
|
||||||
|
sed -i \
|
||||||
|
-e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||||
|
"${S}"/runtime/tools/mve.awk || die "sed failed"
|
||||||
|
|
||||||
|
# See bug #77841. We remove this file after the tarball extraction.
|
||||||
|
rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed"
|
||||||
|
|
||||||
|
# Read vimrc and gvimrc from /etc/vim
|
||||||
|
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' >> "${S}"/src/feature.h
|
||||||
|
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' >> "${S}"/src/feature.h
|
||||||
|
|
||||||
|
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||||
|
# Hopefully this pattern won't break for a while at least.
|
||||||
|
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||||
|
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||||
|
"${S}"/runtime/doc/syntax.txt \
|
||||||
|
"${S}"/runtime/doc/tagsrch.txt \
|
||||||
|
"${S}"/runtime/doc/usr_29.txt \
|
||||||
|
"${S}"/runtime/menu.vim \
|
||||||
|
"${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||||
|
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||||
|
# This fixes bug #43885 (20 Mar 2004 agriffis)
|
||||||
|
sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||||
|
# correctly. To avoid some really entertaining error messages about stuff
|
||||||
|
# which isn't even in the source file being invalid, we'll do some trickery
|
||||||
|
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||||
|
find "${S}" -name '*.c' | while read c; do
|
||||||
|
echo >> "$c" || die "echo failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Try to avoid sandbox problems. Bug #114475.
|
||||||
|
if [[ -d "${S}"/src/po ]]; then
|
||||||
|
sed -i -e \
|
||||||
|
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||||
|
"${S}"/src/po/Makefile || die "sed failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||||
|
|
||||||
|
# Bug #378107 - Build properly with >=perl-core/ExtUtils-ParseXS-3.20.0
|
||||||
|
sed -i -e \
|
||||||
|
"s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||||
|
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf
|
||||||
|
|
||||||
|
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||||
|
# Bug 57859 suggests that we want to do this for all archs
|
||||||
|
filter-flags -funroll-all-loops
|
||||||
|
|
||||||
|
# Fix bug #76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||||
|
# everyone since previous flag filtering bugs have turned out to affect
|
||||||
|
# multiple archs...
|
||||||
|
replace-flags -O3 -O2
|
||||||
|
|
||||||
|
# Fix bug #18245: Prevent "make" from the following chain:
|
||||||
|
# (1) Notice configure.ac is newer than auto/configure
|
||||||
|
# (2) Rebuild auto/configure
|
||||||
|
# (3) Notice auto/configure is newer than auto/config.mk
|
||||||
|
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||||
|
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||||
|
|
||||||
|
# Remove src/auto/configure file.
|
||||||
|
rm -v src/auto/configure || die "rm configure failed"
|
||||||
|
|
||||||
|
emake -j1 -C src autoconf
|
||||||
|
|
||||||
|
# This should fix a sandbox violation (see bug 24447). The hvc
|
||||||
|
# things are for ppc64, see bug 86433.
|
||||||
|
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||||
|
if [[ -e "${file}" ]]; then
|
||||||
|
addwrite ${file}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Let Portage do the stripping. Some people like that.
|
||||||
|
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||||
|
|
||||||
|
# Keep Gentoo Prefix env contained within the EPREFIX
|
||||||
|
use prefix && myconf+=" --without-local-dir"
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--with-modified-by=Gentoo-${PVR} \
|
||||||
|
--enable-gui=no \
|
||||||
|
--without-x \
|
||||||
|
--disable-darwin \
|
||||||
|
--disable-perlinterp \
|
||||||
|
--disable-pythoninterp \
|
||||||
|
--disable-rubyinterp \
|
||||||
|
--disable-gpm \
|
||||||
|
--disable-selinux \
|
||||||
|
$(use_enable nls) \
|
||||||
|
$(use_enable acl) \
|
||||||
|
${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -j1 -C src auto/osdef.h objects
|
||||||
|
emake tools
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||||
|
|
||||||
|
dodir /usr/{bin,share/{man/man1,vim}}
|
||||||
|
emake -C src \
|
||||||
|
installruntime \
|
||||||
|
installmanlinks \
|
||||||
|
installmacros \
|
||||||
|
installtutor \
|
||||||
|
installtutorbin \
|
||||||
|
installtools \
|
||||||
|
install-languages \
|
||||||
|
DESTDIR="${D}" \
|
||||||
|
BINDIR="${EPREFIX}"/usr/bin \
|
||||||
|
MANDIR="${EPREFIX}"/usr/share/man \
|
||||||
|
DATADIR="${EPREFIX}"/usr/share
|
||||||
|
|
||||||
|
keepdir ${vimfiles}/keymap
|
||||||
|
|
||||||
|
# default vimrc is installed by vim-core since it applies to
|
||||||
|
# both vim and gvim
|
||||||
|
insinto /etc/vim/
|
||||||
|
newins "${FILESDIR}"/vimrc-r5 vimrc
|
||||||
|
eprefixify "${ED}"/etc/vim/vimrc
|
||||||
|
|
||||||
|
if use minimal; then
|
||||||
|
# To save space, install only a subset of the files.
|
||||||
|
# Helps minimalize the livecd, bug 65144.
|
||||||
|
eshopts_push -s extglob
|
||||||
|
|
||||||
|
rm -rv "${ED}${vimfiles}"/{compiler,doc,ftplugin,indent} || die "rm failed"
|
||||||
|
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
||||||
|
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
||||||
|
|
||||||
|
# Delete defaults.vim to avoid conflicts with one from vim[minimal]
|
||||||
|
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"
|
||||||
|
|
||||||
|
local keep_colors="default"
|
||||||
|
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
||||||
|
|
||||||
|
local keep_syntax="conf|crontab|fstab|inittab|resolv|sshdconfig"
|
||||||
|
# tinkering with the next line might make bad things happen ...
|
||||||
|
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
||||||
|
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
||||||
|
|
||||||
|
# Delete skip_defaults_vim config not supported by vim[minimal]
|
||||||
|
sed -i '/skip_defaults_vim/d' "${ED}"/etc/vim/vimrc || die "sed failed"
|
||||||
|
|
||||||
|
eshopts_pop
|
||||||
|
fi
|
||||||
|
|
||||||
|
newbashcomp "${FILESDIR}"/xxd-completion xxd
|
||||||
|
|
||||||
|
# install gvim icon since both vim/gvim desktop files reference it
|
||||||
|
doicon -s scalable "${FILESDIR}"/gvim.svg
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# update icon cache
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
# Update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# update icon cache
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
@ -2,6 +2,9 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
|
# Please bump with app-editors/vim and app-editors/gvim
|
||||||
|
|
||||||
VIM_VERSION="8.2"
|
VIM_VERSION="8.2"
|
||||||
inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop xdg-utils
|
inherit estack vim-doc flag-o-matic bash-completion-r1 prefix desktop xdg-utils
|
||||||
|
|
||||||
@ -14,23 +17,22 @@ else
|
|||||||
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
fi
|
fi
|
||||||
|
S="${WORKDIR}"/vim-${PV}
|
||||||
|
|
||||||
DESCRIPTION="vim and gvim shared files"
|
DESCRIPTION="vim and gvim shared files"
|
||||||
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
LICENSE="vim"
|
LICENSE="vim"
|
||||||
|
SLOT="0"
|
||||||
IUSE="nls acl minimal"
|
IUSE="nls acl minimal"
|
||||||
|
|
||||||
DEPEND="sys-devel/autoconf"
|
BDEPEND="sys-devel/autoconf"
|
||||||
# avoid icon file collision bug #673880
|
# Avoid icon file collision, bug #673880
|
||||||
RDEPEND="!!<app-editors/gvim-8.1.0648"
|
RDEPEND="!!<app-editors/gvim-8.1.0648"
|
||||||
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
PDEPEND="!minimal? ( app-vim/gentoo-syntax )"
|
||||||
|
|
||||||
S=${WORKDIR}/vim-${PV}
|
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
# people with broken alphabets run into trouble. bug 82186.
|
# people with broken alphabets run into trouble. bug #82186.
|
||||||
unset LANG LC_ALL
|
unset LANG LC_ALL
|
||||||
export LC_COLLATE="C"
|
export LC_COLLATE="C"
|
||||||
|
|
||||||
@ -50,7 +52,7 @@ src_prepare() {
|
|||||||
-e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
-e '1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||||
"${S}"/runtime/tools/mve.awk || die "sed failed"
|
"${S}"/runtime/tools/mve.awk || die "sed failed"
|
||||||
|
|
||||||
# See #77841. We remove this file after the tarball extraction.
|
# See bug #77841. We remove this file after the tarball extraction.
|
||||||
rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed"
|
rm -v "${S}"/runtime/tools/vimspell.sh || die "rm failed"
|
||||||
|
|
||||||
# Read vimrc and gvimrc from /etc/vim
|
# Read vimrc and gvimrc from /etc/vim
|
||||||
@ -59,7 +61,7 @@ src_prepare() {
|
|||||||
|
|
||||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||||
# Hopefully this pattern won't break for a while at least.
|
# Hopefully this pattern won't break for a while at least.
|
||||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||||
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
sed -i 's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||||
"${S}"/runtime/doc/syntax.txt \
|
"${S}"/runtime/doc/syntax.txt \
|
||||||
"${S}"/runtime/doc/tagsrch.txt \
|
"${S}"/runtime/doc/tagsrch.txt \
|
||||||
@ -69,7 +71,7 @@ src_prepare() {
|
|||||||
|
|
||||||
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||||
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||||
# This fixes bug 43885 (20 Mar 2004 agriffis)
|
# This fixes bug #43885 (20 Mar 2004 agriffis)
|
||||||
sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
sed -i 's/ libc\.h / /' "${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||||
@ -100,16 +102,16 @@ src_prepare() {
|
|||||||
src_configure() {
|
src_configure() {
|
||||||
local myconf
|
local myconf
|
||||||
|
|
||||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||||
# Bug 57859 suggests that we want to do this for all archs
|
# Bug 57859 suggests that we want to do this for all archs
|
||||||
filter-flags -funroll-all-loops
|
filter-flags -funroll-all-loops
|
||||||
|
|
||||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
# Fix bug #76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||||
# everyone since previous flag filtering bugs have turned out to affect
|
# everyone since previous flag filtering bugs have turned out to affect
|
||||||
# multiple archs...
|
# multiple archs...
|
||||||
replace-flags -O3 -O2
|
replace-flags -O3 -O2
|
||||||
|
|
||||||
# Fix bug 18245: Prevent "make" from the following chain:
|
# Fix bug #18245: Prevent "make" from the following chain:
|
||||||
# (1) Notice configure.ac is newer than auto/configure
|
# (1) Notice configure.ac is newer than auto/configure
|
||||||
# (2) Rebuild auto/configure
|
# (2) Rebuild auto/configure
|
||||||
# (3) Notice auto/configure is newer than auto/config.mk
|
# (3) Notice auto/configure is newer than auto/config.mk
|
||||||
@ -125,7 +127,7 @@ src_configure() {
|
|||||||
# things are for ppc64, see bug 86433.
|
# things are for ppc64, see bug 86433.
|
||||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||||
if [[ -e "${file}" ]]; then
|
if [[ -e "${file}" ]]; then
|
||||||
addwrite $file
|
addwrite ${file}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -191,6 +193,9 @@ src_install() {
|
|||||||
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
rm -rv "${ED}${vimfiles}"/{macros,print,tools,tutor} || die "rm failed"
|
||||||
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
rm -v "${ED}"/usr/bin/vimtutor || die "rm failed"
|
||||||
|
|
||||||
|
# Delete defaults.vim to avoid conflicts with one from vim[minimal]
|
||||||
|
rm -v "${ED}${vimfiles}"/defaults.vim || die "rm failed"
|
||||||
|
|
||||||
local keep_colors="default"
|
local keep_colors="default"
|
||||||
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
ignore=$(rm -fr "${ED}${vimfiles}"/colors/!(${keep_colors}).vim )
|
||||||
|
|
||||||
@ -199,6 +204,9 @@ src_install() {
|
|||||||
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
keep_syntax="${keep_syntax}|syntax|nosyntax|synload"
|
||||||
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
ignore=$(rm -fr "${ED}${vimfiles}"/syntax/!(${keep_syntax}).vim )
|
||||||
|
|
||||||
|
# Delete skip_defaults_vim config not supported by vim[minimal]
|
||||||
|
sed -i '/skip_defaults_vim/d' "${ED}"/etc/vim/vimrc || die "sed failed"
|
||||||
|
|
||||||
eshopts_pop
|
eshopts_pop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
DIST vim-8.2.0360-gentoo-patches.tar.xz 2612 BLAKE2B a9273a686b31dd873b25bfc07f7bc254f11038bde275ae4e6f56513a14e0268fdc1032ae847d1d7f8539f8a657217011770ccb4685998f34722383ec7bfb1a15 SHA512 00bc8eb8b20a4a6f3bbd179bb90d42fa6727c8eaae5b625e95e52c33638d456ef36d06b51c542ecaffb237c0b4f7aa72dc3bae7fe00144d55ab0d2fa51950f3b
|
DIST vim-8.2.0360-gentoo-patches.tar.xz 2612 BLAKE2B a9273a686b31dd873b25bfc07f7bc254f11038bde275ae4e6f56513a14e0268fdc1032ae847d1d7f8539f8a657217011770ccb4685998f34722383ec7bfb1a15 SHA512 00bc8eb8b20a4a6f3bbd179bb90d42fa6727c8eaae5b625e95e52c33638d456ef36d06b51c542ecaffb237c0b4f7aa72dc3bae7fe00144d55ab0d2fa51950f3b
|
||||||
DIST vim-8.2.0814.tar.gz 14953478 BLAKE2B fd4155ec749bd9a705e8114ff7f8cc321182c9286733ff2f665e265ec0af830f9e70c730b8d0215f6db1f73a8e2f878d22932a72c8dbfe921591be7adcdaab00 SHA512 4ddd9e2d30719f931cadd1a4de5700736f641f4b074378d9ea1462a90b81975ce8e8c3ca2e3a1e15ac0288824eef5b0f0a3e31482f7637c450c6d7e52c8f40d2
|
DIST vim-8.2.0814.tar.gz 14953478 BLAKE2B fd4155ec749bd9a705e8114ff7f8cc321182c9286733ff2f665e265ec0af830f9e70c730b8d0215f6db1f73a8e2f878d22932a72c8dbfe921591be7adcdaab00 SHA512 4ddd9e2d30719f931cadd1a4de5700736f641f4b074378d9ea1462a90b81975ce8e8c3ca2e3a1e15ac0288824eef5b0f0a3e31482f7637c450c6d7e52c8f40d2
|
||||||
DIST vim-8.2.3428.tar.gz 15715383 BLAKE2B 865842bae0de25c34f255085f6edfe35b6905e220bdcb76372d7289ef1f6c2b2dee2f88e4a5f849d43fa560db4ade1e8e498d86f5651c5218d9153cde5ecddd3 SHA512 7cb473afa0ad6a9728dfc2f7d8ca19a21de329c4790141c7cb815b71c07e92a1ce04a5fcc2a0381c4beb304670d6c08629dc2ed2cb0842998cca2fd846c8cd6b
|
DIST vim-8.2.3428.tar.gz 15715383 BLAKE2B 865842bae0de25c34f255085f6edfe35b6905e220bdcb76372d7289ef1f6c2b2dee2f88e4a5f849d43fa560db4ade1e8e498d86f5651c5218d9153cde5ecddd3 SHA512 7cb473afa0ad6a9728dfc2f7d8ca19a21de329c4790141c7cb815b71c07e92a1ce04a5fcc2a0381c4beb304670d6c08629dc2ed2cb0842998cca2fd846c8cd6b
|
||||||
|
DIST vim-8.2.3567.tar.gz 15771981 BLAKE2B 5a10ce998769b73a9c3b30fccb84e90eef8242d04e52b1cf475af777233ac774a6e5ec8c2aa09cadfe2db747b485fcc26d1d953017df4bb459d8a427715a3048 SHA512 f1b5debc77d5392966d168974eab7faae99082509a8148ea212e8e06ae980d9a2652ac77547d77d10953119527f68c633440cf813bb6dec8e259b7628af93af6
|
||||||
|
DIST vim-8.2.3582.tar.gz 15778667 BLAKE2B c8eaa95fa4fde6514168a9f42a712a78442a7fe504b59158e2e7717b8025a59cb4d8948451d72418b29f2b7cf3619cd765ef43e1304d73f81a6cba405f9706e7 SHA512 f476f24390807b71a0e02729f1815b3743b6b42cdd28a414e9ceaf0aa3fd4cab91e3550a669b1c64b4cd83207515cfe2b4acf2358a6def60e216e101c979037e
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<name>Gentoo Vim Project</name>
|
<name>Gentoo Vim Project</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<use>
|
<use>
|
||||||
|
<flag name="crypt">Use <pkg>dev-libs/libsodium</pkg> for crypto support</flag>
|
||||||
<flag name="cscope">Enable cscope interface</flag>
|
<flag name="cscope">Enable cscope interface</flag>
|
||||||
<flag name="ipv6">Enable IPv6 support in channel</flag>
|
<flag name="ipv6">Enable IPv6 support in channel</flag>
|
||||||
<flag name="racket">Enable support for Scheme using <pkg>dev-scheme/racket</pkg></flag>
|
<flag name="racket">Enable support for Scheme using <pkg>dev-scheme/racket</pkg></flag>
|
||||||
|
@ -304,6 +304,12 @@ src_install() {
|
|||||||
fperms a+x ${vimfiles}/macros/manpager.sh
|
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fix an issue of missing defaults.vim when USE=minimal.
|
||||||
|
if use minimal ; then
|
||||||
|
insinto ${vimfiles}
|
||||||
|
doins runtime/defaults.vim
|
||||||
|
fi
|
||||||
|
|
||||||
domenu runtime/vim.desktop
|
domenu runtime/vim.desktop
|
||||||
|
|
||||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||||
|
@ -16,7 +16,7 @@ if [[ ${PV} == 9999* ]] ; then
|
|||||||
else
|
else
|
||||||
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DESCRIPTION="Vim, an improved vi-style text editor"
|
DESCRIPTION="Vim, an improved vi-style text editor"
|
||||||
@ -24,7 +24,7 @@ HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
|||||||
|
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
LICENSE="vim"
|
LICENSE="vim"
|
||||||
IUSE="X acl cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
|
IUSE="X acl crypt cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
|
||||||
REQUIRED_USE="
|
REQUIRED_USE="
|
||||||
lua? ( ${LUA_REQUIRED_USE} )
|
lua? ( ${LUA_REQUIRED_USE} )
|
||||||
python? ( ${PYTHON_REQUIRED_USE} )
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
@ -36,6 +36,7 @@ RDEPEND="
|
|||||||
>=sys-libs/ncurses-5.2-r2:0=
|
>=sys-libs/ncurses-5.2-r2:0=
|
||||||
nls? ( virtual/libintl )
|
nls? ( virtual/libintl )
|
||||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||||
|
crypt? ( dev-libs/libsodium:= )
|
||||||
cscope? ( dev-util/cscope )
|
cscope? ( dev-util/cscope )
|
||||||
gpm? ( >=sys-libs/gpm-1.19.3 )
|
gpm? ( >=sys-libs/gpm-1.19.3 )
|
||||||
lua? ( ${LUA_DEPS}
|
lua? ( ${LUA_DEPS}
|
||||||
@ -200,6 +201,7 @@ src_configure() {
|
|||||||
--with-features=huge
|
--with-features=huge
|
||||||
$(use_enable sound canberra)
|
$(use_enable sound canberra)
|
||||||
$(use_enable acl)
|
$(use_enable acl)
|
||||||
|
$(use_enable crypt libsodium)
|
||||||
$(use_enable cscope)
|
$(use_enable cscope)
|
||||||
$(use_enable gpm)
|
$(use_enable gpm)
|
||||||
$(use_enable nls)
|
$(use_enable nls)
|
||||||
@ -268,6 +270,22 @@ src_test() {
|
|||||||
# Don't let vim talk to X
|
# Don't let vim talk to X
|
||||||
unset DISPLAY
|
unset DISPLAY
|
||||||
|
|
||||||
|
# See https://github.com/vim/vim/blob/f08b0eb8691ff09f98bc4beef986ece1c521655f/src/testdir/runtest.vim#L5
|
||||||
|
# for more information on test variables we can use.
|
||||||
|
# Note that certain variables need vim-compatible regex (not PCRE), see e.g.
|
||||||
|
# http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml.
|
||||||
|
#
|
||||||
|
# Skipped tests:
|
||||||
|
# - Test_expand_star_star
|
||||||
|
# Hangs because of a recursive symlink in /usr/include/nodejs (bug #616680)
|
||||||
|
# - Test_exrc
|
||||||
|
# Looks in wrong location? (bug #742710)
|
||||||
|
# - Test_job_tty_in_out
|
||||||
|
# Fragile and depends on TERM(?)
|
||||||
|
# - Test_spelldump_bang
|
||||||
|
# Hangs.
|
||||||
|
export TEST_SKIP_PAT='\(Test_expand_star_star\|Test_exrc\|Test_job_tty_in_out\|Test_spelldump_bang\)'
|
||||||
|
|
||||||
emake -j1 -C src/testdir nongui
|
emake -j1 -C src/testdir nongui
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -298,6 +316,12 @@ src_install() {
|
|||||||
fperms a+x ${vimfiles}/macros/manpager.sh
|
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fix an issue of missing defaults.vim when USE=minimal.
|
||||||
|
if use minimal ; then
|
||||||
|
insinto ${vimfiles}
|
||||||
|
doins runtime/defaults.vim
|
||||||
|
fi
|
||||||
|
|
||||||
domenu runtime/vim.desktop
|
domenu runtime/vim.desktop
|
||||||
|
|
||||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
355
sdk_container/src/third_party/portage-stable/app-editors/vim/vim-8.2.3567.ebuild
vendored
Normal file
355
sdk_container/src/third_party/portage-stable/app-editors/vim/vim-8.2.3567.ebuild
vendored
Normal file
@ -0,0 +1,355 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Please bump with app-editors/vim-core and app-editors/gvim
|
||||||
|
|
||||||
|
VIM_VERSION="8.2"
|
||||||
|
LUA_COMPAT=( lua5-1 luajit )
|
||||||
|
PYTHON_COMPAT=( python3_{7..10} )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
|
||||||
|
|
||||||
|
inherit vim-doc flag-o-matic bash-completion-r1 lua-single python-single-r1 ruby-single desktop xdg-utils
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Vim, an improved vi-style text editor"
|
||||||
|
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||||
|
|
||||||
|
LICENSE="vim"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="X acl crypt cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
|
||||||
|
REQUIRED_USE="
|
||||||
|
lua? ( ${LUA_REQUIRED_USE} )
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
|
vim-pager? ( !minimal )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=app-eselect/eselect-vi-1.1
|
||||||
|
>=sys-libs/ncurses-5.2-r2:0=
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||||
|
crypt? ( dev-libs/libsodium:= )
|
||||||
|
cscope? ( dev-util/cscope )
|
||||||
|
gpm? ( >=sys-libs/gpm-1.19.3 )
|
||||||
|
lua? ( ${LUA_DEPS}
|
||||||
|
$(lua_gen_impl_dep 'deprecated' lua5-1)
|
||||||
|
)
|
||||||
|
!minimal? ( ~app-editors/vim-core-${PV} )
|
||||||
|
vim-pager? ( app-editors/vim-core[-minimal] )
|
||||||
|
perl? ( dev-lang/perl:= )
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
racket? ( dev-scheme/racket )
|
||||||
|
ruby? ( ${RUBY_DEPS} )
|
||||||
|
selinux? ( sys-libs/libselinux )
|
||||||
|
sound? ( media-libs/libcanberra )
|
||||||
|
tcl? ( dev-lang/tcl:0= )
|
||||||
|
X? ( x11-libs/libXt )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
# configure runs the Lua interpreter
|
||||||
|
BDEPEND="
|
||||||
|
sys-devel/autoconf
|
||||||
|
lua? ( ${LUA_DEPS} )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# people with broken alphabets run into trouble. bug #82186.
|
||||||
|
unset LANG LC_ALL
|
||||||
|
export LC_COLLATE="C"
|
||||||
|
|
||||||
|
# Gnome sandbox silliness. bug #114475.
|
||||||
|
mkdir -p "${T}"/home || die "mkdir failed"
|
||||||
|
export HOME="${T}"/home
|
||||||
|
|
||||||
|
use lua && lua-single_pkg_setup
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ ${PV} != 9999* ]] ; then
|
||||||
|
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||||
|
eapply "${WORKDIR}"/patches/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fixup a script to use awk instead of nawk
|
||||||
|
sed -i -e \
|
||||||
|
'1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||||
|
"${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
|
||||||
|
|
||||||
|
# Read vimrc and gvimrc from /etc/vim
|
||||||
|
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
|
||||||
|
>> "${S}"/src/feature.h || die "echo failed"
|
||||||
|
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
|
||||||
|
>> "${S}"/src/feature.h || die "echo failed"
|
||||||
|
|
||||||
|
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||||
|
# Hopefully this pattern won't break for a while at least.
|
||||||
|
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||||
|
sed -i -e \
|
||||||
|
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||||
|
"${S}"/runtime/doc/syntax.txt \
|
||||||
|
"${S}"/runtime/doc/tagsrch.txt \
|
||||||
|
"${S}"/runtime/doc/usr_29.txt \
|
||||||
|
"${S}"/runtime/menu.vim \
|
||||||
|
"${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||||
|
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||||
|
# This fixes bug #43885 (20 Mar 2004 agriffis)
|
||||||
|
sed -i -e \
|
||||||
|
's/ libc\.h / /' \
|
||||||
|
"${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||||
|
# correctly. To avoid some really entertaining error messages about stuff
|
||||||
|
# which isn't even in the source file being invalid, we'll do some trickery
|
||||||
|
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||||
|
find "${S}" -name '*.c' | while read c; do
|
||||||
|
echo >> "$c" || die "echo failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
# conditionally make the manpager.sh script
|
||||||
|
if use vim-pager; then
|
||||||
|
cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
|
||||||
|
#!/bin/sh
|
||||||
|
sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
|
||||||
|
vim \\
|
||||||
|
-c 'let no_plugin_maps = 1' \\
|
||||||
|
-c 'set nolist nomod ft=man ts=8' \\
|
||||||
|
-c 'let g:showmarks_enable=0' \\
|
||||||
|
-c 'runtime! macros/less.vim' -
|
||||||
|
_EOF_
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Try to avoid sandbox problems. Bug #114475.
|
||||||
|
if [[ -d "${S}"/src/po ]]; then
|
||||||
|
sed -i -e \
|
||||||
|
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||||
|
"${S}"/src/po/Makefile || die "sed failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||||
|
|
||||||
|
sed -i -e \
|
||||||
|
"s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||||
|
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=()
|
||||||
|
|
||||||
|
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||||
|
# Bug #57859 suggests that we want to do this for all archs
|
||||||
|
filter-flags -funroll-all-loops
|
||||||
|
|
||||||
|
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||||
|
# everyone since previous flag filtering bugs have turned out to affect
|
||||||
|
# multiple archs...
|
||||||
|
replace-flags -O3 -O2
|
||||||
|
|
||||||
|
# Fix bug 18245: Prevent "make" from the following chain:
|
||||||
|
# (1) Notice configure.ac is newer than auto/configure
|
||||||
|
# (2) Rebuild auto/configure
|
||||||
|
# (3) Notice auto/configure is newer than auto/config.mk
|
||||||
|
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||||
|
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||||
|
rm src/auto/configure || die "rm failed"
|
||||||
|
emake -j1 -C src autoconf
|
||||||
|
|
||||||
|
# This should fix a sandbox violation (see bug #24447). The hvc
|
||||||
|
# things are for ppc64, see bug #86433.
|
||||||
|
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||||
|
if [[ -e "${file}" ]]; then
|
||||||
|
addwrite ${file}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if use minimal; then
|
||||||
|
myconf=(
|
||||||
|
--with-features=tiny
|
||||||
|
--disable-nls
|
||||||
|
--disable-canberra
|
||||||
|
--disable-acl
|
||||||
|
--enable-gui=no
|
||||||
|
--without-x
|
||||||
|
--disable-darwin
|
||||||
|
--disable-luainterp
|
||||||
|
--disable-perlinterp
|
||||||
|
--disable-pythoninterp
|
||||||
|
--disable-mzschemeinterp
|
||||||
|
--disable-rubyinterp
|
||||||
|
--disable-selinux
|
||||||
|
--disable-tclinterp
|
||||||
|
--disable-gpm
|
||||||
|
)
|
||||||
|
else
|
||||||
|
use debug && append-flags "-DDEBUG"
|
||||||
|
|
||||||
|
myconf=(
|
||||||
|
--with-features=huge
|
||||||
|
$(use_enable sound canberra)
|
||||||
|
$(use_enable acl)
|
||||||
|
$(use_enable crypt libsodium)
|
||||||
|
$(use_enable cscope)
|
||||||
|
$(use_enable gpm)
|
||||||
|
$(use_enable nls)
|
||||||
|
$(use_enable perl perlinterp)
|
||||||
|
$(use_enable python python3interp)
|
||||||
|
$(use_with python python3-command "${PYTHON}")
|
||||||
|
$(use_enable racket mzschemeinterp)
|
||||||
|
$(use_enable ruby rubyinterp)
|
||||||
|
$(use_enable selinux)
|
||||||
|
$(use_enable tcl tclinterp)
|
||||||
|
$(use_enable terminal)
|
||||||
|
)
|
||||||
|
|
||||||
|
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||||
|
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||||
|
if ! use cscope; then
|
||||||
|
sed -i -e \
|
||||||
|
'/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lua; then
|
||||||
|
myconf+=(
|
||||||
|
--enable-luainterp
|
||||||
|
$(use_with lua_single_target_luajit luajit)
|
||||||
|
--with-lua-prefix="${EPREFIX}/usr"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# don't test USE=X here ... see bug #19115
|
||||||
|
# but need to provide a way to link against X ... see bug #20093
|
||||||
|
myconf+=(
|
||||||
|
--enable-gui=no
|
||||||
|
--disable-darwin
|
||||||
|
$(use_with X x)
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# let package manager strip binaries
|
||||||
|
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||||
|
|
||||||
|
# keep prefix env contained within the EPREFIX
|
||||||
|
use prefix && myconf+=( --without-local-dir )
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--with-modified-by=Gentoo-${PVR} \
|
||||||
|
"${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# The following allows emake to be used
|
||||||
|
emake -j1 -C src auto/osdef.h objects
|
||||||
|
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
einfo
|
||||||
|
einfo "Starting vim tests. Several error messages will be shown"
|
||||||
|
einfo "while the tests run. This is normal behaviour and does not"
|
||||||
|
einfo "indicate a fault."
|
||||||
|
einfo
|
||||||
|
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||||
|
ewarn "state. Usually, running 'reset' will fix this."
|
||||||
|
einfo
|
||||||
|
|
||||||
|
# Don't let vim talk to X
|
||||||
|
unset DISPLAY
|
||||||
|
|
||||||
|
# See https://github.com/vim/vim/blob/f08b0eb8691ff09f98bc4beef986ece1c521655f/src/testdir/runtest.vim#L5
|
||||||
|
# for more information on test variables we can use.
|
||||||
|
# Note that certain variables need vim-compatible regex (not PCRE), see e.g.
|
||||||
|
# http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml.
|
||||||
|
#
|
||||||
|
# Skipped tests:
|
||||||
|
# - Test_expand_star_star
|
||||||
|
# Hangs because of a recursive symlink in /usr/include/nodejs (bug #616680)
|
||||||
|
# - Test_exrc
|
||||||
|
# Looks in wrong location? (bug #742710)
|
||||||
|
# - Test_job_tty_in_out
|
||||||
|
# Fragile and depends on TERM(?)
|
||||||
|
# - Test_spelldump_bang
|
||||||
|
# Hangs.
|
||||||
|
export TEST_SKIP_PAT='\(Test_expand_star_star\|Test_exrc\|Test_job_tty_in_out\|Test_spelldump_bang\)'
|
||||||
|
|
||||||
|
emake -j1 -C src/testdir nongui
|
||||||
|
}
|
||||||
|
|
||||||
|
# Call eselect vi update with --if-unset
|
||||||
|
# to respect user's choice (bug #187449)
|
||||||
|
eselect_vi_update() {
|
||||||
|
einfo "Calling eselect vi update..."
|
||||||
|
eselect vi update --if-unset
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||||
|
|
||||||
|
# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
|
||||||
|
# managed by eselect-vi
|
||||||
|
dobin src/vim
|
||||||
|
if ! use minimal ; then
|
||||||
|
dosym vim /usr/bin/vimdiff
|
||||||
|
fi
|
||||||
|
dosym vim /usr/bin/rvim
|
||||||
|
dosym vim /usr/bin/rview
|
||||||
|
if use vim-pager ; then
|
||||||
|
dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
|
||||||
|
dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
|
||||||
|
insinto ${vimfiles}/macros
|
||||||
|
doins runtime/macros/manpager.sh
|
||||||
|
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix an issue of missing defaults.vim when USE=minimal.
|
||||||
|
if use minimal ; then
|
||||||
|
insinto ${vimfiles}
|
||||||
|
doins runtime/defaults.vim
|
||||||
|
fi
|
||||||
|
|
||||||
|
domenu runtime/vim.desktop
|
||||||
|
|
||||||
|
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||||
|
|
||||||
|
# keep in sync with 'complete ... -F' list
|
||||||
|
bashcomp_alias vim ex vi view rvim rview vimdiff
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# Update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# Call eselect vi update
|
||||||
|
eselect_vi_update
|
||||||
|
|
||||||
|
# update desktop file mime cache
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
# Update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# Call eselect vi update
|
||||||
|
eselect_vi_update
|
||||||
|
|
||||||
|
# update desktop file mime cache
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
355
sdk_container/src/third_party/portage-stable/app-editors/vim/vim-8.2.3582.ebuild
vendored
Normal file
355
sdk_container/src/third_party/portage-stable/app-editors/vim/vim-8.2.3582.ebuild
vendored
Normal file
@ -0,0 +1,355 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Please bump with app-editors/vim-core and app-editors/gvim
|
||||||
|
|
||||||
|
VIM_VERSION="8.2"
|
||||||
|
LUA_COMPAT=( lua5-1 luajit )
|
||||||
|
PYTHON_COMPAT=( python3_{7..10} )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
|
||||||
|
|
||||||
|
inherit vim-doc flag-o-matic bash-completion-r1 lua-single python-single-r1 ruby-single desktop xdg-utils
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/vim/vim.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
https://dev.gentoo.org/~zlogene/distfiles/app-editors/vim/vim-8.2.0360-gentoo-patches.tar.xz"
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="Vim, an improved vi-style text editor"
|
||||||
|
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||||
|
|
||||||
|
LICENSE="vim"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="X acl crypt cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
|
||||||
|
REQUIRED_USE="
|
||||||
|
lua? ( ${LUA_REQUIRED_USE} )
|
||||||
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
|
vim-pager? ( !minimal )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=app-eselect/eselect-vi-1.1
|
||||||
|
>=sys-libs/ncurses-5.2-r2:0=
|
||||||
|
nls? ( virtual/libintl )
|
||||||
|
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||||
|
crypt? ( dev-libs/libsodium:= )
|
||||||
|
cscope? ( dev-util/cscope )
|
||||||
|
gpm? ( >=sys-libs/gpm-1.19.3 )
|
||||||
|
lua? ( ${LUA_DEPS}
|
||||||
|
$(lua_gen_impl_dep 'deprecated' lua5-1)
|
||||||
|
)
|
||||||
|
!minimal? ( ~app-editors/vim-core-${PV} )
|
||||||
|
vim-pager? ( app-editors/vim-core[-minimal] )
|
||||||
|
perl? ( dev-lang/perl:= )
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
racket? ( dev-scheme/racket )
|
||||||
|
ruby? ( ${RUBY_DEPS} )
|
||||||
|
selinux? ( sys-libs/libselinux )
|
||||||
|
sound? ( media-libs/libcanberra )
|
||||||
|
tcl? ( dev-lang/tcl:0= )
|
||||||
|
X? ( x11-libs/libXt )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
# configure runs the Lua interpreter
|
||||||
|
BDEPEND="
|
||||||
|
sys-devel/autoconf
|
||||||
|
lua? ( ${LUA_DEPS} )
|
||||||
|
nls? ( sys-devel/gettext )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
# people with broken alphabets run into trouble. bug #82186.
|
||||||
|
unset LANG LC_ALL
|
||||||
|
export LC_COLLATE="C"
|
||||||
|
|
||||||
|
# Gnome sandbox silliness. bug #114475.
|
||||||
|
mkdir -p "${T}"/home || die "mkdir failed"
|
||||||
|
export HOME="${T}"/home
|
||||||
|
|
||||||
|
use lua && lua-single_pkg_setup
|
||||||
|
use python && python-single-r1_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
if [[ ${PV} != 9999* ]] ; then
|
||||||
|
# Gentoo patches to fix runtime issues, cross-compile errors, etc
|
||||||
|
eapply "${WORKDIR}"/patches/
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fixup a script to use awk instead of nawk
|
||||||
|
sed -i -e \
|
||||||
|
'1s|.*|#!'"${EPREFIX}"'/usr/bin/awk -f|' \
|
||||||
|
"${S}"/runtime/tools/mve.awk || die "mve.awk sed failed"
|
||||||
|
|
||||||
|
# Read vimrc and gvimrc from /etc/vim
|
||||||
|
echo '#define SYS_VIMRC_FILE "'${EPREFIX}'/etc/vim/vimrc"' \
|
||||||
|
>> "${S}"/src/feature.h || die "echo failed"
|
||||||
|
echo '#define SYS_GVIMRC_FILE "'${EPREFIX}'/etc/vim/gvimrc"' \
|
||||||
|
>> "${S}"/src/feature.h || die "echo failed"
|
||||||
|
|
||||||
|
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||||
|
# Hopefully this pattern won't break for a while at least.
|
||||||
|
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||||
|
sed -i -e \
|
||||||
|
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||||
|
"${S}"/runtime/doc/syntax.txt \
|
||||||
|
"${S}"/runtime/doc/tagsrch.txt \
|
||||||
|
"${S}"/runtime/doc/usr_29.txt \
|
||||||
|
"${S}"/runtime/menu.vim \
|
||||||
|
"${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||||
|
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||||
|
# This fixes bug #43885 (20 Mar 2004 agriffis)
|
||||||
|
sed -i -e \
|
||||||
|
's/ libc\.h / /' \
|
||||||
|
"${S}"/src/configure.ac || die 'sed failed'
|
||||||
|
|
||||||
|
# gcc on sparc32 has this, uhm, interesting problem with detecting EOF
|
||||||
|
# correctly. To avoid some really entertaining error messages about stuff
|
||||||
|
# which isn't even in the source file being invalid, we'll do some trickery
|
||||||
|
# to make the error never occur. bug 66162 (02 October 2004 ciaranm)
|
||||||
|
find "${S}" -name '*.c' | while read c; do
|
||||||
|
echo >> "$c" || die "echo failed"
|
||||||
|
done
|
||||||
|
|
||||||
|
# conditionally make the manpager.sh script
|
||||||
|
if use vim-pager; then
|
||||||
|
cat > "${S}"/runtime/macros/manpager.sh <<-_EOF_ || die "cat EOF failed"
|
||||||
|
#!/bin/sh
|
||||||
|
sed -e 's/\x1B\[[[:digit:]]\+m//g' | col -b | \\
|
||||||
|
vim \\
|
||||||
|
-c 'let no_plugin_maps = 1' \\
|
||||||
|
-c 'set nolist nomod ft=man ts=8' \\
|
||||||
|
-c 'let g:showmarks_enable=0' \\
|
||||||
|
-c 'runtime! macros/less.vim' -
|
||||||
|
_EOF_
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Try to avoid sandbox problems. Bug #114475.
|
||||||
|
if [[ -d "${S}"/src/po ]]; then
|
||||||
|
sed -i -e \
|
||||||
|
'/-S check.vim/s,..VIM.,ln -s $(VIM) testvim \; ./testvim -X,' \
|
||||||
|
"${S}"/src/po/Makefile || die "sed failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp -v "${S}"/src/config.mk.dist "${S}"/src/auto/config.mk || die "cp failed"
|
||||||
|
|
||||||
|
sed -i -e \
|
||||||
|
"s:\\\$(PERLLIB)/ExtUtils/xsubpp:${EPREFIX}/usr/bin/xsubpp:" \
|
||||||
|
"${S}"/src/Makefile || die 'sed for ExtUtils-ParseXS failed'
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myconf=()
|
||||||
|
|
||||||
|
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||||
|
# Bug #57859 suggests that we want to do this for all archs
|
||||||
|
filter-flags -funroll-all-loops
|
||||||
|
|
||||||
|
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||||
|
# everyone since previous flag filtering bugs have turned out to affect
|
||||||
|
# multiple archs...
|
||||||
|
replace-flags -O3 -O2
|
||||||
|
|
||||||
|
# Fix bug 18245: Prevent "make" from the following chain:
|
||||||
|
# (1) Notice configure.ac is newer than auto/configure
|
||||||
|
# (2) Rebuild auto/configure
|
||||||
|
# (3) Notice auto/configure is newer than auto/config.mk
|
||||||
|
# (4) Run ./configure (with wrong args) to remake auto/config.mk
|
||||||
|
sed -i 's# auto/config\.mk:#:#' src/Makefile || die "Makefile sed failed"
|
||||||
|
rm src/auto/configure || die "rm failed"
|
||||||
|
emake -j1 -C src autoconf
|
||||||
|
|
||||||
|
# This should fix a sandbox violation (see bug #24447). The hvc
|
||||||
|
# things are for ppc64, see bug #86433.
|
||||||
|
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||||
|
if [[ -e "${file}" ]]; then
|
||||||
|
addwrite ${file}
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if use minimal; then
|
||||||
|
myconf=(
|
||||||
|
--with-features=tiny
|
||||||
|
--disable-nls
|
||||||
|
--disable-canberra
|
||||||
|
--disable-acl
|
||||||
|
--enable-gui=no
|
||||||
|
--without-x
|
||||||
|
--disable-darwin
|
||||||
|
--disable-luainterp
|
||||||
|
--disable-perlinterp
|
||||||
|
--disable-pythoninterp
|
||||||
|
--disable-mzschemeinterp
|
||||||
|
--disable-rubyinterp
|
||||||
|
--disable-selinux
|
||||||
|
--disable-tclinterp
|
||||||
|
--disable-gpm
|
||||||
|
)
|
||||||
|
else
|
||||||
|
use debug && append-flags "-DDEBUG"
|
||||||
|
|
||||||
|
myconf=(
|
||||||
|
--with-features=huge
|
||||||
|
$(use_enable sound canberra)
|
||||||
|
$(use_enable acl)
|
||||||
|
$(use_enable crypt libsodium)
|
||||||
|
$(use_enable cscope)
|
||||||
|
$(use_enable gpm)
|
||||||
|
$(use_enable nls)
|
||||||
|
$(use_enable perl perlinterp)
|
||||||
|
$(use_enable python python3interp)
|
||||||
|
$(use_with python python3-command "${PYTHON}")
|
||||||
|
$(use_enable racket mzschemeinterp)
|
||||||
|
$(use_enable ruby rubyinterp)
|
||||||
|
$(use_enable selinux)
|
||||||
|
$(use_enable tcl tclinterp)
|
||||||
|
$(use_enable terminal)
|
||||||
|
)
|
||||||
|
|
||||||
|
# --with-features=huge forces on cscope even if we --disable it. We need
|
||||||
|
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm)
|
||||||
|
if ! use cscope; then
|
||||||
|
sed -i -e \
|
||||||
|
'/# define FEAT_CSCOPE/d' src/feature.h || die "sed failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use lua; then
|
||||||
|
myconf+=(
|
||||||
|
--enable-luainterp
|
||||||
|
$(use_with lua_single_target_luajit luajit)
|
||||||
|
--with-lua-prefix="${EPREFIX}/usr"
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# don't test USE=X here ... see bug #19115
|
||||||
|
# but need to provide a way to link against X ... see bug #20093
|
||||||
|
myconf+=(
|
||||||
|
--enable-gui=no
|
||||||
|
--disable-darwin
|
||||||
|
$(use_with X x)
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# let package manager strip binaries
|
||||||
|
export ac_cv_prog_STRIP="$(type -P true ) faking strip"
|
||||||
|
|
||||||
|
# keep prefix env contained within the EPREFIX
|
||||||
|
use prefix && myconf+=( --without-local-dir )
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--with-modified-by=Gentoo-${PVR} \
|
||||||
|
"${myconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# The following allows emake to be used
|
||||||
|
emake -j1 -C src auto/osdef.h objects
|
||||||
|
|
||||||
|
emake
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
einfo
|
||||||
|
einfo "Starting vim tests. Several error messages will be shown"
|
||||||
|
einfo "while the tests run. This is normal behaviour and does not"
|
||||||
|
einfo "indicate a fault."
|
||||||
|
einfo
|
||||||
|
ewarn "If the tests fail, your terminal may be left in a strange"
|
||||||
|
ewarn "state. Usually, running 'reset' will fix this."
|
||||||
|
einfo
|
||||||
|
|
||||||
|
# Don't let vim talk to X
|
||||||
|
unset DISPLAY
|
||||||
|
|
||||||
|
# See https://github.com/vim/vim/blob/f08b0eb8691ff09f98bc4beef986ece1c521655f/src/testdir/runtest.vim#L5
|
||||||
|
# for more information on test variables we can use.
|
||||||
|
# Note that certain variables need vim-compatible regex (not PCRE), see e.g.
|
||||||
|
# http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml.
|
||||||
|
#
|
||||||
|
# Skipped tests:
|
||||||
|
# - Test_expand_star_star
|
||||||
|
# Hangs because of a recursive symlink in /usr/include/nodejs (bug #616680)
|
||||||
|
# - Test_exrc
|
||||||
|
# Looks in wrong location? (bug #742710)
|
||||||
|
# - Test_job_tty_in_out
|
||||||
|
# Fragile and depends on TERM(?)
|
||||||
|
# - Test_spelldump_bang
|
||||||
|
# Hangs.
|
||||||
|
export TEST_SKIP_PAT='\(Test_expand_star_star\|Test_exrc\|Test_job_tty_in_out\|Test_spelldump_bang\)'
|
||||||
|
|
||||||
|
emake -j1 -C src/testdir nongui
|
||||||
|
}
|
||||||
|
|
||||||
|
# Call eselect vi update with --if-unset
|
||||||
|
# to respect user's choice (bug #187449)
|
||||||
|
eselect_vi_update() {
|
||||||
|
einfo "Calling eselect vi update..."
|
||||||
|
eselect vi update --if-unset
|
||||||
|
eend $?
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local vimfiles=/usr/share/vim/vim${VIM_VERSION/.}
|
||||||
|
|
||||||
|
# Note: Do not install symlinks for 'vi', 'ex', or 'view', as these are
|
||||||
|
# managed by eselect-vi
|
||||||
|
dobin src/vim
|
||||||
|
if ! use minimal ; then
|
||||||
|
dosym vim /usr/bin/vimdiff
|
||||||
|
fi
|
||||||
|
dosym vim /usr/bin/rvim
|
||||||
|
dosym vim /usr/bin/rview
|
||||||
|
if use vim-pager ; then
|
||||||
|
dosym ${vimfiles}/macros/less.sh /usr/bin/vimpager
|
||||||
|
dosym ${vimfiles}/macros/manpager.sh /usr/bin/vimmanpager
|
||||||
|
insinto ${vimfiles}/macros
|
||||||
|
doins runtime/macros/manpager.sh
|
||||||
|
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fix an issue of missing defaults.vim when USE=minimal.
|
||||||
|
if use minimal ; then
|
||||||
|
insinto ${vimfiles}
|
||||||
|
doins runtime/defaults.vim
|
||||||
|
fi
|
||||||
|
|
||||||
|
domenu runtime/vim.desktop
|
||||||
|
|
||||||
|
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||||
|
|
||||||
|
# keep in sync with 'complete ... -F' list
|
||||||
|
bashcomp_alias vim ex vi view rvim rview vimdiff
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# Update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# Call eselect vi update
|
||||||
|
eselect_vi_update
|
||||||
|
|
||||||
|
# update desktop file mime cache
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
# Update documentation tags (from vim-doc.eclass)
|
||||||
|
update_vim_helptags
|
||||||
|
|
||||||
|
# Call eselect vi update
|
||||||
|
eselect_vi_update
|
||||||
|
|
||||||
|
# update desktop file mime cache
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
@ -2,6 +2,9 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
|
# Please bump with app-editors/vim-core and app-editors/gvim
|
||||||
|
|
||||||
VIM_VERSION="8.2"
|
VIM_VERSION="8.2"
|
||||||
LUA_COMPAT=( lua5-1 luajit )
|
LUA_COMPAT=( lua5-1 luajit )
|
||||||
PYTHON_COMPAT=( python3_{7..10} )
|
PYTHON_COMPAT=( python3_{7..10} )
|
||||||
@ -22,9 +25,9 @@ fi
|
|||||||
DESCRIPTION="Vim, an improved vi-style text editor"
|
DESCRIPTION="Vim, an improved vi-style text editor"
|
||||||
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
HOMEPAGE="https://vim.sourceforge.io/ https://github.com/vim/vim"
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
LICENSE="vim"
|
LICENSE="vim"
|
||||||
IUSE="X acl cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
|
SLOT="0"
|
||||||
|
IUSE="X acl crypt cscope debug gpm lua minimal nls perl python racket ruby selinux sound tcl terminal vim-pager"
|
||||||
REQUIRED_USE="
|
REQUIRED_USE="
|
||||||
lua? ( ${LUA_REQUIRED_USE} )
|
lua? ( ${LUA_REQUIRED_USE} )
|
||||||
python? ( ${PYTHON_REQUIRED_USE} )
|
python? ( ${PYTHON_REQUIRED_USE} )
|
||||||
@ -36,6 +39,7 @@ RDEPEND="
|
|||||||
>=sys-libs/ncurses-5.2-r2:0=
|
>=sys-libs/ncurses-5.2-r2:0=
|
||||||
nls? ( virtual/libintl )
|
nls? ( virtual/libintl )
|
||||||
acl? ( kernel_linux? ( sys-apps/acl ) )
|
acl? ( kernel_linux? ( sys-apps/acl ) )
|
||||||
|
crypt? ( dev-libs/libsodium:= )
|
||||||
cscope? ( dev-util/cscope )
|
cscope? ( dev-util/cscope )
|
||||||
gpm? ( >=sys-libs/gpm-1.19.3 )
|
gpm? ( >=sys-libs/gpm-1.19.3 )
|
||||||
lua? ( ${LUA_DEPS}
|
lua? ( ${LUA_DEPS}
|
||||||
@ -52,17 +56,16 @@ RDEPEND="
|
|||||||
tcl? ( dev-lang/tcl:0= )
|
tcl? ( dev-lang/tcl:0= )
|
||||||
X? ( x11-libs/libXt )
|
X? ( x11-libs/libXt )
|
||||||
"
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
DEPEND="
|
# configure runs the Lua interpreter
|
||||||
${RDEPEND}
|
BDEPEND="
|
||||||
sys-devel/autoconf
|
sys-devel/autoconf
|
||||||
|
lua? ( ${LUA_DEPS} )
|
||||||
nls? ( sys-devel/gettext )
|
nls? ( sys-devel/gettext )
|
||||||
"
|
"
|
||||||
# configure runs the Lua interpreter
|
|
||||||
BDEPEND="lua? ( ${LUA_DEPS} )"
|
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
# people with broken alphabets run into trouble. bug 82186.
|
# people with broken alphabets run into trouble. bug #82186.
|
||||||
unset LANG LC_ALL
|
unset LANG LC_ALL
|
||||||
export LC_COLLATE="C"
|
export LC_COLLATE="C"
|
||||||
|
|
||||||
@ -93,7 +96,7 @@ src_prepare() {
|
|||||||
|
|
||||||
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
# Use exuberant ctags which installs as /usr/bin/exuberant-ctags.
|
||||||
# Hopefully this pattern won't break for a while at least.
|
# Hopefully this pattern won't break for a while at least.
|
||||||
# This fixes bug 29398 (27 Sep 2003 agriffis)
|
# This fixes bug #29398 (27 Sep 2003 agriffis)
|
||||||
sed -i -e \
|
sed -i -e \
|
||||||
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
's/\<ctags\("\| [-*.]\)/exuberant-&/g' \
|
||||||
"${S}"/runtime/doc/syntax.txt \
|
"${S}"/runtime/doc/syntax.txt \
|
||||||
@ -104,7 +107,7 @@ src_prepare() {
|
|||||||
|
|
||||||
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
# Don't be fooled by /usr/include/libc.h. When found, vim thinks
|
||||||
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
# this is NeXT, but it's actually just a file in dev-libs/9libs
|
||||||
# This fixes bug 43885 (20 Mar 2004 agriffis)
|
# This fixes bug #43885 (20 Mar 2004 agriffis)
|
||||||
sed -i -e \
|
sed -i -e \
|
||||||
's/ libc\.h / /' \
|
's/ libc\.h / /' \
|
||||||
"${S}"/src/configure.ac || die 'sed failed'
|
"${S}"/src/configure.ac || die 'sed failed'
|
||||||
@ -149,8 +152,8 @@ src_prepare() {
|
|||||||
src_configure() {
|
src_configure() {
|
||||||
local myconf=()
|
local myconf=()
|
||||||
|
|
||||||
# Fix bug 37354: Disallow -funroll-all-loops on amd64
|
# Fix bug #37354: Disallow -funroll-all-loops on amd64
|
||||||
# Bug 57859 suggests that we want to do this for all archs
|
# Bug #57859 suggests that we want to do this for all archs
|
||||||
filter-flags -funroll-all-loops
|
filter-flags -funroll-all-loops
|
||||||
|
|
||||||
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
# Fix bug 76331: -O3 causes problems, use -O2 instead. We'll do this for
|
||||||
@ -167,11 +170,11 @@ src_configure() {
|
|||||||
rm src/auto/configure || die "rm failed"
|
rm src/auto/configure || die "rm failed"
|
||||||
emake -j1 -C src autoconf
|
emake -j1 -C src autoconf
|
||||||
|
|
||||||
# This should fix a sandbox violation (see bug 24447). The hvc
|
# This should fix a sandbox violation (see bug #24447). The hvc
|
||||||
# things are for ppc64, see bug 86433.
|
# things are for ppc64, see bug #86433.
|
||||||
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
for file in /dev/pty/s* /dev/console /dev/hvc/* /dev/hvc*; do
|
||||||
if [[ -e "${file}" ]]; then
|
if [[ -e "${file}" ]]; then
|
||||||
addwrite $file
|
addwrite ${file}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -200,6 +203,7 @@ src_configure() {
|
|||||||
--with-features=huge
|
--with-features=huge
|
||||||
$(use_enable sound canberra)
|
$(use_enable sound canberra)
|
||||||
$(use_enable acl)
|
$(use_enable acl)
|
||||||
|
$(use_enable crypt libsodium)
|
||||||
$(use_enable cscope)
|
$(use_enable cscope)
|
||||||
$(use_enable gpm)
|
$(use_enable gpm)
|
||||||
$(use_enable nls)
|
$(use_enable nls)
|
||||||
@ -268,11 +272,27 @@ src_test() {
|
|||||||
# Don't let vim talk to X
|
# Don't let vim talk to X
|
||||||
unset DISPLAY
|
unset DISPLAY
|
||||||
|
|
||||||
|
# See https://github.com/vim/vim/blob/f08b0eb8691ff09f98bc4beef986ece1c521655f/src/testdir/runtest.vim#L5
|
||||||
|
# for more information on test variables we can use.
|
||||||
|
# Note that certain variables need vim-compatible regex (not PCRE), see e.g.
|
||||||
|
# http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml.
|
||||||
|
#
|
||||||
|
# Skipped tests:
|
||||||
|
# - Test_expand_star_star
|
||||||
|
# Hangs because of a recursive symlink in /usr/include/nodejs (bug #616680)
|
||||||
|
# - Test_exrc
|
||||||
|
# Looks in wrong location? (bug #742710)
|
||||||
|
# - Test_job_tty_in_out
|
||||||
|
# Fragile and depends on TERM(?)
|
||||||
|
# - Test_spelldump_bang
|
||||||
|
# Hangs.
|
||||||
|
export TEST_SKIP_PAT='\(Test_expand_star_star\|Test_exrc\|Test_job_tty_in_out\|Test_spelldump_bang\)'
|
||||||
|
|
||||||
emake -j1 -C src/testdir nongui
|
emake -j1 -C src/testdir nongui
|
||||||
}
|
}
|
||||||
|
|
||||||
# Call eselect vi update with --if-unset
|
# Call eselect vi update with --if-unset
|
||||||
# to respect user's choice (bug 187449)
|
# to respect user's choice (bug #187449)
|
||||||
eselect_vi_update() {
|
eselect_vi_update() {
|
||||||
einfo "Calling eselect vi update..."
|
einfo "Calling eselect vi update..."
|
||||||
eselect vi update --if-unset
|
eselect vi update --if-unset
|
||||||
@ -298,6 +318,12 @@ src_install() {
|
|||||||
fperms a+x ${vimfiles}/macros/manpager.sh
|
fperms a+x ${vimfiles}/macros/manpager.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Fix an issue of missing defaults.vim when USE=minimal.
|
||||||
|
if use minimal ; then
|
||||||
|
insinto ${vimfiles}
|
||||||
|
doins runtime/defaults.vim
|
||||||
|
fi
|
||||||
|
|
||||||
domenu runtime/vim.desktop
|
domenu runtime/vim.desktop
|
||||||
|
|
||||||
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
newbashcomp "${FILESDIR}"/${PN}-completion ${PN}
|
||||||
|
8
sdk_container/src/third_party/portage-stable/changelog/security/2021-12-01-vim-8.2.3582.md
vendored
Normal file
8
sdk_container/src/third_party/portage-stable/changelog/security/2021-12-01-vim-8.2.3582.md
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
- [CVE-2021-3872](https://nvd.nist.gov/vuln/detail/CVE-2021-3872)
|
||||||
|
- [CVE-2021-3875](https://nvd.nist.gov/vuln/detail/CVE-2021-3875)
|
||||||
|
- [CVE-2021-3903](https://nvd.nist.gov/vuln/detail/CVE-2021-3903)
|
||||||
|
- [CVE-2021-3927](https://nvd.nist.gov/vuln/detail/CVE-2021-3927)
|
||||||
|
- [CVE-2021-3928](https://nvd.nist.gov/vuln/detail/CVE-2021-3928)
|
||||||
|
- [CVE-2021-3968](https://nvd.nist.gov/vuln/detail/CVE-2021-3968)
|
||||||
|
- [CVE-2021-3973](https://nvd.nist.gov/vuln/detail/CVE-2021-3973)
|
||||||
|
- [CVE-2021-3974](https://nvd.nist.gov/vuln/detail/CVE-2021-3974)
|
1
sdk_container/src/third_party/portage-stable/changelog/updates/2021-12-01-vim-8.2.3582.md
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/changelog/updates/2021-12-01-vim-8.2.3582.md
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
- vim [8.2.3582](https://github.com/vim/vim/releases/tag/v8.2.3582)
|
6
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/Manifest
vendored
Normal file
6
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/Manifest
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DIST libsodium-1.0.18.tar.gz 1919817 BLAKE2B a42d898fe77f232dcbb75728e776b88f006e89f734c4d335e75e01d37b1034cc024df2e89d4350ecbe713d3e4b32c08bec537922c81cc63b0e87ee7fd89b2940 SHA512 17e8638e46d8f6f7d024fe5559eccf2b8baf23e143fadd472a7d29d228b186d86686a5e6920385fe2020729119a5f12f989c3a782afbd05a8db4819bb18666ef
|
||||||
|
DIST libsodium-1.0.18.tar.gz.sig 566 BLAKE2B bb892901e2228c93018d79a5c8e70e0ea458513b0fdf99e8f6c015132b618fd0fefbe6a18ed514c20fbe1e56719dd6dd3762bc4bb6348a439146fdaa951090c0 SHA512 ba69d372263e63126d6ce24f67fe85d83f74e558db81391ddcd7eacb6787dcdd5209a149eebca897e9806f295e78f5a8ababa0ab884b85d9a8dd1a54507a8b0c
|
||||||
|
DIST libsodium-1.0.18_p20210421.tar.gz 1855069 BLAKE2B f9b5843998b0045f97a303589de42b38a7586b4a35571eec9a0b0afd1df101467cb8f82e9a32dbdb9a25058d827a5565ad8d49ad2216d2b6af5b101612a94080 SHA512 ddb77c0608a7e6cacf1923a3d0f5950975511c46d53f6f9c23f80dd99eab84dde2a1292c1e35555f7f1659f25a1b80668516558b83c42effb921fff06c0fb559
|
||||||
|
DIST libsodium-1.0.18_p20210421.tar.gz.minisig 311 BLAKE2B 12d00384a2acd9c9ac5cfc2ce984c2254a69be93f9cb891513c2f575fbc0cd2c03c2f323aa4b363f54fd7e1bf6b73887c0919e919142f759f0f7baa8680cdba5 SHA512 80fe3a5d41a5550b310e1fce86eed142288c70bab46c761a21206cd0c441b9355d455df49916b3eca134af60444307baa8c5566f1ea369e79f7326a6fac822bf
|
||||||
|
DIST libsodium-1.0.18_p20210617.tar.gz 1854880 BLAKE2B 5b421c7efacca5b2a2b5a99a04719d708c217bc6f0b344f08d566bde85c4f758862c0ad61924346eac508542c2d9c6313cb1e3e421743e424f396dd1972e8195 SHA512 d7cd64101fed11ce33c4865dec253f1058acab376c3a6097422508087f4449b2f7fd1b38835915843106f620bf86694d846695e0c8a35f921e4f190dea3164bc
|
||||||
|
DIST libsodium-1.0.18_p20210617.tar.gz.minisig 311 BLAKE2B c54b76a9e29f49bccca80466a5aaa77fb8341e8164041331003710de8f9b173fd25de4812157377645d97ba8a97470076a7f5e037501ba8376b285a06461efa9 SHA512 2180beb872716ad6b728a455981b548003b18594c3f28435c5ddc9803ab2a0f8f1945b6c77de5928b948bbb803b4fa7527cc2e72059931364343a2fdf51ca1be
|
@ -0,0 +1,40 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -344,6 +344,10 @@
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
|
||||||
|
+AC_ARG_ENABLE(sse4_1, [AS_HELP_STRING(--disable-sse4_1,Do not use sse4.1 code)],
|
||||||
|
+ AS_IF([test "x$enableval" = "xyes"], check_sse4_1="yes", check_sse4_1="no"),
|
||||||
|
+ check_sse4_1="yes")
|
||||||
|
+AS_IF([test "$check_sse4_1" = "yes"],[
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
AX_CHECK_COMPILE_FLAG([-msse4.1], [CFLAGS="$CFLAGS -msse4.1"])
|
||||||
|
AC_MSG_CHECKING(for SSE4.1 instructions set)
|
||||||
|
@@ -356,6 +360,7 @@
|
||||||
|
AX_CHECK_COMPILE_FLAG([-msse4.1], [CFLAGS_SSE41="-msse4.1"])],
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
+ ])
|
||||||
|
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
AX_CHECK_COMPILE_FLAG([-mavx], [CFLAGS="$CFLAGS -mavx"])
|
||||||
|
@@ -393,6 +398,10 @@
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
|
||||||
|
+AC_ARG_ENABLE(aesni, [AS_HELP_STRING(--disable-aesni,Do not use aesni code)],
|
||||||
|
+ AS_IF([test "x$enableval" = "xyes"], check_aesni="yes", check_aesni="no"),
|
||||||
|
+ check_aesni="yes")
|
||||||
|
+AS_IF([test "$check_aesni" = "yes"],[
|
||||||
|
oldcflags="$CFLAGS"
|
||||||
|
AX_CHECK_COMPILE_FLAG([-maes], [CFLAGS="$CFLAGS -maes"])
|
||||||
|
AX_CHECK_COMPILE_FLAG([-mpclmul], [CFLAGS="$CFLAGS -mpclmul"])
|
||||||
|
@@ -410,6 +419,7 @@
|
||||||
|
],
|
||||||
|
[AC_MSG_RESULT(no)])
|
||||||
|
CFLAGS="$oldcflags"
|
||||||
|
+ ])
|
||||||
|
|
||||||
|
])
|
||||||
|
|
57
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/libsodium-1.0.18.ebuild
vendored
Normal file
57
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/libsodium-1.0.18.ebuild
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/jedisct1.asc
|
||||||
|
inherit autotools multilib-minimal verify-sig
|
||||||
|
|
||||||
|
DESCRIPTION="A portable fork of NaCl, a higher-level cryptographic library"
|
||||||
|
HOMEPAGE="https://libsodium.org"
|
||||||
|
SRC_URI="https://download.libsodium.org/${PN}/releases/${P}.tar.gz"
|
||||||
|
SRC_URI+=" verify-sig? ( https://download.libsodium.org/${PN}/releases/${P}.tar.gz.sig )"
|
||||||
|
|
||||||
|
LICENSE="ISC"
|
||||||
|
SLOT="0/23"
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="+asm minimal static-libs +urandom cpu_flags_x86_sse4_1 cpu_flags_x86_aes"
|
||||||
|
|
||||||
|
BDEPEND="verify-sig? ( app-crypt/openpgp-keys-jedisct1 )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-1.0.10-cpuflags.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable asm)
|
||||||
|
$(use_enable minimal)
|
||||||
|
$(use_enable !urandom blocking-random)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_enable cpu_flags_x86_sse4_1 sse4_1)
|
||||||
|
$(use_enable cpu_flags_x86_aes aesni)
|
||||||
|
)
|
||||||
|
|
||||||
|
# --disable-pie is needed on x86, see bug #512734
|
||||||
|
if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]] ; then
|
||||||
|
myeconfargs+=( --disable-pie )
|
||||||
|
|
||||||
|
# --disable-ssp is needed on musl x86
|
||||||
|
# TODO: Check if still needed? bug #747346
|
||||||
|
if use elibc_musl ; then
|
||||||
|
myeconfargs+=( --disable-ssp )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
einstalldocs
|
||||||
|
find "${ED}" -type f -name "*.la" -delete || die
|
||||||
|
}
|
@ -0,0 +1,98 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit autotools multilib-minimal
|
||||||
|
|
||||||
|
DESCRIPTION="A portable fork of NaCl, a higher-level cryptographic library"
|
||||||
|
HOMEPAGE="https://libsodium.org"
|
||||||
|
|
||||||
|
if [[ ${PV} == *_p* ]] ; then
|
||||||
|
MY_P=${PN}-$(ver_cut 1-3)-stable-$(ver_cut 5-)
|
||||||
|
MINISIGN_KEY="RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"
|
||||||
|
|
||||||
|
# We use _pN to represent 'stable releases'
|
||||||
|
# These are backports from upstream to the last release branch
|
||||||
|
# See https://download.libsodium.org/libsodium/releases/README.html
|
||||||
|
SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
# TODO: Could verify-sig.eclass support minisig? bug #783066
|
||||||
|
SRC_URI+=" verify-sig? ( https://dev.gentoo.org/~sam/distfiles/dev-libs/libsodium/${MY_P}.tar.gz.minisig -> ${P}.tar.gz.minisig )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-stable"
|
||||||
|
else
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/jedisct1.asc
|
||||||
|
inherit verify-sig
|
||||||
|
|
||||||
|
SRC_URI="https://download.libsodium.org/${PN}/releases/${P}.tar.gz"
|
||||||
|
SRC_URI+=" verify-sig? ( https://download.libsodium.org/${PN}/releases/${P}.tar.gz.sig )"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="ISC"
|
||||||
|
SLOT="0/23"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
||||||
|
IUSE="+asm minimal static-libs +urandom"
|
||||||
|
|
||||||
|
CPU_USE=( cpu_flags_x86_{aes,sse4_1} )
|
||||||
|
IUSE+=" ${CPU_USE[@]}"
|
||||||
|
|
||||||
|
if [[ ${PV} == *_p* ]] ; then
|
||||||
|
IUSE+=" verify-sig"
|
||||||
|
|
||||||
|
BDEPEND+=" verify-sig? ( app-crypt/minisign )"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-1.0.10-cpuflags.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == *_p* ]] ; then
|
||||||
|
if use verify-sig ; then
|
||||||
|
elog "Verifying signature using app-crypt/minisign"
|
||||||
|
minisign -V \
|
||||||
|
-P ${MINISIGN_KEY} \
|
||||||
|
-x "${DISTDIR}"/${P}.tar.gz.minisig \
|
||||||
|
-m "${DISTDIR}"/${P}.tar.gz || die "Failed to verify distfile using minisign!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
else
|
||||||
|
verify-sig_src_unpack
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable asm)
|
||||||
|
$(use_enable cpu_flags_x86_aes aesni)
|
||||||
|
$(use_enable cpu_flags_x86_sse4_1 sse4_1)
|
||||||
|
$(use_enable minimal)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_enable !urandom blocking-random)
|
||||||
|
)
|
||||||
|
|
||||||
|
# --disable-pie is needed on x86, see bug #512734
|
||||||
|
if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]] ; then
|
||||||
|
myeconfargs+=( --disable-pie )
|
||||||
|
|
||||||
|
# --disable-ssp is needed on musl x86
|
||||||
|
# TODO: Check if still needed? bug #747346
|
||||||
|
if use elibc_musl ; then
|
||||||
|
myeconfargs+=( --disable-ssp )
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
default
|
||||||
|
find "${ED}" -type f -name "*.la" -delete || die
|
||||||
|
}
|
@ -0,0 +1,93 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit autotools multilib-minimal
|
||||||
|
|
||||||
|
DESCRIPTION="A portable fork of NaCl, a higher-level cryptographic library"
|
||||||
|
HOMEPAGE="https://libsodium.org"
|
||||||
|
|
||||||
|
if [[ ${PV} == *_p* ]] ; then
|
||||||
|
MY_P=${PN}-$(ver_cut 1-3)-stable-$(ver_cut 5-)
|
||||||
|
MINISIGN_KEY="RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"
|
||||||
|
|
||||||
|
# We use _pN to represent 'stable releases'
|
||||||
|
# These are backports from upstream to the last release branch
|
||||||
|
# See https://download.libsodium.org/libsodium/releases/README.html
|
||||||
|
SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
# TODO: Could verify-sig.eclass support minisig? bug #783066
|
||||||
|
SRC_URI+=" verify-sig? ( https://dev.gentoo.org/~sam/distfiles/dev-libs/libsodium/${MY_P}.tar.gz.minisig -> ${P}.tar.gz.minisig )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-stable"
|
||||||
|
else
|
||||||
|
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/jedisct1.asc
|
||||||
|
inherit verify-sig
|
||||||
|
|
||||||
|
SRC_URI="https://download.libsodium.org/${PN}/releases/${P}.tar.gz"
|
||||||
|
SRC_URI+=" verify-sig? ( https://download.libsodium.org/${PN}/releases/${P}.tar.gz.sig )"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="ISC"
|
||||||
|
SLOT="0/23"
|
||||||
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||||
|
IUSE="+asm minimal static-libs +urandom"
|
||||||
|
|
||||||
|
CPU_USE=( cpu_flags_x86_{aes,sse4_1} )
|
||||||
|
IUSE+=" ${CPU_USE[@]}"
|
||||||
|
|
||||||
|
if [[ ${PV} == *_p* ]] ; then
|
||||||
|
IUSE+=" verify-sig"
|
||||||
|
|
||||||
|
BDEPEND+=" verify-sig? ( app-crypt/minisign )"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-1.0.10-cpuflags.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == *_p* ]] ; then
|
||||||
|
if use verify-sig ; then
|
||||||
|
elog "Verifying signature using app-crypt/minisign"
|
||||||
|
minisign -V \
|
||||||
|
-P ${MINISIGN_KEY} \
|
||||||
|
-x "${DISTDIR}"/${P}.tar.gz.minisig \
|
||||||
|
-m "${DISTDIR}"/${P}.tar.gz || die "Failed to verify distfile using minisign!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
default
|
||||||
|
else
|
||||||
|
verify-sig_src_unpack
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable asm)
|
||||||
|
$(use_enable cpu_flags_x86_aes aesni)
|
||||||
|
$(use_enable cpu_flags_x86_sse4_1 sse4_1)
|
||||||
|
$(use_enable minimal)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_enable !urandom blocking-random)
|
||||||
|
)
|
||||||
|
|
||||||
|
# --disable-pie is needed on x86, see bug #512734
|
||||||
|
# TODO: Check if still needed?
|
||||||
|
if [[ "${MULTILIB_ABI_FLAG}" == "abi_x86_32" ]] ; then
|
||||||
|
myeconfargs+=( --disable-pie )
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
default
|
||||||
|
find "${ED}" -type f -name "*.la" -delete || die
|
||||||
|
}
|
23
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/metadata.xml
vendored
Normal file
23
sdk_container/src/third_party/portage-stable/dev-libs/libsodium/metadata.xml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>sam@gentoo.org</email>
|
||||||
|
<name>Sam James</name>
|
||||||
|
</maintainer>
|
||||||
|
<longdescription>
|
||||||
|
NaCl (pronounced "salt") is a new easy-to-use high-speed software
|
||||||
|
library for network communication, encryption, decryption,
|
||||||
|
signatures, etc. NaCl's goal is to provide all of the core
|
||||||
|
operations needed to build higher-level cryptographic tools.
|
||||||
|
Sodium is a portable, cross-compilable, installable,
|
||||||
|
packageable fork of NaCl, with a compatible API.
|
||||||
|
</longdescription>
|
||||||
|
<use>
|
||||||
|
<flag name="asm">Enables assembly implementations</flag>
|
||||||
|
<flag name="urandom">Use /dev/urandom instead of /dev/random</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">jedisct1/libsodium</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user