summaryrefslogtreecommitdiff
path: root/app-misc/mc/mc-4.9999.ebuild
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2014-01-14 05:42:11 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2014-01-14 05:42:11 +0200
commitbf0d36b8ae45f66dd99970efff2331265e947b6b (patch)
treeda40c309b346839681fdcf5019ee22c8c0cf678f /app-misc/mc/mc-4.9999.ebuild
parent875a3f78985b9c13ba568de8f53ca30678a21193 (diff)
deleted: app-misc/mc/Manifest
deleted: app-misc/mc/files deleted: app-misc/mc/mc-4.9999.ebuild
Diffstat (limited to 'app-misc/mc/mc-4.9999.ebuild')
-rw-r--r--app-misc/mc/mc-4.9999.ebuild126
1 files changed, 0 insertions, 126 deletions
diff --git a/app-misc/mc/mc-4.9999.ebuild b/app-misc/mc/mc-4.9999.ebuild
deleted file mode 100644
index 475d049..0000000
--- a/app-misc/mc/mc-4.9999.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/mc/mc-4.6.2_pre1.ebuild,v 1.10 2009/05/28 17:45:05 arfrever Exp $
-
-EAPI=1
-
-inherit eutils toolchain-funcs git-2 autotools
-
-MY_P=${P/_/-}
-
-DESCRIPTION="GNU Midnight Commander is a s-lang based file manager."
-HOMEPAGE="http://www.gnu.org/software/mc"
-SRC_URI=""
-
-EGIT_REPO_URI="git://midnight-commander.org/git/mc.git"
-EGIT_BOOTSTRAP="./autogen.sh"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~arm ~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
-IUSE="gpm nls samba +unicode X"
-
-RDEPEND=">=dev-libs/glib-2
- unicode? ( >=sys-libs/slang-2.1.3 )
- !unicode? ( sys-libs/ncurses )
- gpm? ( sys-libs/gpm )
- X? ( x11-libs/libX11
- x11-libs/libICE
- x11-libs/libXau
- x11-libs/libXdmcp
- x11-libs/libSM )
- samba? ( net-fs/samba )
- kernel_linux? ( sys-fs/e2fsprogs )
- app-arch/zip
- app-arch/unzip
- >=net-libs/libssh2-1.2.5"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- nls? ( sys-devel/gettext )
- unicode? ( virtual/libiconv )"
-
-S=${WORKDIR}/${MY_P}
-
-#src_unpack() {
-# git_src_unpack
-# cd "${S}"
-
-# use unicode || \
-# EPATCH_EXCLUDE="48_all_deb_utf8-slang2.patch 60_all_deb_recode.patch"
-
-# EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patches
-
-# # Prevent lazy bindings in cons.saver binary for bug #135009
-#}
-
-src_prepare() {
- sed -i -e "s:^\(cons_saver_LDADD = .*\):\1 -Wl,-z,now:" \
- src/Makefile.in || die "sed failed."
-
- if use unicode; then
- local conversion_table=(
- "cs ISO-8859-2"
- "es ISO-8859-1"
- "hu ISO-8859-2"
- "nl ISO-8859-1"
- "pl ISO-8859-2"
- "ru KOI8-R"
- "sr ISO-8859-5"
- "uk KOI8-U"
- )
- local element
- for element in "${conversion_table[@]}"; do
- local lingua="${element% *}"
- local old_encoding="${element#* }"
- local file
- for file in "doc/${lingua}/xnc.hlp" "lib/mc.hint.${lingua}" "lib/mc.menu.${lingua}"; do
- if [[ -f "${file}" ]]; then
- mv "${file}" "${file}.${old_encoding}"
- iconv -f ${old_encoding} -t UTF-8 "${file}.${old_encoding}" > "${file}" || die "iconv ${file} failed"
- fi
- done
- done
- fi
-
- # docs try to run the files it just built while trying convert .1 to .hlp files.
- # this will never work for cross compiles, so we simply don't make docs.
- if tc-is-cross-compiler; then
- sed -i -e s/'lib doc syntax'/'lib syntax'/ Makefile.in
- fi
-}
-
-src_compile() {
- local myconf="--with-vfs --with-ext2undel --enable-charset --with-edit --enable-extcharset --enable-vfs-mcfs --enable-mcserver"
-
- if use unicode; then
- myconf+=" --with-screen=slang"
- else
- myconf+=" --with-screen=ncurses"
- fi
-
- if use samba; then
- myconf+=" --with-samba --with-configdir=/etc/samba --with-codepagedir=/var/lib/samba/codepages"
- else
- myconf+=" --without-samba"
- fi
-
- econf --disable-dependency-tracking \
- $(use_enable nls) \
- $(use_with gpm gpm-mouse) \
- $(use_with X x) \
- ${myconf}
-
- emake || die "emake failed."
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
- dodoc AUTHORS FAQ HACKING MAINTAINERS NEWS README* TODO
-
- # Install cons.saver setuid to actually work
- fperms u+s /usr/libexec/mc/cons.saver
-
- # Install ebuild syntax
- insinto /usr/share/mc/syntax
- doins "${FILESDIR}"/ebuild.syntax
-}