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 new file mode 100644 index 0000000000..2a00bf913b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/editor-wrapper-4.ebuild @@ -0,0 +1,26 @@ +# 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 new file mode 100644 index 0000000000..b58f1a8b9e --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-misc/editor-wrapper/files/editor-wrapper-4.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# Copyright 2009-2011 Gentoo Foundation +# Distributed under the terms of the MIT/X11 license + +# Wrapper script, executes ${@VAR@} with arguments $@ + +if [ -z "${@VAR@}" ]; then + # Try to get @VAR@ from system profile + @VAR@=$(. /etc/profile >/dev/null 2>&1; echo "${@VAR@}") +fi + +if [ -z "${@VAR@}" ]; then + echo "$0: The @VAR@ variable must be set" >&2 + exit 1 +fi + +exec ${@VAR@} "$@" diff --git a/sdk_container/src/third_party/portage-stable/metadata/md5-cache/app-misc/editor-wrapper-4 b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/app-misc/editor-wrapper-4 new file mode 100644 index 0000000000..13a1d3a243 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/app-misc/editor-wrapper-4 @@ -0,0 +1,8 @@ +DEFINED_PHASES=install prepare +DESCRIPTION=Wrapper scripts that will execute EDITOR or PAGER +EAPI=4 +HOMEPAGE=http://www.gentoo.org/ +KEYWORDS=alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd +LICENSE=MIT +SLOT=0 +_md5_=ee90453669d3d94843fbd2e9cdfba7ac