summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2011-08-11 10:47:32 +0000
committerUlrich Müller <ulm@gentoo.org>2011-08-11 10:47:32 +0000
commit1e31b1669d7b4b690e8f05f9793194fe1579fc37 (patch)
treeb5f311e7645907213795140b74eae7058a848308 /app-misc/editor-wrapper
parentPackage moved from app-editors/gentoo-editor to app-misc/editor-wrapper. (diff)
downloadhistorical-1e31b1669d7b4b690e8f05f9793194fe1579fc37.tar.gz
historical-1e31b1669d7b4b690e8f05f9793194fe1579fc37.tar.bz2
historical-1e31b1669d7b4b690e8f05f9793194fe1579fc37.zip
Version bump, adding wrapper for PAGER.
Package-Manager: portage-2.1.10.10/cvs/Linux x86_64
Diffstat (limited to 'app-misc/editor-wrapper')
-rw-r--r--app-misc/editor-wrapper/ChangeLog8
-rw-r--r--app-misc/editor-wrapper/Manifest10
-rw-r--r--app-misc/editor-wrapper/editor-wrapper-3.ebuild28
-rw-r--r--app-misc/editor-wrapper/files/editor-wrapper-3.sh17
4 files changed, 58 insertions, 5 deletions
diff --git a/app-misc/editor-wrapper/ChangeLog b/app-misc/editor-wrapper/ChangeLog
index b45617e8a416..22095b9e62c9 100644
--- a/app-misc/editor-wrapper/ChangeLog
+++ b/app-misc/editor-wrapper/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/editor-wrapper
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/editor-wrapper/ChangeLog,v 1.1 2011/08/11 10:40:41 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/editor-wrapper/ChangeLog,v 1.2 2011/08/11 10:47:32 ulm Exp $
+
+*editor-wrapper-3 (11 Aug 2011)
+
+ 11 Aug 2011; Ulrich Mueller <ulm@gentoo.org> +editor-wrapper-3.ebuild,
+ +files/editor-wrapper-3.sh:
+ Version bump, adding wrapper for PAGER.
*editor-wrapper-2 (11 Aug 2011)
diff --git a/app-misc/editor-wrapper/Manifest b/app-misc/editor-wrapper/Manifest
index 3bb336b5b036..f4e9ebb8ab61 100644
--- a/app-misc/editor-wrapper/Manifest
+++ b/app-misc/editor-wrapper/Manifest
@@ -2,13 +2,15 @@
Hash: SHA1
AUX editor-wrapper-2.sh 416 RMD160 92c36c7859dcf1900543f232653410b6fa5168bd SHA1 051a03ddabbc6934b64754f1c88ef8351f6cc0d0 SHA256 2fd601ef0fcbd2ad264b51eed1ae104f8b39c08817fca78b8196aa10f1eb642e
+AUX editor-wrapper-3.sh 401 RMD160 fcd4141fbbca0f40a1c5b97897ae1a256e5a09dc SHA1 bbeccc465761de6389984131e080273fabc5a974 SHA256 684f0e1e8bb650c79f3a113036f4ffb9e7d27a2e71520f19af2fdb63e66b70be
EBUILD editor-wrapper-2.ebuild 548 RMD160 cc6e51071542928a87c846da922c58b86c79ac1d SHA1 1f48025dbe5c273d3107ac3bcb46d66da420bfb9 SHA256 153418ee988626704fe804cd4de81806355c51dbe270c2c86acc8ac8dfc4db83
-MISC ChangeLog 2343 RMD160 8a8ed6bfc6892fe3f6ce4d45b6c315cf035d4845 SHA1 d47cfaa7a1725d7b6caeefc0582d7dbd66e47360 SHA256 8b7fcac611f090da0f39243c13c4da88c6ba94e9c0d73f0e70e34312c54cd82e
+EBUILD editor-wrapper-3.ebuild 778 RMD160 1a564b46b08edbfebae6325071c513dbfde99c19 SHA1 2d7946ad13da9b0d9c63eba296b4b93af69e0cad SHA256 2d36209ed872496fb002c534bd139356cad872b2ab8e5060f37c2d1d6003ca34
+MISC ChangeLog 2522 RMD160 23e08411d8f3cc131aa5f79ed8ac8d7b69055bdd SHA1 5079d23f2965fbb7a1ca338f3f6a29da3bf2ca89 SHA256 ae8d497c926644930e508a194d80612a4b29c39938927677317b8b74f54d154b
MISC metadata.xml 183 RMD160 de889cdf3481996341cd4cee764cf5c72704cf10 SHA1 1f469d9815709d2c9875a251b48fb3f688cb6f19 SHA256 7d020057c52803e7181c769edb0883bb918daa3a6c4d7f5097ff49f808d14089
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iEYEARECAAYFAk5DsvYACgkQOeoy/oIi7uzwBACeOf2/0j2I6Fv3M0soAHSPvDfS
-XogAoOOaOOvZYZUFiNPqYitg5OicIwcw
-=jTbL
+iEYEARECAAYFAk5DtJIACgkQOeoy/oIi7uzupACfcKhO49TQA3PLmotHK1UVX9FK
+XIkAoJ/5fk0dhYRTSzMqmBvniZWTzVtP
+=RS06
-----END PGP SIGNATURE-----
diff --git a/app-misc/editor-wrapper/editor-wrapper-3.ebuild b/app-misc/editor-wrapper/editor-wrapper-3.ebuild
new file mode 100644
index 000000000000..a8c1e6439c37
--- /dev/null
+++ b/app-misc/editor-wrapper/editor-wrapper-3.ebuild
@@ -0,0 +1,28 @@
+# 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-3.ebuild,v 1.1 2011/08/11 10:47:32 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
+ # backwards compatibility
+ dosym editor /usr/libexec/gentoo-editor
+}
diff --git a/app-misc/editor-wrapper/files/editor-wrapper-3.sh b/app-misc/editor-wrapper/files/editor-wrapper-3.sh
new file mode 100644
index 000000000000..34520ffef78a
--- /dev/null
+++ b/app-misc/editor-wrapper/files/editor-wrapper-3.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; echo "${@VAR@}")
+fi
+
+if [ -z "${@VAR@}" ]; then
+ echo "$0: The @VAR@ variable must be set" >&2
+ exit 1
+fi
+
+exec ${@VAR@} "$@"