diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/mc |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/mc')
-rw-r--r-- | app-misc/mc/Manifest | 13 | ||||
-rw-r--r-- | app-misc/mc/files/mc-4.8.13-tinfo.patch | 39 | ||||
-rw-r--r-- | app-misc/mc/files/mc-4.8.16-makedev.patch | 28 | ||||
-rw-r--r-- | app-misc/mc/files/mc-4.8.18-html.patch | 29 | ||||
-rw-r--r-- | app-misc/mc/mc-4.8.15.ebuild | 101 | ||||
-rw-r--r-- | app-misc/mc/mc-4.8.18-r1.ebuild | 103 | ||||
-rw-r--r-- | app-misc/mc/mc-4.8.19.ebuild | 107 | ||||
-rw-r--r-- | app-misc/mc/mc-9999.ebuild | 103 | ||||
-rw-r--r-- | app-misc/mc/metadata.xml | 23 |
9 files changed, 546 insertions, 0 deletions
diff --git a/app-misc/mc/Manifest b/app-misc/mc/Manifest new file mode 100644 index 000000000000..485f98e11c2e --- /dev/null +++ b/app-misc/mc/Manifest @@ -0,0 +1,13 @@ +AUX mc-4.8.13-tinfo.patch 1742 SHA256 e195c6d498a2aaca51401215969f6bf42fba607666d54b504ac5478745c6d098 SHA512 7714d42ece73fe6f044f5cc0f59ab5c23bedb820122291d1af581f5f7dd94d4410072868205e94419be459ed9769c8ed75dfb8ad5b945c8df820901f756e7c3c WHIRLPOOL 9f6030011f81dc518adeb7cbaed1efab09b7c1bd72328d15abfc2be31bec5e814c89aae281327557074d86f809e993a5233a5261b3ed26c6dcbf6d9f3e6a2008 +AUX mc-4.8.16-makedev.patch 901 SHA256 6f61f64dd022dc5801b2e2ceb89e64e6421edfff3027a14ff3bc7aef0c21d01a SHA512 dcc77b50bb6a23ca7c1ef3f4fd0dec4defd3b46b120d38cbb9737e9a1464cda4e7c972b6d74a50ae41fc6df845feaad6b865f3aecfc1195f6413baff157504a5 WHIRLPOOL 3a802cc515c11f33e4a628dc4960c6a1fb7d2f0715dc71e0e2e1a8a25850f84b09c4e267694c67c9c1dc87d8d2aa650b508c0fe8a41688630cae088a34ff51ba +AUX mc-4.8.18-html.patch 969 SHA256 af7a8e93a60afd961ba0d1986ac82195ffa816c762cd014a7863413eada0aa0b SHA512 d3e97e0d5e5260cf1dfce8700aaf44c2f6998bbc37defe38f4fd18b5a28160d61b51fa8185e5cde257655d088b7b474604e4a7cd570c6982b3e7af5ef95f8cde WHIRLPOOL 3fe56fa1265bf4757ef1c87d0e48bf057e7e07f29f4d04bd76915a63308b50af401197ae2f671165e64059a5a4ca51241d5689208ab5b0f9057f77a314accd27 +DIST mc-4.8.15.tar.xz 2304812 SHA256 cf4e8f5dfe419830d56ca7e5f2495898e37ebcd05da1e47ff7041446c87fba16 SHA512 b8e05e1bcadcb766a43269a4724e36b77221b004d53783718fe455167693ff029e3e54cde47740d0c0ecd5adacfb3960a8ecce76eeaea234bbbcfd54db3b1760 WHIRLPOOL 6ddf2f5b88825584653a7027d515bfc84caba003408df31b4b8257a3f8c81a179e39a7bb7cc8571976537983f5dac7d6c06ddfbd6142ef0b31639a914f56c0f1 +DIST mc-4.8.18.tar.xz 2462080 SHA256 f7636815c987c1719c4f5de2dcd156a0e7d097b1d10e4466d2bdead343d5bece SHA512 edd81f6ab50ca7bb3582064f6722e490d33ae9dfbef3835e26206089d3898420968da394780c594083fa17c01a85cda9068d9931199b8319bf6361f90e900eb8 WHIRLPOOL dd0c1cdfe93468ebc399b270d693751bc7c0665cb49040d9409c3a336c953be0d304c463b8c8a0a26e42c720c116a4b4bd9b930caa2f2101298e01c4ac5c6237 +DIST mc-4.8.19.tar.xz 2521808 SHA256 eb9e56bbb5b2893601d100d0e0293983049b302c5ab61bfb544ad0ee2cc1f2df SHA512 aec49f0da1fc69099ce9b0f71926d1e9ee6df0be12f53da94a8f5f4266612515031cd02f328a458bf78260c5efb1c8ca2c34c89e20a77567c8b987e43d446531 WHIRLPOOL 21c57a2717c58488cc7aa5ba5159b9231e09181059662f392a5212a17aa5475493793d49b99e73ebe74d9594201a84cfc63c3a460654579b7399cc563594ab7a +EBUILD mc-4.8.15.ebuild 2602 SHA256 122ff73b3d734c6ae6f49515d1614e534c52c37733528b5e61d2db644d0b4c67 SHA512 906e1842f664cff03939a0fed27aaa447abf92553916bedcdbe7c23aa65f704c2538ca5be666086dbe2ce3204bbdfc87854346f3894293ccef8ef5d8a2ae6e7f WHIRLPOOL 2dcb323a43031f5db68da4e6cb0ec4df38668a5716035219b634ec9f1f349e9f8e9871d48f25eccc5a29af114f2ffdc4d687cfbce5e482658d76f3419d4cf8c0 +EBUILD mc-4.8.18-r1.ebuild 2466 SHA256 0a7232c9ba847022b80ef24a4eb95fdfb2362cefb08c0f6308f07483e80a3b36 SHA512 3bea1c8e2c8aa1e882ccfde6619dff042939290de9075ed111360925a78d6e631bfde6cc47d60bb6e1b287826fe6cc0483201ee317a3698894c3a900fd6af505 WHIRLPOOL d5fd078d8441b59249ecbcfa5ae280fb925f5596aa63a79c0d59cd21f863a378fcb068a2f7126cf650200c894c83c377c11daa5f8a41461955db64a06cd375bd +EBUILD mc-4.8.19.ebuild 2722 SHA256 14b2f0cdc67a804ad7834ea503106cb31f19ed0e6c5ef11be43b24660961aef8 SHA512 8c88c706cbed51a95ef9c2577b7dad338c187db961c7365616d4085b856d3b45035251efa86746c48232f02ed83ffe9c8fa24a629463968dd26847e1c019f353 WHIRLPOOL 33b7cf7b8f22c504b5f340b0d325268949723ea8b99a866d716cc3d7812204d5be73ede8d82adcdc7eefdbc886e9244deaae5a61b40a40309d251a5fad6968c4 +EBUILD mc-9999.ebuild 2585 SHA256 cd96f7fbcc89a9a3ce4558cfd5eda46b14daacafd4c131806d0356db55733585 SHA512 bab03c4a246785495ff69deaba2c97268ec95449b5887a941dbc54513d0f00d193fec63c26a69f1d95c45612a81c5c8818f12dcf0b0ede5f4e7afa81595d6d91 WHIRLPOOL 8de131ac850d36c1b441b8291ecb2a7b9dca59a2f818a8806c33222cf3701019c1099c7f6aad9faed50dca23177c2edc8206e3c7772c3d492b7720b56366fd4e +MISC ChangeLog 9404 SHA256 33fa6e6e61d84414943fc4c4adc2940b5728423a846da2b98e3cdf2c683ac947 SHA512 1f4521a2ca9c942b95da1425e5801a90077e42e8b8e5fc0b69233f210ee148bebe66ebed5298212aff6ebe88c8255cfde1eb0cbbd82bece7ffad17be761dd9af WHIRLPOOL 42c1441a1b8d3fada7929f74e33683ce78ea90cb9d1872e8d2c9d47982bfab98b987a1beb4556cde5157455cded463c965ab12066128b9a70bf162c7f0667c71 +MISC ChangeLog-2015 47956 SHA256 ad72d366219015c1a10a0cd495639e64b5fc33d5ece8eac0ef8c7d7e0991bba9 SHA512 ba9b5ea1a0073925045818863c3d684f7916b4ba0702566fa539cf35e5d990376daaff3beaecc0c0b7497de7f06c79f2114231f28917764f7db4d32ca7ebd819 WHIRLPOOL f336d08537261dbb79f33958ec01dabc5d45782472a2520125f21cd91e71b9346a0abcb0eca09ae27b9d660f35e097c8c5c52bd03fcb17a9618c446398ede4ed +MISC metadata.xml 994 SHA256 45ce9479246e25bda70b058399e82fd60ec18bc4c70cf9ff31db1b995a92c44c SHA512 8e36834754b8335c133eb3693d17d02a0c6c3c7d25263857558cf290922b8e7508bf90c609e09ebbfaed54eecc2179936ded60c2b723cc0abc6722db180cc3ed WHIRLPOOL f5e54fd6149ef5ac8fddda6e4fba6c5fb0038fe27666a40e17ceb5231a1834f8093a69154cf989b3d6a904274b18a2e301fc1b55c7d4d07f407a13d5be2fa0b4 diff --git a/app-misc/mc/files/mc-4.8.13-tinfo.patch b/app-misc/mc/files/mc-4.8.13-tinfo.patch new file mode 100644 index 000000000000..761c103df654 --- /dev/null +++ b/app-misc/mc/files/mc-4.8.13-tinfo.patch @@ -0,0 +1,39 @@ +Gentoo-bug: https://bugs.gentoo.org/527118 +--- a/m4.include/mc-with-screen-ncurses.m4 ++++ b/m4.include/mc-with-screen-ncurses.m4 +@@ -101,6 +101,9 @@ + LIBS= + AC_SEARCH_LIBS([has_colors], [ncurses], [MCLIBS="$MCLIBS $LIBS"], + [AC_MSG_ERROR([Cannot find ncurses library])]) ++ AC_SEARCH_LIBS([stdscr],[tinfo ncurses],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) ++ + + screen_type=ncurses + screen_msg="Ncurses library" +@@ -111,10 +114,15 @@ + AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [MCLIBS="$MCLIBS $LIBS";ncursesw_found=yes], + [AC_MSG_WARN([Cannot find ncurses library, that support wide characters])]) + ++ AC_SEARCH_LIBS([stdscr],[tinfo ncursesw ncurses curses],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) ++ + if test x"$ncursesw_found" = "x"; then + LIBS= + AC_SEARCH_LIBS([has_colors], [ncurses curses], [MCLIBS="$MCLIBS $LIBS"], + [AC_MSG_ERROR([Cannot find ncurses library])]) ++ AC_SEARCH_LIBS([stdscr],[tinfo ncurses curses],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) + fi + + dnl Check the header +@@ -166,6 +174,9 @@ + LIBS= + AC_SEARCH_LIBS([has_colors], [ncursesw], [MCLIBS="$MCLIBS $LIBS"], + [AC_MSG_ERROR([Cannot find ncursesw library])]) ++ AC_SEARCH_LIBS([stdscr],[tinfow ncursesw],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) ++ + + dnl Check the header + ncurses_h_found= diff --git a/app-misc/mc/files/mc-4.8.16-makedev.patch b/app-misc/mc/files/mc-4.8.16-makedev.patch new file mode 100644 index 000000000000..8e7fd0e0f1cb --- /dev/null +++ b/app-misc/mc/files/mc-4.8.16-makedev.patch @@ -0,0 +1,28 @@ +From 4ba3a1a92a59658bc9f5f9d0745db8bb829778cb Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Wed, 13 Apr 2016 23:38:47 +0100 +Subject: [PATCH] filemanager/mountlist.c: add makedev() declaration + +On glibc-2.23 link fails as + + $ mc-9999/src/filemanager/mountlist.c:750: undefined reference to `makedev' + +Reported-by: Thomas D. +Bug: https://bugs.gentoo.org/579858 +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> + +diff --git a/src/filemanager/mountlist.c b/src/filemanager/mountlist.c +index 166b246..7d6e178 100644 +--- a/src/filemanager/mountlist.c ++++ b/src/filemanager/mountlist.c +@@ -186,6 +186,7 @@ + + #include "lib/global.h" + #include "lib/strutil.h" /* str_verscmp() */ ++#include "lib/unixcompat.h" /* makedev */ + #include "mountlist.h" + + /*** global variables ****************************************************************************/ +-- +2.8.1 + diff --git a/app-misc/mc/files/mc-4.8.18-html.patch b/app-misc/mc/files/mc-4.8.18-html.patch new file mode 100644 index 000000000000..d8483446bfcd --- /dev/null +++ b/app-misc/mc/files/mc-4.8.18-html.patch @@ -0,0 +1,29 @@ +commit 6b656100ac907636f0b54b12921408260a9fd583 +Author: Raymond Jennings <shentino@gmail.com> +Date: Fri Oct 7 22:38:07 2016 +0200 + + mcedit: syntax: fix mismatched highlighting for <{o,u}l> HTML tags + + Signed-off-by: Raymond Jennings <shentino@gmail.com> + Signed-off-by: Yury V. Zaytsev <yury@shurup.com> + +diff --git a/misc/syntax/html.syntax b/misc/syntax/html.syntax +index 2b3afd30e..3adbe4d0b 100644 +--- a/misc/syntax/html.syntax ++++ b/misc/syntax/html.syntax +@@ -52,6 +52,7 @@ context default + keyword </SMALL> brightcyan/17 + keyword </SCRIPT> brightcyan/17 + keyword </META> brightcyan/17 ++ keyword </OL> brightcyan/17 + keyword </P> brightcyan/17 + keyword </TABLE> brightcyan/17 + keyword </TD> brightcyan/17 +@@ -59,6 +60,7 @@ context default + keyword </TR> brightcyan/17 + keyword </TT> brightcyan/17 + keyword </U> brightcyan/17 ++ keyword </UL> brightcyan/17 + + + context <A > brightcyan/17 diff --git a/app-misc/mc/mc-4.8.15.ebuild b/app-misc/mc/mc-4.8.15.ebuild new file mode 100644 index 000000000000..c01cae5c6123 --- /dev/null +++ b/app-misc/mc/mc-4.8.15.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools eutils flag-o-matic + +MY_P=${P/_/-} + +DESCRIPTION="GNU Midnight Commander is a text based file manager" +HOMEPAGE="https://www.midnight-commander.org" +SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +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" +IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg" + +REQUIRED_USE="spell? ( edit )" + +RDEPEND=">=dev-libs/glib-2.8:2 + gpm? ( sys-libs/gpm ) + kernel_linux? ( sys-fs/e2fsprogs ) + samba? ( net-fs/samba ) + sftp? ( net-libs/libssh2 ) + slang? ( >=sys-libs/slang-2 ) + !slang? ( sys-libs/ncurses:0= ) + spell? ( app-text/aspell ) + X? ( x11-libs/libX11 + x11-libs/libICE + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libSM )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig + nls? ( sys-devel/gettext ) + test? ( dev-libs/check ) + " + +[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs) + +src_prepare() { + [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh + + epatch "${FILESDIR}"/${PN}-4.8.13-tinfo.patch + epatch "${FILESDIR}"/${PN}-4.8.16-makedev.patch + epatch_user + eautoreconf +} + +S=${WORKDIR}/${MY_P} + +src_configure() { + local myscreen=ncurses + use slang && myscreen=slang + [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket" + + local homedir=".mc" + use xdg && homedir="XDG" + + econf \ + --disable-silent-rules \ + --disable-dependency-tracking \ + $(use_enable nls) \ + --enable-vfs \ + $(use_enable kernel_linux vfs-undelfs) \ + --enable-charset \ + $(use_with X x) \ + $(use_enable samba vfs-smb) \ + $(use_enable sftp vfs-sftp) \ + $(use_enable spell aspell) \ + $(use_with gpm gpm-mouse) \ + --with-screen=${myscreen} \ + $(use_with edit internal-edit) \ + $(use_enable mclib) \ + $(use_enable test tests) \ + --with-homedir=${homedir} +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS README NEWS + + # fix bug #334383 + if use kernel_linux && [[ ${EUID} == 0 ]] ; then + fowners root:tty /usr/libexec/mc/cons.saver + fperms g+s /usr/libexec/mc/cons.saver + fi + + if ! use xdg ; then + sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \ + -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die + fi +} + +pkg_postinst() { + elog "To enable exiting to latest working directory," + elog "put this into your ~/.bashrc:" + elog ". ${EPREFIX}/usr/libexec/mc/mc.sh" +} diff --git a/app-misc/mc/mc-4.8.18-r1.ebuild b/app-misc/mc/mc-4.8.18-r1.ebuild new file mode 100644 index 000000000000..024c7dcdd497 --- /dev/null +++ b/app-misc/mc/mc-4.8.18-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic + +MY_P=${P/_/-} + +DESCRIPTION="GNU Midnight Commander is a text based file manager" +HOMEPAGE="https://www.midnight-commander.org" +SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +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" +IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg" + +REQUIRED_USE="spell? ( edit )" + +RDEPEND=">=dev-libs/glib-2.26.0:2 + gpm? ( sys-libs/gpm ) + kernel_linux? ( sys-fs/e2fsprogs ) + samba? ( net-fs/samba ) + sftp? ( net-libs/libssh2 ) + slang? ( >=sys-libs/slang-2 ) + !slang? ( sys-libs/ncurses:0= ) + spell? ( app-text/aspell ) + X? ( x11-libs/libX11 + x11-libs/libICE + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libSM )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig + nls? ( sys-devel/gettext ) + test? ( dev-libs/check ) + " + +PATCHES=( + "${FILESDIR}"/${PN}-4.8.13-tinfo.patch + "${FILESDIR}"/${P}-html.patch +) + +S=${WORKDIR}/${MY_P} + +src_prepare() { + [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh + + default + + eautoreconf +} + +src_configure() { + local myscreen=ncurses + use slang && myscreen=slang + [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket" + + local homedir=".mc" + use xdg && homedir="XDG" + + econf \ + --disable-silent-rules \ + --disable-dependency-tracking \ + $(use_enable nls) \ + --enable-vfs \ + $(use_enable kernel_linux vfs-undelfs) \ + --enable-charset \ + $(use_with X x) \ + $(use_enable samba vfs-smb) \ + $(use_enable sftp vfs-sftp) \ + $(use_enable spell aspell) \ + $(use_with gpm gpm-mouse) \ + --with-screen=${myscreen} \ + $(use_with edit internal-edit) \ + $(use_enable mclib) \ + $(use_enable test tests) \ + --with-homedir=${homedir} +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS README NEWS + + # fix bug #334383 + if use kernel_linux && [[ ${EUID} == 0 ]] ; then + fowners root:tty /usr/libexec/mc/cons.saver + fperms g+s /usr/libexec/mc/cons.saver + fi + + if ! use xdg ; then + sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \ + -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die + fi +} + +pkg_postinst() { + elog "To enable exiting to latest working directory," + elog "put this into your ~/.bashrc:" + elog ". ${EPREFIX}/usr/libexec/mc/mc.sh" +} diff --git a/app-misc/mc/mc-4.8.19.ebuild b/app-misc/mc/mc-4.8.19.ebuild new file mode 100644 index 000000000000..a494288fc52e --- /dev/null +++ b/app-misc/mc/mc-4.8.19.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils flag-o-matic + +MY_P=${P/_/-} + +DESCRIPTION="GNU Midnight Commander is a text based file manager" +HOMEPAGE="https://www.midnight-commander.org" +SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +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" +IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg" + +REQUIRED_USE="spell? ( edit )" + +RDEPEND=">=dev-libs/glib-2.26.0:2 + gpm? ( sys-libs/gpm ) + kernel_linux? ( sys-fs/e2fsprogs ) + samba? ( net-fs/samba ) + sftp? ( net-libs/libssh2 ) + slang? ( >=sys-libs/slang-2 ) + !slang? ( sys-libs/ncurses:0= ) + spell? ( app-text/aspell ) + X? ( x11-libs/libX11 + x11-libs/libICE + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libSM )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig + nls? ( sys-devel/gettext ) + test? ( dev-libs/check ) + " + +PATCHES=( + "${FILESDIR}"/${PN}-4.8.13-tinfo.patch +) + +S=${WORKDIR}/${MY_P} + +src_prepare() { + [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh + + default + + # These tests fail, so disable them instead of disabling the entire + # test suite. Please check on each bump if this is still necessary. + # Next release will fix them: http://midnight-commander.org/ticket/3781 + rm tests/src/vfs/extfs/helpers-list/data/{rpm,u7z,urar}.* || die + + eautoreconf +} + +src_configure() { + local myscreen=ncurses + use slang && myscreen=slang + [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket" + + local homedir=".mc" + use xdg && homedir="XDG" + + econf \ + --disable-silent-rules \ + --disable-dependency-tracking \ + $(use_enable nls) \ + --enable-vfs \ + $(use_enable kernel_linux vfs-undelfs) \ + --enable-charset \ + $(use_with X x) \ + $(use_enable samba vfs-smb) \ + $(use_enable sftp vfs-sftp) \ + $(use_enable spell aspell) \ + $(use_with gpm gpm-mouse) \ + --with-screen=${myscreen} \ + $(use_with edit internal-edit) \ + $(use_enable mclib) \ + $(use_enable test tests) \ + --with-homedir=${homedir} +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS README NEWS + + # fix bug #334383 + if use kernel_linux && [[ ${EUID} == 0 ]] ; then + fowners root:tty /usr/libexec/mc/cons.saver + fperms g+s /usr/libexec/mc/cons.saver + fi + + if ! use xdg ; then + sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \ + -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die + fi +} + +pkg_postinst() { + elog "To enable exiting to latest working directory," + elog "put this into your ~/.bashrc:" + elog ". ${EPREFIX}/usr/libexec/mc/mc.sh" +} diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild new file mode 100644 index 000000000000..1f19e217d3ac --- /dev/null +++ b/app-misc/mc/mc-9999.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="https://github.com/MidnightCommander/mc.git git://repo.or.cz/midnight-commander.git" + LIVE_ECLASSES="git-r3 autotools" + LIVE_EBUILD=yes +fi + +inherit eutils flag-o-matic ${LIVE_ECLASSES} + +MY_P=${P/_/-} + +if [[ -z ${LIVE_EBUILD} ]]; then + SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris" +fi + +DESCRIPTION="GNU Midnight Commander is a text based file manager" +HOMEPAGE="https://www.midnight-commander.org" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg" + +REQUIRED_USE="spell? ( edit )" + +RDEPEND=">=dev-libs/glib-2.26.0:2 + gpm? ( sys-libs/gpm ) + kernel_linux? ( sys-fs/e2fsprogs ) + samba? ( net-fs/samba ) + sftp? ( net-libs/libssh2 ) + slang? ( >=sys-libs/slang-2 ) + !slang? ( sys-libs/ncurses:0= ) + spell? ( app-text/aspell ) + X? ( x11-libs/libX11 + x11-libs/libICE + x11-libs/libXau + x11-libs/libXdmcp + x11-libs/libSM )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig + nls? ( sys-devel/gettext ) + test? ( dev-libs/check ) + " + +src_prepare() { + default + + [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh +} + +src_configure() { + local myscreen=ncurses + use slang && myscreen=slang + [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket" + + local homedir=".mc" + use xdg && homedir="XDG" + + econf \ + --disable-silent-rules \ + --disable-dependency-tracking \ + $(use_enable nls) \ + --enable-vfs \ + $(use_enable kernel_linux vfs-undelfs) \ + --enable-charset \ + $(use_with X x) \ + $(use_enable samba vfs-smb) \ + $(use_enable sftp vfs-sftp) \ + $(use_enable spell aspell) \ + $(use_with gpm gpm-mouse) \ + --with-screen=${myscreen} \ + $(use_with edit internal-edit) \ + $(use_enable mclib) \ + $(use_enable test tests) \ + --with-homedir=${homedir} +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS doc/{FAQ,NEWS,README} + + # fix bug #334383 + if use kernel_linux && [[ ${EUID} == 0 ]] ; then + fowners root:tty /usr/libexec/mc/cons.saver + fperms g+s /usr/libexec/mc/cons.saver + fi + + if ! use xdg ; then + sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \ + -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die + fi +} + +pkg_postinst() { + elog "To enable exiting to latest working directory," + elog "put this into your ~/.bashrc:" + elog ". ${EPREFIX}/usr/libexec/mc/mc.sh" +} diff --git a/app-misc/mc/metadata.xml b/app-misc/mc/metadata.xml new file mode 100644 index 000000000000..35fa1001c11e --- /dev/null +++ b/app-misc/mc/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>slyfox@gentoo.org</email> + <name>Sergei Trofimovich</name> + </maintainer> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + </maintainer> + <maintainer type="project"> + <email>desktop-misc@gentoo.org</email> + <name>Gentoo Desktop Miscellaneous Project</name> + </maintainer> + <use> + <flag name="edit">Compile and install the mcedit application</flag> + <flag name="mclib">Compile and install the libmc.so shared library</flag> + <flag name="sftp">Add support for sftp (uses <pkg>net-libs/libssh2</pkg> for it).</flag> + <flag name="slang">Use <pkg>sys-libs/slang</pkg> instead of <pkg>sys-libs/ncurses</pkg>.</flag> + <flag name="xdg">Toggles mc's config dir location. Enable for $XDG_CONFIG_HOME/mc, disable for $HOME/.mc</flag> + </use> +</pkgmetadata> |