Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 17 Sep 2018 19:12:37
Message-Id: 1537211540.d8250bf7b7f504997db76d1868223f4280e4a103.mgorny@gentoo
1 commit: d8250bf7b7f504997db76d1868223f4280e4a103
2 Author: Joonas Niilola <juippis <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 12 11:01:23 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 17 19:12:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8250bf7
7
8 scsh.eclass: remove last-rited eclass
9
10 Closes: https://bugs.gentoo.org/658284
11 Closes: https://github.com/gentoo/gentoo/pull/9841
12
13 eclass/scsh.eclass | 77 ------------------------------------------------------
14 1 file changed, 77 deletions(-)
15
16 diff --git a/eclass/scsh.eclass b/eclass/scsh.eclass
17 deleted file mode 100644
18 index 3444aa1c180..00000000000
19 --- a/eclass/scsh.eclass
20 +++ /dev/null
21 @@ -1,77 +0,0 @@
22 -# Copyright 1999-2012 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -#
25 -
26 -# @DEAD
27 -# Joonas Niilola <juippis@×××××.com> (08 Aug 2018)
28 -# Unused, judging from history unmaintained and lacks documentation.
29 -# bugs #658284, #637876. Removal in ~30 days.
30 -
31 -inherit eutils multilib
32 -
33 -SLOT="0"
34 -IUSE="scsh"
35 -
36 -scsh_scsh_path() {
37 - echo /usr/$(get_libdir)/scsh
38 -}
39 -
40 -set_layout() {
41 - if use scsh; then
42 - SCSH_LAYOUT=scsh
43 - else
44 - ewarn "No layout was specified via USE, defaulting to FHS."
45 - SCSH_LAYOUT=fhs
46 - fi
47 - export SCSH_LAYOUT
48 -}
49 -
50 -set_path_variables() {
51 - SCSH_VERSION="$(best_version 'app-shells/scsh')"
52 - SCSH_MV="${SCSH_VERSION%*.*}"
53 - SCSH_MV="${SCSH_MV//app-shells\/scsh-}"
54 - export SCSH_VERSION SCSH_MV
55 -
56 - case ${SCSH_LAYOUT} in
57 - fhs)
58 - SCSH_PREFIX=/usr
59 - SCSH_MODULES_PATH=/usr/share/scsh-${SCSH_MV}/modules
60 - ;;
61 - scsh)
62 - SCSH_PREFIX=/usr/$(get_libdir)/scsh/modules
63 - SCSH_MODULES_PATH=/usr/$(get_libdir)/scsh/modules/${SCSH_MV}
64 - ;;
65 - esac
66 - export SCSH_PREFIX SCSH_MODULES_PATH
67 -
68 - SCSH_LIB_DIRS='"'${SCSH_MODULES_PATH}'"'" "'"'$(scsh_scsh_path)'"'" "'"'.'"'
69 - export SCSH_LIB_DIRS
70 -}
71 -
72 -scsh_src_unpack() {
73 - set_layout
74 - set_path_variables
75 - einfo "Using ${SCSH_LAYOUT} layout"
76 - unpack ${A}
77 -}
78 -
79 -scsh_get_layout_conf() {
80 - SCSH_LAYOUT_CONF=" --build ${CHOST}
81 - --force
82 - --layout ${SCSH_LAYOUT}
83 - --prefix ${SCSH_PREFIX}
84 - --no-user-defaults
85 - --dest-dir ${D}"
86 - export SCSH_LAYOUT_CONF
87 -}
88 -
89 -scsh_src_compile() {
90 - scsh_get_layout_conf
91 -}
92 -
93 -scsh_src_install() {
94 - dodir ${SCSH_MODULES_PATH}
95 - scsh-install-pkg ${SCSH_LAYOUT_CONF} || die "./scsh-install-pkg failed"
96 -}
97 -
98 -EXPORT_FUNCTIONS src_unpack src_compile src_install