virtual/editor: Allow only display editors as providers.
authorUlrich Müller <ulm@gentoo.org>
Fri, 18 May 2018 06:26:14 +0000 (08:26 +0200)
committerUlrich Müller <ulm@gentoo.org>
Fri, 18 May 2018 06:33:48 +0000 (08:33 +0200)
If you prefer a line editor like ed when editing files with your
DECwriter LA120 printing terminal :-) and don't want any newfangled
display editor installed on your system, then add virtual/editor to
package.provided as a workaround.

Closes: https://bugs.gentoo.org/655906
Package-Manager: Portage-2.3.37, Repoman-2.3.9

virtual/editor/editor-0-r1.ebuild [moved from virtual/editor/editor-0.ebuild with 91% similarity]

similarity index 91%
rename from virtual/editor/editor-0.ebuild
rename to virtual/editor/editor-0-r1.ebuild
index 13c56dd7bd8c0b0e0a885005399b55a73b565d68..56958a5b748f45591d75b85f55ab015d4e0f9bed 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
 DESCRIPTION="Virtual for editor"
 SLOT="0"
@@ -9,9 +9,11 @@ KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86
 
 # Add a package to RDEPEND only if the editor:
 # - can edit ordinary text files,
-# - works on the console.
+# - works on the console,
+# - is a "display" or "visual" editor (e.g., using ncurses).
 
-RDEPEND="|| ( app-editors/nano
+RDEPEND="|| (
+       app-editors/nano
        app-editors/dav
        app-editors/e3
        app-editors/ee
@@ -47,7 +49,7 @@ RDEPEND="|| ( app-editors/nano
        app-misc/mc[edit]
        dev-lisp/cmucl
        mail-client/alpine[-onlyalpine]
-       sys-apps/ed )"
+)"
 
 # Packages outside app-editors providing an editor:
 #      app-misc/mc: mcedit (#62643)