From 1ddcee0bd115d2f843f82061cb0d1741bf90151d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 5 Jan 2024 08:03:20 +0000 Subject: gentoo auto-resync : 05:01:2024 - 08:03:20 --- dev-libs/libtermkey/Manifest | 2 + .../libtermkey/files/libtermkey-0.22-libtool.patch | 99 ++++++++++++++++++++++ dev-libs/libtermkey/libtermkey-0.22-r2.ebuild | 48 +++++++++++ 3 files changed, 149 insertions(+) create mode 100644 dev-libs/libtermkey/files/libtermkey-0.22-libtool.patch create mode 100644 dev-libs/libtermkey/libtermkey-0.22-r2.ebuild (limited to 'dev-libs/libtermkey') diff --git a/dev-libs/libtermkey/Manifest b/dev-libs/libtermkey/Manifest index f6d463109e07..ab9bff5adfc3 100644 --- a/dev-libs/libtermkey/Manifest +++ b/dev-libs/libtermkey/Manifest @@ -1,4 +1,6 @@ +AUX libtermkey-0.22-libtool.patch 2391 BLAKE2B d228b94f47ca703fa1edbf0da8e9e33a96a132d61e60e0242edc6a01613946e0934bc716c4e062f18433a8549d9c61162c7c2e545004ca3f61c430b22f05e422 SHA512 de4f48d86803314dbf9d4982a345452538b6985189359df8f9afc03f3c4e015628fdc73927a9bef503fabde5d8adb3ed188cafd16f7b318c76669b798a15c52a AUX no-automagic-manpages-compress.patch 498 BLAKE2B c803a33a5a0b8b0c4240ba05a0a9159921a32daa2e86396e85f98acaad26d22cbff814e54e4a96fab4ecfe682a4788bd7dfc263345626617064b76d60c1f0e1a SHA512 d44bc11b6ab9e30ac594982f1f2c139c7806287cd759d106f133010627201874fe8d8290b63835c240fcd0da144455f5b1e63fad8867704c3044da174189e171 DIST libtermkey-0.22.tar.gz 46147 BLAKE2B fddc00a1ae525e5ed8c9c6eaee46fe30a99dbbc76ca988f9f5301b3c5c13a6de4462d6cc612119409a21737176f67ac196109b11fb58f414b25db5b6a49f4982 SHA512 2e8242cd1e6acb8900125dcee9fd47f7554c359363f760b88858c82667e1f3871bdd87358b14c8a133ef3cd2699947a5045477e64cdf7f96d4ead1723e73a219 EBUILD libtermkey-0.22-r1.ebuild 1127 BLAKE2B 5926d7c79fd455ebc6488372c5cd114d3bfab40bb771abfde482bf882fd853201eedc703f0c1adfca173f48e892839e4063fdc122b2caba0f89868a1159e3d23 SHA512 264196995b6f5f30294b0c4491df246b49377f5268510da1b06c7af9b6404862b806f60305a67c67b685f8d994320dc5564e862819b74c39eee0b38d7ab0f358 +EBUILD libtermkey-0.22-r2.ebuild 954 BLAKE2B ed482e2822fa35e32864951b95ef3697fec4b2e331e7d2c8d55d8ab95a06d0f6f48bd6e010b453aac7b7a6e0276d63a1d9300015dceece2f6ee5aa2745418b14 SHA512 177bee225f0363c535a32a6b8a6106c20adb367e6706bf8338e8a98f2e0c3b2402069147cad0b8ff9756fc7a87d64c8b42c46534e0f646c1ce76ad12eeda5869 MISC metadata.xml 358 BLAKE2B 555dc6dc5edb485ded5e2fec2eef70426c2e693853954c5feb8d39914b1cc88aed79dae13df257df86193701e9f842fad8e4686941d3a143a261e289ebc0960c SHA512 1a9faab554e113b8c3c83ad7a6e24fa71ed7ea3838a11677465cc824c7181d512d58443b5ea2fbd52492345e62db5895e3f17a47dc7e413842b02cdad85c5411 diff --git a/dev-libs/libtermkey/files/libtermkey-0.22-libtool.patch b/dev-libs/libtermkey/files/libtermkey-0.22-libtool.patch new file mode 100644 index 000000000000..d3d79ccc0c95 --- /dev/null +++ b/dev-libs/libtermkey/files/libtermkey-0.22-libtool.patch @@ -0,0 +1,99 @@ +Upstream is archived: https://github.com/neovim/libtermkey + +From f3316ec933d618352ee9c6b1f1ef354c8896372e Mon Sep 17 00:00:00 2001 +From: orbea +Date: Thu, 7 Sep 2023 09:52:10 -0700 +Subject: [PATCH] build: Add a minimal configure.ac + +When building with slibtool using the rlibtool symlink the build will +fail when it fails to find the generated libtool. This is required so +rlibtool can determine if it should build shared or static libraries. + +This can be fixed by adding a minimal configure.ac that can generate the +required files with autoreconf. + +Gentoo Bug: https://bugs.gentoo.org/913482 +--- + Makefile => Makefile.in | 29 +++++++++++++++-------------- + configure.ac | 14 ++++++++++++++ + 2 files changed, 29 insertions(+), 14 deletions(-) + rename Makefile => Makefile.in (91%) + create mode 100644 configure.ac + +diff --git a/Makefile b/Makefile.in +similarity index 91% +rename from Makefile +rename to Makefile.in +index 199f143..8f12b07 100644 +--- a/Makefile ++++ b/Makefile.in +@@ -1,14 +1,10 @@ + pkgconfig = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config $(1)) + +-ifeq ($(shell uname),Darwin) +- LIBTOOL ?= glibtool +-else +- LIBTOOL ?= libtool +-endif ++CC = @CC@ ++LIBTOOL = @LIBTOOL@ + +-ifneq ($(VERBOSE),1) +- LIBTOOL +=--quiet +-endif ++override CFLAGS = @CFLAGS@ ++override LDFLAGS = @LDFLAGS@ + + override CFLAGS +=-Wall -std=c99 + +@@ -48,8 +44,8 @@ DEMO_OBJECTS=$(DEMOS:=.lo) + TESTSOURCES=$(wildcard t/[0-9]*.c) + TESTFILES=$(TESTSOURCES:.c=.t) + +-VERSION_MAJOR=0 +-VERSION_MINOR=22 ++VERSION_MAJOR=@MAJOR@ ++VERSION_MINOR=@MINOR@ + + VERSION=$(VERSION_MAJOR).$(VERSION_MINOR) + +@@ -57,10 +53,15 @@ VERSION_CURRENT=15 + VERSION_REVISION=2 + VERSION_AGE=14 + +-PREFIX=/usr/local +-LIBDIR=$(PREFIX)/lib +-INCDIR=$(PREFIX)/include +-MANDIR=$(PREFIX)/share/man ++top_builddir=@top_builddir@ ++ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++datarootdir=@datarootdir@ ++datadir=@datadir@ ++LIBDIR=@libdir@ ++INCDIR=@includedir@ ++MANDIR=@mandir@ + MAN3DIR=$(MANDIR)/man3 + MAN7DIR=$(MANDIR)/man7 + +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..46fe30e +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,14 @@ ++m4_define([MAJOR], [0]) ++m4_define([MINOR], [22]) ++ ++AC_INIT([libtermkey], [MAJOR.MINOR]) ++AC_CONFIG_FILES([Makefile]) ++ ++LT_INIT ++ ++AC_SUBST([top_builddir], [$abs_builddir]) ++ ++AC_SUBST([MAJOR], [MAJOR]) ++AC_SUBST([MINOR], [MINOR]) ++ ++AC_OUTPUT diff --git a/dev-libs/libtermkey/libtermkey-0.22-r2.ebuild b/dev-libs/libtermkey/libtermkey-0.22-r2.ebuild new file mode 100644 index 000000000000..5fc61796716c --- /dev/null +++ b/dev-libs/libtermkey/libtermkey-0.22-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="Library for easy processing of keyboard entry from terminal-based programs" +HOMEPAGE="http://www.leonerd.org.uk/code/libtermkey/" +SRC_URI="http://www.leonerd.org.uk/code/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos" +IUSE="demos" + +RDEPEND="dev-libs/unibilium:=" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + virtual/pkgconfig + demos? ( dev-libs/glib:2 ) +" + +PATCHES=( + "${FILESDIR}"/no-automagic-manpages-compress.patch + "${FILESDIR}"/${PN}-0.22-libtool.patch # 913482 +) + +src_prepare() { + default + + if ! use demos; then + sed -e '/^all:/s:$(DEMOS)::' -i Makefile.in || die + fi + + append-flags -fPIC + + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install + find "${D}" -name '*.la' -delete || die + doman "${S}"/man/*.3 + doman "${S}"/man/*.7 +} -- cgit v1.2.3