From 125fb7a6cdcde8fb1c7dd59edf87dbf276025ef4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 27 Aug 2015 02:49:36 -0400 Subject: [PATCH] sys-libs/ncurses: add dummy package to bridge SLOT move #558856 Since the slotmove operator does not properly update implicit subslots in generated dependencies in the vdb, add a dummy ebuild to bridge the old SLOT=5[/5] and the new SLOT=0/5. --- sys-libs/ncurses/ncurses-5.9-r5.ebuild | 233 ++++++++++++++++++++++++ sys-libs/ncurses/ncurses-5.9-r99.ebuild | 18 ++ sys-libs/ncurses/ncurses-6.0.ebuild | 2 +- 3 files changed, 252 insertions(+), 1 deletion(-) create mode 100644 sys-libs/ncurses/ncurses-5.9-r5.ebuild create mode 100644 sys-libs/ncurses/ncurses-5.9-r99.ebuild diff --git a/sys-libs/ncurses/ncurses-5.9-r5.ebuild b/sys-libs/ncurses/ncurses-5.9-r5.ebuild new file mode 100644 index 000000000000..3668c9711c5d --- /dev/null +++ b/sys-libs/ncurses/ncurses-5.9-r5.ebuild @@ -0,0 +1,233 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils flag-o-matic toolchain-funcs multilib-minimal + +MY_PV=${PV:0:3} +PV_SNAP=${PV:4} +MY_P=${PN}-${MY_PV} +DESCRIPTION="console display library" +HOMEPAGE="https://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/" +SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz" + +LICENSE="MIT" +# The subslot reflects the SONAME. +SLOT="0/5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="ada +cxx debug doc gpm minimal profile static-libs tinfo trace unicode" + +DEPEND="gpm? ( sys-libs/gpm )" +# berkdb? ( sys-libs/db )" +# Block the older ncurses that installed all files w/SLOT=5. #557472 +RDEPEND="${DEPEND} + !<=sys-libs/ncurses-5.9-r4:5 + !/dev/null) + local basedir=$(basename $(dirname "${termfile}")) + + if [[ -n ${termfile} ]] ; then + dodir /etc/terminfo/${basedir} + mv ${termfile} "${ED}"/etc/terminfo/${basedir}/ + dosym ../../../../etc/terminfo/${basedir}/${x} \ + /usr/share/terminfo/${basedir}/${x} + fi + done +# fi + + echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses + doenvd "${T}"/50ncurses + + use minimal && rm -r "${ED}"/usr/share/terminfo* + # Because ncurses5-config --terminfo returns the directory we keep it + keepdir /usr/share/terminfo #245374 + + cd "${S}" + dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc + use doc && dohtml -r doc/html/ +} diff --git a/sys-libs/ncurses/ncurses-5.9-r99.ebuild b/sys-libs/ncurses/ncurses-5.9-r99.ebuild new file mode 100644 index 000000000000..4b407434b631 --- /dev/null +++ b/sys-libs/ncurses/ncurses-5.9-r99.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# Bridge the old SLOT=5[/5] ebuild to the new SLOT=0/5 since the slotmove +# functionality does not handle implicit subslots correctly. #558856 + +EAPI="5" + +DESCRIPTION="transitional package" +HOMEPAGE="https://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/" + +LICENSE="metapackage" +SLOT="5/5" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="ada +cxx gpm static-libs tinfo unicode" + +RDEPEND="sys-libs/ncurses:0/5[ada?,cxx?,gpm?,static-libs?,tinfo?,unicode?]" diff --git a/sys-libs/ncurses/ncurses-6.0.ebuild b/sys-libs/ncurses/ncurses-6.0.ebuild index 145960b68bea..a8b1c1e68640 100644 --- a/sys-libs/ncurses/ncurses-6.0.ebuild +++ b/sys-libs/ncurses/ncurses-6.0.ebuild @@ -23,7 +23,7 @@ DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )" # berkdb? ( sys-libs/db )" # Block the older ncurses that installed all files w/SLOT=5. #557472 RDEPEND="${DEPEND} - !<=sys-libs/ncurses-5.9-r4:0 + !<=sys-libs/ncurses-5.9-r4:5 !