diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-01-10 00:53:46 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-01-10 00:53:58 +0100 |
commit | 57a6d693e11bdd54254a4f0b0e58089344c57934 (patch) | |
tree | 26ff22ae5bb078d329d130a5cc3335cc2f40150b /sys-apps | |
parent | net-misc/mrouted: add github remote-id (diff) | |
download | gentoo-57a6d693e11bdd54254a4f0b0e58089344c57934.tar.gz gentoo-57a6d693e11bdd54254a4f0b0e58089344c57934.tar.bz2 gentoo-57a6d693e11bdd54254a4f0b0e58089344c57934.zip |
sys-apps/pick: Bump to version 4.0.0
fix build against sys-libs/ncurses[tinfo]
Closes: https://bugs.gentoo.org/685712
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/pick/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/pick/files/pick-4.0.0-tinfo.patch | 28 | ||||
-rw-r--r-- | sys-apps/pick/pick-4.0.0.ebuild | 37 |
3 files changed, 66 insertions, 0 deletions
diff --git a/sys-apps/pick/Manifest b/sys-apps/pick/Manifest index 9805f2d30289..f15d007fff6c 100644 --- a/sys-apps/pick/Manifest +++ b/sys-apps/pick/Manifest @@ -1 +1,2 @@ DIST pick-3.0.1.tar.gz 29878 BLAKE2B 8910bf726102802a76717ecc20360882c1c25bc346324c33173eb64872066ff284636557bf10a98a6cfbecc50dd4c8cd87b68aa924b976b072e5fead8989e316 SHA512 7448e7937640f69d397bd1bd48526865b8866a8f47eb04b7af918df992f36b6e932a1cb68e845f9262faa9c88c1afcb354368b7e1c6b1dd8503aafdb53e4b70f +DIST pick-4.0.0.tar.gz 29786 BLAKE2B c1d119cfb5dd91bd3c71171d32a6ce92d06ab8ea1cfa5a40c042448b7b90ef5d24c02dc04962b24ef91fd3ea5cb56858b231901c7035f47e2c04682f99e5c61e SHA512 690f8ee174f69ec5897831b71f22bc82dbdaf71329e2b540cfb06e49963231196efe6192d1f564c1c7029c7335736d42f02483850ccbb2bd5bcd1dc52b034f56 diff --git a/sys-apps/pick/files/pick-4.0.0-tinfo.patch b/sys-apps/pick/files/pick-4.0.0-tinfo.patch new file mode 100644 index 000000000000..7797f1422d94 --- /dev/null +++ b/sys-apps/pick/files/pick-4.0.0-tinfo.patch @@ -0,0 +1,28 @@ +From a21522afa9fcd0f299923767f71577feac34be4c Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Sun, 10 Jan 2021 00:51:36 +0100 +Subject: [PATCH] configure: Fix build against ncurses with separate tinfo lib + +Gentoo-bug: https://bugs.gentoo.org/685712 +Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> +--- + configure | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/configure b/configure +index 857ce4e..e0f26ee 100755 +--- a/configure ++++ b/configure +@@ -161,6 +161,9 @@ set -x + if (LDFLAGS=-lcurses check_curses); then + HAVE_CURSES=1 + LDFLAGS="${LDFLAGS} -lcurses" ++elif (LDFLAGS=-ltinfow check_curses); then ++ HAVE_NCURSESW=1 ++ LDFLAGS="${LDFLAGS} -ltinfow" + elif (LDFLAGS=-lncursesw check_curses); then + HAVE_NCURSESW=1 + LDFLAGS="${LDFLAGS} -lncursesw" +-- +2.30.0 + diff --git a/sys-apps/pick/pick-4.0.0.ebuild b/sys-apps/pick/pick-4.0.0.ebuild new file mode 100644 index 000000000000..9bf033c64ad7 --- /dev/null +++ b/sys-apps/pick/pick-4.0.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +DESCRIPTION="a fuzzy search tool for the command-line" +HOMEPAGE="https://github.com/mptre/pick" +SRC_URI="https://github.com/mptre/pick/releases/download/v${PV}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sys-libs/ncurses:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.0-tinfo.patch" +) + +src_configure() { + # not autoconf + ./configure || die +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake DESTDIR="${ED}" BINDIR=/usr/bin MANDIR=/usr/share/man install + dodoc CHANGELOG.md +} |