mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/readline: Removed rc version.
Package-Manager: portage-2.3.1 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
@@ -2,7 +2,6 @@ DIST readline-4.3.tar.gz 961662 SHA256 eeaf6f050b9f515b0636e5b4f2c153f9ef78e9061
|
||||
DIST readline-5.2.tar.gz 2037705 SHA256 12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45 SHA512 74318b32c56e888716bda2507228ecc374a24e85b2faeec4778227a9f04eb19de1fc8468c78746954c84f9e616a06dd0f8a4332ba4b438fefb7e222699baa379 WHIRLPOOL 8641abf42316ab278207c0a25d9155d4d4fddaf0e704255b40708875b9f31bd3e6caf903550783c15b160bd2b86ffc129b2eb7a1fb4a641d8d58edc3b53145c3
|
||||
DIST readline-6.2.tar.gz 2277926 SHA256 79a696070a058c233c72dd6ac697021cc64abd5ed51e59db867d66d196a89381 SHA512 fa5b4f1b6f81bc0b3be0739adb06dab0668603ff256fe62b59ebfe21d5a9e340a758a8eef569df8c4c4ecb86cdd9698a6dabc2ee8c70a769de2bd5930c32ff59 WHIRLPOOL 5d92645085f253206c16533e3cb35bb382d6fe616bf2144feb06f9ffb9b4d7cc25ceaa846b98f17aa442552a0e80642a62d57fe20982e0ed8fdefb75c2f9bbf0
|
||||
DIST readline-6.3.tar.gz 2468560 SHA256 56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43 SHA512 f70efaf46d570b85c7637172b0ee2eb9a4aa73ba38a62bb45075e665929d9701b96fba0aea6c767fd9a2a0d39dfe8e70ab06da08f8524aee76a7c502f370a401 WHIRLPOOL 7c68627559890dbebf1394b911cfd4675ec8862b84d4e067a207dd37a0a94482c8d92216195df2873bcdf03a0a86150663a9604cd65a0d78363376bc8ee4cfda
|
||||
DIST readline-7.0-rc2.tar.gz 2900408 SHA256 80c6e492f813bb8886e6342e294fd67362973fbb4fe281b31dcd25e22d872fe8 SHA512 ce31569fd2c12e14b67f02ca604614e7564f60b4a386680ac9a11f6b5be2508ac3fd6c73d4edc2d65ebba8f0500fcf52c23b5f756e6a7ed47cead822e4735ad1 WHIRLPOOL c9b314c8b70af39bf3507f3f8d8846cf50a6b809a16522c17199d880244f17503dec6cb78777c47d25e293841878bba9f350590c9efb098fa687aff629858a1a
|
||||
DIST readline-7.0.tar.gz 2910016 SHA256 750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334 SHA512 18243189d39bf0d4c8a76cddcce75243c1bae8824c686e9b6ba352667607e5b10c5feb79372a1093c1c388d821841670702e940df12eae94bcebdeed90047870 WHIRLPOOL a01a000bde533e4c6cd379e0be1ac1694517d1ae5abe67d000c02f9c8d38313725c6769e33db584660431eeb63ea415ac8a182bcb89ae3728c7d8f9942f83fc7
|
||||
DIST readline43-001 1126 SHA256 787244afefceeaf8bfbdc95eef0c4d163ab05ecf178bb631fff287354df0d955 SHA512 1bfcaf9fd36d154230682ef66a9561281822f09629f9923acfbacbaafd650974b4d94267e1bf74ab4a66f0e2da95e64894c78373c82bee593bd9afbae4af58bc WHIRLPOOL 080c0cffb0637bba2f6819524291c8efd1832b42b7ca619fda551b00ed82558d9c03a6f739b350b8a1de2c32e6ab92fd86137a9620473439c5b6ced6d3a06f91
|
||||
DIST readline43-002 738 SHA256 3fd4694c4043b61010c44778ed61581073ac5ddee53436b0e4e1ad2bbe4da226 SHA512 546a7bfab27dd0b77f8b0683b82358a295d47e4e249e01d2e49612a2f113c18580c8276b17451e1edab61a26ddcff0267457a804120d5e0052dfe8e88632ddd2 WHIRLPOOL d3b43145a4ed207f353c5b95b52bdb81be31bd5b077ad60152799333ca582c7524c5587a4e0d9a0fc9246a114552f0c26933d2bc8f60e9de2536a8b6ec9f2cda
|
||||
|
||||
@@ -1,161 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils multilib toolchain-funcs flag-o-matic multilib-minimal
|
||||
|
||||
# Official patches
|
||||
# See ftp://ftp.cwru.edu/pub/bash/readline-6.3-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
patches() {
|
||||
[[ ${PLEVEL} -eq 0 ]] && return 1
|
||||
local opt=$1
|
||||
eval set -- {1..${PLEVEL}}
|
||||
set -- $(printf "${PN}${MY_PV/\.}-%03d " "$@")
|
||||
if [[ ${opt} == -s ]] ; then
|
||||
echo "${@/#/${DISTDIR}/}"
|
||||
else
|
||||
local u
|
||||
for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${PN} ; do
|
||||
printf "${u}/${PN}-${MY_PV}-patches/%s " "$@"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
DESCRIPTION="Another cute console display library"
|
||||
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
|
||||
case ${PV} in
|
||||
*_alpha*|*_beta*|*_rc*) SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" ;;
|
||||
*) SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz $(patches)" ;;
|
||||
esac
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/7" # subslot matches SONAME major
|
||||
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux"
|
||||
IUSE="static-libs utils"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5.9-r3:0=[static-libs?,${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
|
||||
epatch "${FILESDIR}"/${PN}-5.0-no_rpath.patch
|
||||
epatch "${FILESDIR}"/${PN}-6.2-rlfe-tgoto.patch #385091
|
||||
epatch "${FILESDIR}"/${PN}-7.0-headers.patch
|
||||
|
||||
# Force ncurses linking. #71420
|
||||
# Use pkg-config to get the right values. #457558
|
||||
local ncurses_libs=$($(tc-getPKG_CONFIG) ncurses --libs)
|
||||
sed -i \
|
||||
-e "/^SHLIB_LIBS=/s:=.*:='${ncurses_libs}':" \
|
||||
support/shobj-conf || die
|
||||
sed -i \
|
||||
-e "/^[[:space:]]*LIBS=.-lncurses/s:-lncurses:${ncurses_libs}:" \
|
||||
examples/rlfe/configure || die
|
||||
|
||||
# fix building under Gentoo/FreeBSD; upstream FreeBSD deprecated
|
||||
# objformat for years, so we don't want to rely on that.
|
||||
sed -i -e '/objformat/s:if .*; then:if true; then:' support/shobj-conf || die
|
||||
|
||||
ln -s ../.. examples/rlfe/readline # for local readline headers
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# fix implicit decls with widechar funcs
|
||||
append-cppflags -D_GNU_SOURCE
|
||||
# https://lists.gnu.org/archive/html/bug-readline/2010-07/msg00013.html
|
||||
append-cppflags -Dxrealloc=_rl_realloc -Dxmalloc=_rl_malloc -Dxfree=_rl_free
|
||||
|
||||
# Make sure configure picks a better ar than `ar`. #484866
|
||||
export ac_cv_prog_AR=$(tc-getAR)
|
||||
|
||||
# Force the test since we used sed above to force it.
|
||||
export bash_cv_termcap_lib=ncurses
|
||||
|
||||
# Control cross-compiling cases when we know the right answer.
|
||||
# In cases where the C library doesn't support wide characters, readline
|
||||
# itself won't work correctly, so forcing the answer below should be OK.
|
||||
if tc-is-cross-compiler ; then
|
||||
export bash_cv_func_sigsetjmp='present'
|
||||
export bash_cv_func_ctype_nonascii='yes'
|
||||
export bash_cv_wcwidth_broken='no' #503312
|
||||
fi
|
||||
|
||||
# This is for rlfe, but we need to make sure LDFLAGS doesn't change
|
||||
# so we can re-use the config cache file between the two.
|
||||
append-ldflags -L.
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--cache-file="${BUILD_DIR}"/config.cache \
|
||||
--docdir='$(datarootdir)'/doc/${PF} \
|
||||
--with-curses \
|
||||
$(use_enable static-libs static)
|
||||
|
||||
if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then
|
||||
# code is full of AC_TRY_RUN()
|
||||
mkdir -p examples/rlfe || die
|
||||
cd examples/rlfe || die
|
||||
ECONF_SOURCE=${S}/examples/rlfe \
|
||||
econf --cache-file="${BUILD_DIR}"/config.cache
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if use utils && multilib_is_native_abi && ! tc-is-cross-compiler ; then
|
||||
# code is full of AC_TRY_RUN()
|
||||
cd examples/rlfe || die
|
||||
local l
|
||||
for l in readline history ; do
|
||||
ln -s ../../shlib/lib${l}$(get_libname)* lib${l}$(get_libname)
|
||||
ln -sf ../../lib${l}.a lib${l}.a
|
||||
done
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
default
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
gen_usr_ldscript -a readline history #4411
|
||||
|
||||
if use utils && ! tc-is-cross-compiler; then
|
||||
dobin examples/rlfe/rlfe
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
dodoc USAGE
|
||||
dohtml -r doc/.
|
||||
docinto ps
|
||||
dodoc doc/*.ps
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib /$(get_libdir)/lib{history,readline}.so.{4,5} #29865
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify /$(get_libdir)/lib{history,readline}.so.{4,5}
|
||||
}
|
||||
Reference in New Issue
Block a user