From 88393b0193d83674f6ec6e34b14f0f8c629c7f5d Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 5 Nov 2021 20:58:27 +0100 Subject: [PATCH] app-misc/editor-wrapper: Sync with gentoo It's from gentoo commit 38b155fa1bf907617067c98eb4ba3a5d0790eb1a. --- .../editor-wrapper/editor-wrapper-4-r1.ebuild | 31 +++++++++++++++++++ .../editor-wrapper/editor-wrapper-4.ebuild | 26 ---------------- .../editor-wrapper/files/editor-wrapper-4.sh | 2 +- .../app-misc/editor-wrapper/metadata.xml | 12 +++++++ 4 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4-r1.ebuild delete mode 100644 sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/metadata.xml diff --git a/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4-r1.ebuild b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4-r1.ebuild new file mode 100644 index 0000000000..39f32a9835 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Wrapper scripts that will execute EDITOR or PAGER" +# There is no upstream, everything is in FILESDIR. +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" + +LICENSE="MIT" +SLOT="0" +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" + +S="${WORKDIR}" + +src_prepare() { + sed -e 's/@VAR@/EDITOR/g' "${FILESDIR}/${P}.sh" >editor || die + sed -e 's/@VAR@/PAGER/g' "${FILESDIR}/${P}.sh" >pager || die + if use prefix ; then + sed -i \ + -e "s:#!/bin/sh:#!/usr/bin/env sh:" \ + -e "s: /etc/profile: \"${EPREFIX}/etc/profile\":" \ + editor pager || die + fi + eapply_user +} + +src_install() { + exeinto /usr/libexec + doexe editor pager +} diff --git a/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4.ebuild b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4.ebuild deleted file mode 100644 index 2a00bf913b..0000000000 --- a/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/editor-wrapper/editor-wrapper-4.ebuild,v 1.7 2011/12/29 21:37:29 ulm Exp $ - -EAPI=4 - -DESCRIPTION="Wrapper scripts that will execute EDITOR or PAGER" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" -IUSE="" - -S="${WORKDIR}" - -src_prepare() { - sed -e 's/@VAR@/EDITOR/g' "${FILESDIR}/${P}.sh" >editor || die - sed -e 's/@VAR@/PAGER/g' "${FILESDIR}/${P}.sh" >pager || die -} - -src_install() { - exeinto /usr/libexec - doexe editor pager -} diff --git a/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/files/editor-wrapper-4.sh b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/files/editor-wrapper-4.sh index b58f1a8b9e..9c8fe95995 100644 --- a/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/files/editor-wrapper-4.sh +++ b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/files/editor-wrapper-4.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2009-2011 Gentoo Foundation +# Copyright 2009-2011 Gentoo Authors # Distributed under the terms of the MIT/X11 license # Wrapper script, executes ${@VAR@} with arguments $@ diff --git a/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/metadata.xml b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/metadata.xml new file mode 100644 index 0000000000..d5d93f9566 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/metadata.xml @@ -0,0 +1,12 @@ + + + + + base-system@gentoo.org + Gentoo Base System + + + emacs@gentoo.org + Gentoo Emacs project + +