Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/mc/
Date: Wed, 03 Feb 2021 08:09:51
Message-Id: 1612339781.8aa18a841e9782b0de41234d818a43d067cd153c.slyfox@gentoo
1 commit: 8aa18a841e9782b0de41234d818a43d067cd153c
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 3 08:09:20 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 3 08:09:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8aa18a84
7
8 app-misc/mc: drop old
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 app-misc/mc/mc-4.8.26.ebuild | 106 -------------------------------------------
14 1 file changed, 106 deletions(-)
15
16 diff --git a/app-misc/mc/mc-4.8.26.ebuild b/app-misc/mc/mc-4.8.26.ebuild
17 deleted file mode 100644
18 index 0739b78af28..00000000000
19 --- a/app-misc/mc/mc-4.8.26.ebuild
20 +++ /dev/null
21 @@ -1,106 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -
27 -inherit flag-o-matic
28 -
29 -MY_P=${P/_/-}
30 -
31 -DESCRIPTION="GNU Midnight Commander is a text based file manager"
32 -HOMEPAGE="https://www.midnight-commander.org"
33 -SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz"
34 -
35 -LICENSE="GPL-3"
36 -SLOT="0"
37 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
38 -IUSE="+edit gpm nls samba sftp +slang spell test unicode X +xdg"
39 -
40 -REQUIRED_USE="spell? ( edit )"
41 -
42 -RDEPEND=">=dev-libs/glib-2.26.0:2
43 - gpm? ( sys-libs/gpm )
44 - kernel_linux? ( sys-fs/e2fsprogs )
45 - samba? ( net-fs/samba )
46 - sftp? ( net-libs/libssh2 )
47 - slang? ( >=sys-libs/slang-2 )
48 - !slang? ( sys-libs/ncurses:0=[unicode?] )
49 - spell? ( app-text/aspell )
50 - X? ( x11-libs/libX11
51 - x11-libs/libICE
52 - x11-libs/libXau
53 - x11-libs/libXdmcp
54 - x11-libs/libSM )"
55 -DEPEND="${RDEPEND}
56 - app-arch/xz-utils
57 - virtual/pkgconfig
58 - nls? ( sys-devel/gettext )
59 - test? ( dev-libs/check )
60 - "
61 -
62 -RESTRICT="!test? ( test )"
63 -
64 -S="${WORKDIR}/${MY_P}"
65 -
66 -pkg_pretend() {
67 - if use slang && use unicode ; then
68 - ewarn "\"unicode\" USE flag only takes effect when the \"slang\" USE flag is disabled."
69 - fi
70 -}
71 -
72 -src_configure() {
73 - [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
74 -
75 - local myeconfargs=(
76 - --enable-charset
77 - --enable-vfs
78 - --with-homedir=$(usex xdg 'XDG' '.mc')
79 - --with-screen=$(usex slang 'slang' "ncurses$(usex unicode 'w' '')")
80 - $(use_enable kernel_linux vfs-undelfs)
81 - # Today mclib does not expose any headers and is linked to
82 - # single 'mc' binary. Thus there is no advantage of having
83 - # a library. Let's avoid shared library altogether
84 - # as it also conflicts with sci-libs/mc: bug #685938
85 - --disable-mclib
86 - $(use_enable nls)
87 - $(use_enable samba vfs-smb)
88 - $(use_enable sftp vfs-sftp)
89 - $(use_enable spell aspell)
90 - $(use_enable test tests)
91 - $(use_with gpm gpm-mouse)
92 - $(use_with X x)
93 - $(use_with edit internal-edit)
94 - )
95 - econf "${myeconfargs[@]}"
96 -}
97 -
98 -src_test() {
99 - # CK_FORK=no to avoid using fork() in check library
100 - # as mc mocks fork() itself: bug #644462.
101 - #
102 - # VERBOSE=1 to make test failures contain detailed
103 - # information.
104 - CK_FORK=no emake check VERBOSE=1
105 -}
106 -
107 -src_install() {
108 - emake DESTDIR="${D}" install
109 - dodoc AUTHORS README NEWS
110 -
111 - # fix bug #334383
112 - if use kernel_linux && [[ ${EUID} == 0 ]] ; then
113 - fowners root:tty /usr/libexec/mc/cons.saver
114 - fperms g+s /usr/libexec/mc/cons.saver
115 - fi
116 -
117 - if ! use xdg ; then
118 - sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
119 - -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
120 - fi
121 -}
122 -
123 -pkg_postinst() {
124 - elog "To enable exiting to latest working directory,"
125 - elog "put this into your ~/.bashrc:"
126 - elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
127 -}