| # Copyright 1999-2022 Gentoo Authors |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="7" |
| inherit multilib-minimal usr-ldscript |
| |
| MY_PV=${PV/./-} |
| MY_P=${PN}-${MY_PV} |
| |
| DESCRIPTION="BSD replacement for libreadline" |
| HOMEPAGE="https://thrysoee.dk/editline/" |
| SRC_URI="https://thrysoee.dk/editline/${MY_P}.tar.gz" |
| S=${WORKDIR}/${MY_P} |
| |
| LICENSE="BSD-2" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="static-libs" |
| |
| RDEPEND=">=sys-libs/ncurses-5.9-r3[static-libs?,${MULTILIB_USEDEP}]" |
| DEPEND=${RDEPEND} |
| |
| QA_PKGCONFIG_VERSION=$(ver_cut 2-3) |
| |
| multilib_src_configure() { |
| local myconf=( |
| $(use_enable static-libs static) |
| --enable-fast-install |
| ) |
| |
| ECONF_SOURCE="${S}" econf "${myconf[@]}" |
| } |
| |
| multilib_src_install() { |
| emake DESTDIR="${D}" install |
| gen_usr_ldscript -a edit |
| } |
| |
| multilib_src_install_all() { |
| einstalldocs |
| find "${D}" -name '*.la' -delete || die |
| # file collision with sys-libs/readline |
| rm "${ED}/usr/share/man/man3/history.3" || die |
| } |