From ea9ec9afb42bcbdac9cec3cd37d67e2cdac0e731 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 28 Mar 2012 18:31:01 -0400 Subject: [PATCH] editor-wrapper: update to latest stable Upgraded app-misc/editor-wrapper to version 4 on amd64, arm, x86. This is more to get us onto the Gentoo version and off our local one. BUG=chromium-os:11991 TEST=`cbuildbot chromiumos-sdk` worked Change-Id: Ie38f53ec8e25feff59373ccb5494cda62d6751ca Reviewed-on: https://gerrit.chromium.org/gerrit/19301 Tested-by: Mike Frysinger Reviewed-by: Matt Tennant Commit-Ready: Mike Frysinger --- .../editor-wrapper/editor-wrapper-4.ebuild | 26 +++++++++++++++++++ .../editor-wrapper/files/editor-wrapper-4.sh | 17 ++++++++++++ .../md5-cache/app-misc/editor-wrapper-4 | 8 ++++++ 3 files changed, 51 insertions(+) create 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/files/editor-wrapper-4.sh create mode 100644 sdk_container/src/third_party/portage-stable/metadata/md5-cache/app-misc/editor-wrapper-4 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