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/files/, app-misc/mc/
Date: Sun, 22 Jan 2017 22:54:04
Message-Id: 1485125567.16f2e2e5bc3b663a545c0fa752fdfa0804da3d69.slyfox@gentoo
1 commit: 16f2e2e5bc3b663a545c0fa752fdfa0804da3d69
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 22 22:52:47 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 22 22:52:47 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16f2e2e5
7
8 app-misc/mc: add HTML highlighting fixes, bug #542982
9
10 Patch by Raymond Jennings.
11
12 Reported-by: Raymond Jennings
13 Bug: https://bugs.gentoo.org/542982
14
15 Package-Manager: Portage-2.3.3, Repoman-2.3.1
16
17 app-misc/mc/files/mc-4.8.18-html.patch | 29 +++++++++
18 app-misc/mc/mc-4.8.18-r1.ebuild | 104 +++++++++++++++++++++++++++++++++
19 2 files changed, 133 insertions(+)
20
21 diff --git a/app-misc/mc/files/mc-4.8.18-html.patch b/app-misc/mc/files/mc-4.8.18-html.patch
22 new file mode 100644
23 index 00000000..d848344
24 --- /dev/null
25 +++ b/app-misc/mc/files/mc-4.8.18-html.patch
26 @@ -0,0 +1,29 @@
27 +commit 6b656100ac907636f0b54b12921408260a9fd583
28 +Author: Raymond Jennings <shentino@×××××.com>
29 +Date: Fri Oct 7 22:38:07 2016 +0200
30 +
31 + mcedit: syntax: fix mismatched highlighting for <{o,u}l> HTML tags
32 +
33 + Signed-off-by: Raymond Jennings <shentino@×××××.com>
34 + Signed-off-by: Yury V. Zaytsev <yury@××××××.com>
35 +
36 +diff --git a/misc/syntax/html.syntax b/misc/syntax/html.syntax
37 +index 2b3afd30e..3adbe4d0b 100644
38 +--- a/misc/syntax/html.syntax
39 ++++ b/misc/syntax/html.syntax
40 +@@ -52,6 +52,7 @@ context default
41 + keyword </SMALL> brightcyan/17
42 + keyword </SCRIPT> brightcyan/17
43 + keyword </META> brightcyan/17
44 ++ keyword </OL> brightcyan/17
45 + keyword </P> brightcyan/17
46 + keyword </TABLE> brightcyan/17
47 + keyword </TD> brightcyan/17
48 +@@ -59,6 +60,7 @@ context default
49 + keyword </TR> brightcyan/17
50 + keyword </TT> brightcyan/17
51 + keyword </U> brightcyan/17
52 ++ keyword </UL> brightcyan/17
53 +
54 +
55 + context <A > brightcyan/17
56
57 diff --git a/app-misc/mc/mc-4.8.18-r1.ebuild b/app-misc/mc/mc-4.8.18-r1.ebuild
58 new file mode 100644
59 index 00000000..190ccad
60 --- /dev/null
61 +++ b/app-misc/mc/mc-4.8.18-r1.ebuild
62 @@ -0,0 +1,104 @@
63 +# Copyright 1999-2017 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +# $Id$
66 +
67 +EAPI=6
68 +
69 +inherit autotools eutils flag-o-matic
70 +
71 +MY_P=${P/_/-}
72 +
73 +DESCRIPTION="GNU Midnight Commander is a text based file manager"
74 +HOMEPAGE="http://www.midnight-commander.org"
75 +SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz"
76 +
77 +LICENSE="GPL-3"
78 +SLOT="0"
79 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
80 +IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
81 +
82 +REQUIRED_USE="spell? ( edit )"
83 +
84 +RDEPEND=">=dev-libs/glib-2.26.0:2
85 + gpm? ( sys-libs/gpm )
86 + kernel_linux? ( sys-fs/e2fsprogs )
87 + samba? ( net-fs/samba )
88 + sftp? ( net-libs/libssh2 )
89 + slang? ( >=sys-libs/slang-2 )
90 + !slang? ( sys-libs/ncurses:0= )
91 + spell? ( app-text/aspell )
92 + X? ( x11-libs/libX11
93 + x11-libs/libICE
94 + x11-libs/libXau
95 + x11-libs/libXdmcp
96 + x11-libs/libSM )"
97 +DEPEND="${RDEPEND}
98 + app-arch/xz-utils
99 + virtual/pkgconfig
100 + nls? ( sys-devel/gettext )
101 + test? ( dev-libs/check )
102 + "
103 +
104 +PATCHES=(
105 + "${FILESDIR}"/${PN}-4.8.13-tinfo.patch
106 + "${FILESDIR}"/${P}-html.patch
107 +)
108 +
109 +S=${WORKDIR}/${MY_P}
110 +
111 +src_prepare() {
112 + [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
113 +
114 + default
115 +
116 + eautoreconf
117 +}
118 +
119 +src_configure() {
120 + local myscreen=ncurses
121 + use slang && myscreen=slang
122 + [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
123 +
124 + local homedir=".mc"
125 + use xdg && homedir="XDG"
126 +
127 + econf \
128 + --disable-silent-rules \
129 + --disable-dependency-tracking \
130 + $(use_enable nls) \
131 + --enable-vfs \
132 + $(use_enable kernel_linux vfs-undelfs) \
133 + --enable-charset \
134 + $(use_with X x) \
135 + $(use_enable samba vfs-smb) \
136 + $(use_enable sftp vfs-sftp) \
137 + $(use_enable spell aspell) \
138 + $(use_with gpm gpm-mouse) \
139 + --with-screen=${myscreen} \
140 + $(use_with edit internal-edit) \
141 + $(use_enable mclib) \
142 + $(use_enable test tests) \
143 + --with-homedir=${homedir}
144 +}
145 +
146 +src_install() {
147 + emake DESTDIR="${D}" install
148 + dodoc AUTHORS README NEWS
149 +
150 + # fix bug #334383
151 + if use kernel_linux && [[ ${EUID} == 0 ]] ; then
152 + fowners root:tty /usr/libexec/mc/cons.saver
153 + fperms g+s /usr/libexec/mc/cons.saver
154 + fi
155 +
156 + if ! use xdg ; then
157 + sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
158 + -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
159 + fi
160 +}
161 +
162 +pkg_postinst() {
163 + elog "To enable exiting to latest working directory,"
164 + elog "put this into your ~/.bashrc:"
165 + elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
166 +}