Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/hstr/files/, app-shells/hstr/
Date: Fri, 28 Aug 2015 13:01:26
Message-Id: 1440766781.c3d6591184f4753e5583f4b2a0ebe196c278b4cf.jlec@gentoo
1 commit: c3d6591184f4753e5583f4b2a0ebe196c278b4cf
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 12:59:35 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 12:59:41 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3d65911
7
8 app-shells/hstr: New package, ebuild written by me for monsieurp
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=527122
11
12 Package-Manager: portage-2.2.20.1
13 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
14
15 app-shells/hstr/Manifest | 1 +
16 app-shells/hstr/files/hstr-1.17-tinfo.patch | 48 +++++++++++++++++++++++++++++
17 app-shells/hstr/hstr-1.17.ebuild | 34 ++++++++++++++++++++
18 app-shells/hstr/metadata.xml | 8 +++++
19 4 files changed, 91 insertions(+)
20
21 diff --git a/app-shells/hstr/Manifest b/app-shells/hstr/Manifest
22 new file mode 100644
23 index 0000000..1e13647
24 --- /dev/null
25 +++ b/app-shells/hstr/Manifest
26 @@ -0,0 +1 @@
27 +DIST hstr-1.17.tar.gz 37289 SHA256 9e4b6e74bb7852945e25727105c5339c49c9ce1218481845c8d0205514d85e70 SHA512 eb89496c8554eb29ebb30430aa01179f7265a8ec15b0b9452f7e3ac4867ae4349e6141e11f0af01a4d15ba06131c18ec9ab760c8e68100fa2b8f2a793b237f9b WHIRLPOOL 2b33f485525b2cb033a82b249976d7c670d8f02948e84e73f350b19bdc955e551014f14ad4cfc845144ff0e0d8c3690c50b4444a414c7909f0106242d13a9cc2
28
29 diff --git a/app-shells/hstr/files/hstr-1.17-tinfo.patch b/app-shells/hstr/files/hstr-1.17-tinfo.patch
30 new file mode 100644
31 index 0000000..5c9ea9b
32 --- /dev/null
33 +++ b/app-shells/hstr/files/hstr-1.17-tinfo.patch
34 @@ -0,0 +1,48 @@
35 + configure.ac | 22 ++++++++++++----------
36 + src/Makefile.am | 2 ++
37 + 2 files changed, 14 insertions(+), 10 deletions(-)
38 +
39 +diff --git a/configure.ac b/configure.ac
40 +index 9cf6a53..7367a32 100644
41 +--- a/configure.ac
42 ++++ b/configure.ac
43 +@@ -18,17 +18,19 @@ AC_PROG_CC
44 +
45 + # Platform specific ncurses check.
46 + AC_CANONICAL_HOST
47 +-AS_CASE([$host_os],
48 +- [darwin*],
49 ++PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
50 ++ AS_CASE([$host_os],
51 ++ [darwin*],
52 ++ [
53 ++ AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
54 ++ AC_CHECK_HEADER(curses.h)
55 ++ ],
56 + [
57 +- AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])])
58 +- AC_CHECK_HEADER(curses.h)
59 +- ],
60 +- [
61 +- AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
62 +- AC_CHECK_HEADER(ncursesw/curses.h)
63 +- ]
64 +-)
65 ++ AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])])
66 ++ AC_CHECK_HEADER(ncursesw/curses.h)
67 ++ ]
68 ++ )
69 ++])
70 +
71 + # Checks for libraries.
72 + AC_CHECK_LIB(m, cos, [], [AC_MSG_ERROR([Could not find m library])])
73 +diff --git a/src/Makefile.am b/src/Makefile.am
74 +index 5765613..ee411a9 100644
75 +--- a/src/Makefile.am
76 ++++ b/src/Makefile.am
77 +@@ -15,3 +15,5 @@ hh_SOURCES = \
78 + hstr_regexp.c include/hstr_regexp.h \
79 + radixsort.c include/radixsort.h \
80 + hstr.c
81 ++
82 ++hh_LDADD = $(NCURSES_LIBS)
83
84 diff --git a/app-shells/hstr/hstr-1.17.ebuild b/app-shells/hstr/hstr-1.17.ebuild
85 new file mode 100644
86 index 0000000..ae0765f
87 --- /dev/null
88 +++ b/app-shells/hstr/hstr-1.17.ebuild
89 @@ -0,0 +1,34 @@
90 +# Copyright 1999-2015 Gentoo Foundation
91 +# Distributed under the terms of the GNU General Public License v2
92 +# $Id$
93 +
94 +EAPI=5
95 +
96 +AUTOTOOLS_AUTORECONF=true
97 +
98 +inherit autotools-utils
99 +
100 +DESCRIPTION="Shell history suggest box - easily view, navigate, search and manage your command history"
101 +HOMEPAGE="https://github.com/dvorka/hstr http://www.mindforger.com"
102 +SRC_URI="https://github.com/dvorka/hstr/archive/1.17.tar.gz -> ${P}.tar.gz"
103 +
104 +SLOT="0"
105 +LICENSE="Apache-2.0"
106 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
107 +IUSE=""
108 +
109 +RDEPEND="sys-libs/ncurses:0="
110 +DEPEND="${RDEPEND}
111 + virtual/pkgconfig
112 +"
113 +
114 +PATCHES=( "${FILESDIR}"/${P}-tinfo.patch )
115 +
116 +DOCS=( CONFIGURATION.md README.md )
117 +
118 +src_prepare() {
119 + sed \
120 + -e 's:-O2::g' \
121 + -i src/Makefile.am || die
122 + autotools-utils_src_prepare
123 +}
124
125 diff --git a/app-shells/hstr/metadata.xml b/app-shells/hstr/metadata.xml
126 new file mode 100644
127 index 0000000..c166166
128 --- /dev/null
129 +++ b/app-shells/hstr/metadata.xml
130 @@ -0,0 +1,8 @@
131 +<?xml version="1.0" encoding="UTF-8"?>
132 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
133 +<pkgmetadata>
134 + <maintainer>
135 + <email>jlec@g.o</email>
136 + <name>Justin Lecher</name>
137 + </maintainer>
138 +</pkgmetadata>