summaryrefslogtreecommitdiff
path: root/sys-apps/pick
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/pick
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/pick')
-rw-r--r--sys-apps/pick/Manifest7
-rw-r--r--sys-apps/pick/files/pick-1.8.0-cflags.patch10
-rw-r--r--sys-apps/pick/files/pick-1.8.0-tinfo.patch24
-rw-r--r--sys-apps/pick/metadata.xml11
-rw-r--r--sys-apps/pick/pick-1.8.0.ebuild29
-rw-r--r--sys-apps/pick/pick-1.9.0.ebuild28
6 files changed, 109 insertions, 0 deletions
diff --git a/sys-apps/pick/Manifest b/sys-apps/pick/Manifest
new file mode 100644
index 000000000000..b243934606b0
--- /dev/null
+++ b/sys-apps/pick/Manifest
@@ -0,0 +1,7 @@
+AUX pick-1.8.0-cflags.patch 204 SHA256 fef0fe1ccfe02906ba0ece20aa49ada01ee0bdf1897df449981d749c24fed759 SHA512 63d5700af23b717641845db6c5d6e2bc6d94f1af4108b28fd7243fd7a46af5687371513fd9e423896b5c6e6245d5c575da5b4645d2db2cdd7c1fff10244fca26 WHIRLPOOL f6814908d7929904a152dfd61d86cea6ca207462b4e14891eec2f4f63a1f67903b03a16c72e0c5b11c5ebf1d0c72aa577865a8a05c0d13673d3f8da1f0155f1a
+AUX pick-1.8.0-tinfo.patch 783 SHA256 42a64432e7eed679b5ee47c498d1dbfc2d27bba14fd77ae16193580ff9ff6dc5 SHA512 bb7fb6308fa92bb0481fa1757041373d3dfbe09baa3e6e1f44c3630b771a35c272a6532ec2fea21d13eaf9831f2577e38a22ed07f93c2b0e864f5c91f9c8f19b WHIRLPOOL b83660f7067f46370c6cb1b357ca249776ddef8600e7d39d3708a4df3588ab17084fe325b73ecdd7d950c6867fef2735d82435781e88d965fc89a08f0a473ddd
+DIST pick-1.8.0.tar.gz 101366 SHA256 7834d3aef9e575ce07414f961d1f024776b49bb23c5dc3b7bb8f6b734131067d SHA512 ed8198dfefeafc1397cdc9f80f8b1b88e7fb813f044ae296b8e6ca2789c8790149d334fdf305bb0e57bb0d42262ad73c4f1e9201132ef059f6b1c289989c3c9f WHIRLPOOL 8cd4617635b7e5e0f3e5cd99e3657cb6f37230a34880275178774bccd081047e38c641e156b0af874176b2d0590ef42aed6f8889e9aa5b295d1143537b22cfe9
+DIST pick-1.9.0.tar.gz 106379 SHA256 97d3f310eb7de44fbe50ad3451c49d859d607fa14acd0c584aafae97eea65267 SHA512 78b799be40f6ba8c312edf7f970d6bd304c6fdf24531182c601ef04465806f5697ffa78015547b8908dd5df57d1c08798b5dc27146eef818425a476fdc247085 WHIRLPOOL a8549e48cf140ba133fe30bc161e11cb479fa1e50f05f67c58a9aac3dfc482bb1837195c9aeea0e4681f452677d17db9d67c8b0b9dde844809bd2afb6fd7ddd7
+EBUILD pick-1.8.0.ebuild 572 SHA256 db187b75129083410146356a78532a6ad4a5942b718e984b153807a5dc67c8d5 SHA512 dae5178511753a06e2632a6951ca34f385370bff17d1fb1e80d7c11f8c8b4a6f9347b6a8847d45db7c4ae341641e2166603e9956bd28aac6862665396b696370 WHIRLPOOL ff548663ebc291e63f34453a2520a7245676a577e3c5465dccaba2651994a28f85adb3e1fa0f7eb0696511728080c9a078376f4517d9f0acbada0340d535f685
+EBUILD pick-1.9.0.ebuild 547 SHA256 baaff9a8d5180c2f5ec1aa22dedc5780531dd8e8811a64a9ee6c3c99dcffbcb1 SHA512 f12167e04fee7a4fb0e38a796271afd6c334e9756a1c0a15ad2ee91f41da324df760ffdc64d6921c5b9b8bea46a335ba66e849051a21af79b7c52ad973de8730 WHIRLPOOL d4c87a9f4360582ee8f28c8c63200140a6e9f398dc81f8b20e5c8f4378d1496f7317c10b325490f2ae60a73bc1276721b7fd4fbc3637d63915347e022163b1b8
+MISC metadata.xml 331 SHA256 df361a75ef3ddcef74052eeeea0dd69c7850ab9b7b45ab3f63910f58c738774d SHA512 1cb3d78ef16d0587d81c649e338e4ff6136e57f6a735198a790935ed3b301292caad7dd1040e532f4892d65f12b9bc36050b18676014feeaccd463d65d04f5df WHIRLPOOL a90336404fd6f09909d247f4c4c026286cfbaf16adf2b79b1e84864c689683a7704739418ca15439bb99ad807cbaecb9709edd985e1cb647a03eacb3febea8ae
diff --git a/sys-apps/pick/files/pick-1.8.0-cflags.patch b/sys-apps/pick/files/pick-1.8.0-cflags.patch
new file mode 100644
index 000000000000..6d7834b5cad9
--- /dev/null
+++ b/sys-apps/pick/files/pick-1.8.0-cflags.patch
@@ -0,0 +1,10 @@
+--- pick-1.8.0/Makefile.am
++++ pick-1.8.0/Makefile.am
+@@ -1,6 +1,6 @@
+ AUTOMAKE_OPTIONS=foreign
+
+-AM_CFLAGS=-Wall -Werror -Wextra
++AM_CFLAGS=-Wall -Wextra
+ AM_CPPFLAGS=-D_GNU_SOURCE
+
+ bin_PROGRAMS=pick
diff --git a/sys-apps/pick/files/pick-1.8.0-tinfo.patch b/sys-apps/pick/files/pick-1.8.0-tinfo.patch
new file mode 100644
index 000000000000..fec89fb90d4b
--- /dev/null
+++ b/sys-apps/pick/files/pick-1.8.0-tinfo.patch
@@ -0,0 +1,24 @@
+Use pkg-config to determine ncurses libs and cflags to use. Fixes when building
+against ncurses with libtinfo split out.
+
+--- pick-1.8.0/configure.ac
++++ pick-1.8.0/configure.ac
+@@ -5,13 +5,10 @@
+ AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_CHECK_FUNCS([pledge reallocarray strtonum])
+-AC_SEARCH_LIBS([setupterm], [curses], [],
+- [
+- AC_SEARCH_LIBS([setupterm], [ncursesw],
+- [AC_DEFINE([HAVE_NCURSESW_H], [1], [Define if ncursesw is available])],
+- [AC_MSG_ERROR([unable to find setupterm function])]
+- )
+- ]
+-)
++PKG_CHECK_MODULES([NCURSES], [ncursesw],
++ [AC_DEFINE([HAVE_NCURSESW_H], [1], [Define if ncursesw is available])],
++ [PKG_CHECK_MODULES([NCURSES], [ncurses])])
++CFLAGS="$CFLAGS $NCURSES_CFLAGS"
++LIBS="$LIBS $NCURSES_LIBS"
+ AC_CONFIG_FILES([Makefile])
+ AC_OUTPUT
diff --git a/sys-apps/pick/metadata.xml b/sys-apps/pick/metadata.xml
new file mode 100644
index 000000000000..10fe2acf6f32
--- /dev/null
+++ b/sys-apps/pick/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">calleerlandsson/pick</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-apps/pick/pick-1.8.0.ebuild b/sys-apps/pick/pick-1.8.0.ebuild
new file mode 100644
index 000000000000..5354631f4573
--- /dev/null
+++ b/sys-apps/pick/pick-1.8.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="a fuzzy search tool for the command-line"
+HOMEPAGE="https://github.com/calleerlandsson/pick"
+SRC_URI="https://github.com/calleerlandsson/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}"/${P}-cflags.patch
+ "${FILESDIR}"/${P}-tinfo.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/sys-apps/pick/pick-1.9.0.ebuild b/sys-apps/pick/pick-1.9.0.ebuild
new file mode 100644
index 000000000000..88c100aa3408
--- /dev/null
+++ b/sys-apps/pick/pick-1.9.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="a fuzzy search tool for the command-line"
+HOMEPAGE="https://github.com/calleerlandsson/pick"
+SRC_URI="https://github.com/calleerlandsson/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}-1.8.0-cflags.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}