From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B24E9138350 for ; Tue, 10 Mar 2020 15:45:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5459E08BB; Tue, 10 Mar 2020 15:45:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8B5F7E08BB for ; Tue, 10 Mar 2020 15:45:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 830BB34F1FB for ; Tue, 10 Mar 2020 15:45:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 070F818D for ; Tue, 10 Mar 2020 15:45:45 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1583855117.748250033d52ef9a8ea16d1b7914a2b3086c4a5f.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/hstr/, app-shells/hstr/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/hstr/Manifest app-shells/hstr/files/hstr-2.1-fix-ncurses-configure.patch app-shells/hstr/hstr-2.1.ebuild X-VCS-Directories: app-shells/hstr/files/ app-shells/hstr/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 748250033d52ef9a8ea16d1b7914a2b3086c4a5f X-VCS-Branch: master Date: Tue, 10 Mar 2020 15:45:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fd56b269-7f85-49a4-89a0-6599b5d40c45 X-Archives-Hash: ca5d9c15eca8457c1c1b1b664ad0788c commit: 748250033d52ef9a8ea16d1b7914a2b3086c4a5f Author: Patrice Clement gentoo org> AuthorDate: Tue Mar 10 15:43:30 2020 +0000 Commit: Patrice Clement gentoo org> CommitDate: Tue Mar 10 15:45:17 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74825003 app-shells/hstr: version bump. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Patrice Clement gentoo.org> app-shells/hstr/Manifest | 1 + .../files/hstr-2.1-fix-ncurses-configure.patch | 81 ++++++++++++++++++++++ app-shells/hstr/hstr-2.1.ebuild | 33 +++++++++ 3 files changed, 115 insertions(+) diff --git a/app-shells/hstr/Manifest b/app-shells/hstr/Manifest index b14972debef..602b85af6a4 100644 --- a/app-shells/hstr/Manifest +++ b/app-shells/hstr/Manifest @@ -1 +1,2 @@ DIST hstr-2.0.tar.gz 1242802 BLAKE2B 24f1a870e6aa12b6544a38601c6bc654e01aa1a185c4f7735559aa3220ed8d9fb840e298526b9e4a177000f2ec5c08caee5da97e13783e4114bde5276ee1e85e SHA512 50d5e8e61aa853dab0093f4225d3329e98bc59609d8d59abf832cd4cb616d78a2fa091d1ad8d16f3543276c4ead95a419f33a13a96f423bf93dc648da32740b7 +DIST hstr-2.1.tar.gz 1244067 BLAKE2B aa37f26a5ba8ee465a03212cc80e55b9581e59cbb535f17fda8e59bed062f0b0065d456d8566927c089595b92270b83235f0bf73f26ac88704bd933c1926cd5b SHA512 ea217ac2b6dcb7e283f83d15524b47f88c5c8cfb82e5728537750a2ec8526f03304503a5bb67970d893e10057aba087aa86a67548aa361c892b6ee3e81903122 diff --git a/app-shells/hstr/files/hstr-2.1-fix-ncurses-configure.patch b/app-shells/hstr/files/hstr-2.1-fix-ncurses-configure.patch new file mode 100644 index 00000000000..215fd5cedfc --- /dev/null +++ b/app-shells/hstr/files/hstr-2.1-fix-ncurses-configure.patch @@ -0,0 +1,81 @@ +diff --git a/configure.ac b/configure.ac +index 1676ec8..73c8be5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -47,39 +47,33 @@ then + fi + + # PKG_CHECK_MODULES macro is NOT used to avoid confusing syntax errors in case that pkg-config is NOT installed +-AC_CHECK_LIB(ncursesw, killwchar, [], +-[ +- AC_CHECK_LIB(ncurses, killwchar, [], +- [ +- AC_SUBST([NCURSESW_CFLAGS]) +- AC_SUBST([NCURSESW_LIBS]) +- if pkg-config --exists ncursesw +- then +- AC_MSG_NOTICE([Module ncursesw found]) +- NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` +- NCURSESW_LIBS=`pkg-config --libs ncursesw` +- else +- if pkg-config --exists ncurses +- then +- AC_MSG_NOTICE([Module ncurses found]) +- NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` +- NCURSESW_LIBS=`pkg-config --libs ncurses` +- else +- AS_CASE([$host_os], +- [darwin*], +- [ +- AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])]) +- AC_CHECK_HEADER(curses.h) +- ], +- [ +- AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])]) +- AC_CHECK_HEADER(ncursesw/curses.h) +- ] +- ) +- fi +- fi +- ]) # FAIL of ncurses +-]) # FAIL of ncursesw ++AC_SUBST([NCURSESW_CFLAGS]) ++AC_SUBST([NCURSESW_LIBS]) ++if pkg-config --exists ncursesw ++then ++ AC_MSG_NOTICE([Module ncursesw found]) ++ NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` ++ NCURSESW_LIBS=`pkg-config --libs ncursesw` ++else ++ if pkg-config --exists ncurses ++ then ++ AC_MSG_NOTICE([Module ncurses found]) ++ NCURSESW_CFLAGS=`pkg-config --cflags ncursesw` ++ NCURSESW_LIBS=`pkg-config --libs ncurses` ++ else ++ AS_CASE([$host_os], ++ [darwin*], ++ [ ++ AC_CHECK_LIB(ncurses, killwchar, [], [AC_MSG_ERROR([Could not find ncurses library])]) ++ AC_CHECK_HEADER(curses.h) ++ ], ++ [ ++ AC_CHECK_LIB(ncursesw, killwchar, [], [AC_MSG_ERROR([Could not find ncursesw library])]) ++ AC_CHECK_HEADER(ncursesw/curses.h) ++ ] ++ ) ++ fi ++fi + + + # Checks for libraries. +diff --git a/src/Makefile.am b/src/Makefile.am +index 7640d21..17a82b7 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -37,4 +37,4 @@ hstr_SOURCES = \ + install-exec-hook: + ln $(DESTDIR)$(bindir)/hstr$(EXEEXT) $(DESTDIR)$(bindir)/hh$(EXEEXT) + +-hstr_LDADD = $(NCURSES_LIBS) ++hstr_LDADD = $(NCURSESW_LIBS) diff --git a/app-shells/hstr/hstr-2.1.ebuild b/app-shells/hstr/hstr-2.1.ebuild new file mode 100644 index 00000000000..f9bffba4e61 --- /dev/null +++ b/app-shells/hstr/hstr-2.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="Shell history suggest box" +HOMEPAGE="https://github.com/dvorka/hstr http://www.mindforger.com" +SRC_URI="https://github.com/dvorka/hstr/archive/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + sys-libs/ncurses:0=[unicode]" + +DEPEND=" + ${RDEPEND} + virtual/pkgconfig" + +DOCS=( CONFIGURATION.md README.md ) + +PATCHES=( ${FILESDIR}/${P}-fix-ncurses-configure.patch ) + +src_prepare() { + default + sed \ + -e 's:-O2::g' \ + -i src/Makefile.am || die + eautoreconf +}