diff options
Diffstat (limited to 'sys-apps/pick')
-rw-r--r-- | sys-apps/pick/Manifest | 3 | ||||
-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, 68 insertions, 0 deletions
diff --git a/sys-apps/pick/Manifest b/sys-apps/pick/Manifest index aae34dc68be7..c50a256b6857 100644 --- a/sys-apps/pick/Manifest +++ b/sys-apps/pick/Manifest @@ -1,3 +1,6 @@ +AUX pick-4.0.0-tinfo.patch 805 BLAKE2B ab40112024bec12d18f25a84f39cf09850c11f2878acbcdb91bf33fa74c1a35525da04917381c548437017714c70def44aa8ed4697f13639669c64b148c4a0f0 SHA512 d974ded22d5527522178eac47845c85de1fb0c50df626fdc9792798de3439bf6e6ced12f2434d89086a8fe7c5f11a775745d880cd0f58066108e48cae2912042 DIST pick-3.0.1.tar.gz 29878 BLAKE2B 8910bf726102802a76717ecc20360882c1c25bc346324c33173eb64872066ff284636557bf10a98a6cfbecc50dd4c8cd87b68aa924b976b072e5fead8989e316 SHA512 7448e7937640f69d397bd1bd48526865b8866a8f47eb04b7af918df992f36b6e932a1cb68e845f9262faa9c88c1afcb354368b7e1c6b1dd8503aafdb53e4b70f +DIST pick-4.0.0.tar.gz 29786 BLAKE2B c1d119cfb5dd91bd3c71171d32a6ce92d06ab8ea1cfa5a40c042448b7b90ef5d24c02dc04962b24ef91fd3ea5cb56858b231901c7035f47e2c04682f99e5c61e SHA512 690f8ee174f69ec5897831b71f22bc82dbdaf71329e2b540cfb06e49963231196efe6192d1f564c1c7029c7335736d42f02483850ccbb2bd5bcd1dc52b034f56 EBUILD pick-3.0.1.ebuild 654 BLAKE2B daa505885757851edf558654770b275661a8a94771e5fcf019fa0146d0bffa7dbfb5c625b0abb36146d5fbebc477f714e93e4fbc77ac30a49cbd767acc6802e8 SHA512 d194db2a604de6eb826220d619c72d77372f5fa86d679b9bea4488bb65026a5006c470b27f37db2005cc6289eb0e8cefe291bb8313d7f11fd3f379db6c2a0630 +EBUILD pick-4.0.0.ebuild 706 BLAKE2B 4bd61519fda8c56a801352c14bf96618841cbbd5e150ea80d238f9ea007f872cd78edff76fb48026785d969af9704e7c6f375e2b0f5b1c2da55e090b9bbf2b98 SHA512 f3159eab84352e1fa3e131f178313da4ddf706d10ec717d5c70f32703e5ffc253abada95d43e22b4e049e47e6de9ed0e431dd47a7b20f6e8bdbcc17546a2d08d MISC metadata.xml 242 BLAKE2B 3917c4e887e59cb27fa14a1ea92192b5a924ce39a4dd39a2cd75d04d7a861f57f7c9e969581a243339ea432f132f6e0963efe9940ad1678b506588317da0ace0 SHA512 03639d79f8e79b78d86d64d217268bfbb6255cfb2d37188a764465686dcae9ffe5e41b01cc746f465a6ba92a3bc2c9d87d56889e00317c96fd759d37b840fae0 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 +} |