Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/hstr/, app-shells/hstr/files/
Date: Tue, 08 Dec 2015 10:17:38
Message-Id: 1449569775.730fa101e33ff67aea3c615286f20412b7dda491.monsieurp@gentoo
1 commit: 730fa101e33ff67aea3c615286f20412b7dda491
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 8 09:59:40 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 8 10:16:15 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=730fa101
7
8 app-shells/hstr: Version bump.
9
10 Package-Manager: portage-2.2.20.1
11 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
12
13 app-shells/hstr/Manifest | 1 +
14 app-shells/hstr/files/hstr-1.18-tinfo.patch | 47 +++++++++++++++++++++++++++++
15 app-shells/hstr/hstr-1.18.ebuild | 32 ++++++++++++++++++++
16 3 files changed, 80 insertions(+)
17
18 diff --git a/app-shells/hstr/Manifest b/app-shells/hstr/Manifest
19 index 1e13647..b11e114 100644
20 --- a/app-shells/hstr/Manifest
21 +++ b/app-shells/hstr/Manifest
22 @@ -1 +1,2 @@
23 DIST hstr-1.17.tar.gz 37289 SHA256 9e4b6e74bb7852945e25727105c5339c49c9ce1218481845c8d0205514d85e70 SHA512 eb89496c8554eb29ebb30430aa01179f7265a8ec15b0b9452f7e3ac4867ae4349e6141e11f0af01a4d15ba06131c18ec9ab760c8e68100fa2b8f2a793b237f9b WHIRLPOOL 2b33f485525b2cb033a82b249976d7c670d8f02948e84e73f350b19bdc955e551014f14ad4cfc845144ff0e0d8c3690c50b4444a414c7909f0106242d13a9cc2
24 +DIST hstr-1.18.tar.gz 43672 SHA256 85eb071938c2e7314e5fbd245a81c7b0cd93a8864bf9cba5b5041acb5052ba73 SHA512 e0684a694a514a341c30bfa7fc596f858658f3be9db6c490f628b4c48d1bf08acd8b4b03361ceb6aef65d42a5b01a1c0a8ce94698b5f7f5193ef030d7dc896c4 WHIRLPOOL 1bd00be28623ea8e05c1cec3d95451b7f92e6b17bfb5bd2853560955fc5ace9226edefdee820e9cee6c3542180f699b56371b9766a65a8efc669987dd5e961fb
25
26 diff --git a/app-shells/hstr/files/hstr-1.18-tinfo.patch b/app-shells/hstr/files/hstr-1.18-tinfo.patch
27 new file mode 100644
28 index 0000000..0ffbd0c
29 --- /dev/null
30 +++ b/app-shells/hstr/files/hstr-1.18-tinfo.patch
31 @@ -0,0 +1,47 @@
32 +diff --git a/configure.ac b/configure.ac
33 +index 9cf6a53..cbc649d 100644
34 +--- a/configure.ac
35 ++++ b/configure.ac
36 +@@ -18,17 +18,21 @@ AC_PROG_CC
37 +
38 + # Platform specific ncurses check.
39 + AC_CANONICAL_HOST
40 +-AS_CASE([$host_os],
41 +- [darwin*],
42 +- [
43 +- AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
44 +- AC_CHECK_HEADER(curses.h)
45 +- ],
46 +- [
47 +- AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
48 +- AC_CHECK_HEADER(ncursesw/curses.h)
49 +- ]
50 +-)
51 ++PKG_CHECK_MODULES([NCURSES], [ncursesw], [], [
52 ++ PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
53 ++ AS_CASE([$host_os],
54 ++ [darwin*],
55 ++ [
56 ++ AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
57 ++ AC_CHECK_HEADER(curses.h)
58 ++ ],
59 ++ [
60 ++ AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
61 ++ AC_CHECK_HEADER(ncursesw/curses.h)
62 ++ ]
63 ++ )
64 ++ ])
65 ++])
66 +
67 + # Checks for libraries.
68 + AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
69 +diff --git a/src/Makefile.am b/src/Makefile.am
70 +index 5765613..ee411a9 100644
71 +--- a/src/Makefile.am
72 ++++ b/src/Makefile.am
73 +@@ -15,3 +15,5 @@ hh_SOURCES = \
74 + hstr_regexp.c include/hstr_regexp.h \
75 + radixsort.c include/radixsort.h \
76 + hstr.c
77 ++
78 ++hh_LDADD = $(NCURSES_LIBS)
79
80 diff --git a/app-shells/hstr/hstr-1.18.ebuild b/app-shells/hstr/hstr-1.18.ebuild
81 new file mode 100644
82 index 0000000..57a6535
83 --- /dev/null
84 +++ b/app-shells/hstr/hstr-1.18.ebuild
85 @@ -0,0 +1,32 @@
86 +# Copyright 1999-2015 Gentoo Foundation
87 +# Distributed under the terms of the GNU General Public License v2
88 +# $Id$
89 +
90 +EAPI=5
91 +
92 +AUTOTOOLS_AUTORECONF=true
93 +
94 +inherit autotools-utils
95 +
96 +DESCRIPTION="Shell history suggest box - easily view, navigate, search and manage your command history"
97 +HOMEPAGE="https://github.com/dvorka/hstr http://www.mindforger.com"
98 +SRC_URI="https://github.com/dvorka/hstr/archive/${PV}.tar.gz -> ${P}.tar.gz"
99 +
100 +SLOT="0"
101 +LICENSE="Apache-2.0"
102 +KEYWORDS="~amd64 ~x86 ~ppc ~ppc64 ~amd64-linux ~x86-linux"
103 +IUSE=""
104 +
105 +RDEPEND="sys-libs/ncurses:0="
106 +DEPEND="${RDEPEND}
107 + virtual/pkgconfig
108 +"
109 +
110 +DOCS=( CONFIGURATION.md README.md )
111 +
112 +src_prepare() {
113 + sed \
114 + -e 's:-O2::g' \
115 + -i src/Makefile.am || die
116 + autotools-utils_src_prepare
117 +}