1 |
commit: a30d23cd4566b356e8e6cd6d17350ad30764af87 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 29 14:44:04 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 29 15:01:45 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a30d23cd |
7 |
|
8 |
app-misc/mc: Revbump to add "unicode" USE flag. |
9 |
|
10 |
This is necessary to prevent segfaults with USE="-slang" and |
11 |
sys-libs/ncurses being built with USE="unicode". |
12 |
|
13 |
Further changes: |
14 |
|
15 |
- use myeconfargs bash array for configure options |
16 |
- replaced some local configure variables with usex calls |
17 |
- sorted all configure options alphabetically |
18 |
- added pkg_pretend() to inform users about USE="slang unicode" having |
19 |
no effect. |
20 |
- removed superfluous eutils eclass. |
21 |
|
22 |
Package-Manager: Portage-2.3.20, Repoman-2.3.6 |
23 |
|
24 |
app-misc/mc/mc-4.8.20-r2.ebuild | 105 ++++++++++++++++++++++++++++++++++++++++ |
25 |
1 file changed, 105 insertions(+) |
26 |
|
27 |
diff --git a/app-misc/mc/mc-4.8.20-r2.ebuild b/app-misc/mc/mc-4.8.20-r2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..26a9982ce6a |
30 |
--- /dev/null |
31 |
+++ b/app-misc/mc/mc-4.8.20-r2.ebuild |
32 |
@@ -0,0 +1,105 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit autotools flag-o-matic |
39 |
+ |
40 |
+MY_P=${P/_/-} |
41 |
+ |
42 |
+DESCRIPTION="GNU Midnight Commander is a text based file manager" |
43 |
+HOMEPAGE="https://www.midnight-commander.org" |
44 |
+SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris" |
49 |
+IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg unicode" |
50 |
+ |
51 |
+REQUIRED_USE="spell? ( edit )" |
52 |
+ |
53 |
+RDEPEND=">=dev-libs/glib-2.26.0:2 |
54 |
+ gpm? ( sys-libs/gpm ) |
55 |
+ kernel_linux? ( sys-fs/e2fsprogs ) |
56 |
+ samba? ( net-fs/samba ) |
57 |
+ sftp? ( net-libs/libssh2 ) |
58 |
+ slang? ( >=sys-libs/slang-2 ) |
59 |
+ !slang? ( sys-libs/ncurses:0=[unicode?] ) |
60 |
+ spell? ( app-text/aspell ) |
61 |
+ X? ( x11-libs/libX11 |
62 |
+ x11-libs/libICE |
63 |
+ x11-libs/libXau |
64 |
+ x11-libs/libXdmcp |
65 |
+ x11-libs/libSM )" |
66 |
+DEPEND="${RDEPEND} |
67 |
+ app-arch/xz-utils |
68 |
+ virtual/pkgconfig |
69 |
+ nls? ( sys-devel/gettext ) |
70 |
+ test? ( dev-libs/check ) |
71 |
+ " |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}"/${PN}-4.8.13-tinfo.patch |
75 |
+ "${FILESDIR}"/${PN}-4.8.19-selected-size.patch |
76 |
+) |
77 |
+ |
78 |
+S=${WORKDIR}/${MY_P} |
79 |
+ |
80 |
+pkg_pretend() { |
81 |
+ if use slang && use unicode ; then |
82 |
+ ewarn "\"unicode\" USE flag only takes effect when the \"slang\" USE flag is disabled." |
83 |
+ fi |
84 |
+} |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh |
88 |
+ |
89 |
+ default |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket" |
95 |
+ |
96 |
+ local myeconfargs=( |
97 |
+ --disable-dependency-tracking |
98 |
+ --disable-silent-rules |
99 |
+ --enable-charset |
100 |
+ --enable-vfs |
101 |
+ --with-homedir=$(usex xdg 'XDG' '.mc') |
102 |
+ --with-screen=$(usex slang 'slang' "ncurses$(usex unicode 'w')") |
103 |
+ $(use_enable kernel_linux vfs-undelfs) |
104 |
+ $(use_enable mclib) |
105 |
+ $(use_enable nls) |
106 |
+ $(use_enable samba vfs-smb) |
107 |
+ $(use_enable sftp vfs-sftp) |
108 |
+ $(use_enable spell aspell) |
109 |
+ $(use_enable test tests) |
110 |
+ $(use_with gpm gpm-mouse) |
111 |
+ $(use_with X x) |
112 |
+ $(use_with edit internal-edit) |
113 |
+ ) |
114 |
+ econf "${myeconfargs[@]}" |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ emake DESTDIR="${D}" install |
119 |
+ dodoc AUTHORS README NEWS |
120 |
+ |
121 |
+ # fix bug #334383 |
122 |
+ if use kernel_linux && [[ ${EUID} == 0 ]] ; then |
123 |
+ fowners root:tty /usr/libexec/mc/cons.saver |
124 |
+ fperms g+s /usr/libexec/mc/cons.saver |
125 |
+ fi |
126 |
+ |
127 |
+ if ! use xdg ; then |
128 |
+ sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \ |
129 |
+ -i "${ED%/}"/usr/libexec/mc/ext.d/*.sh || die |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ elog "To enable exiting to latest working directory," |
135 |
+ elog "put this into your ~/.bashrc:" |
136 |
+ elog ". ${EPREFIX}/usr/libexec/mc/mc.sh" |
137 |
+} |