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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AA53B158089 for ; Mon, 11 Sep 2023 00:54:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E457C2BC041; Mon, 11 Sep 2023 00:54:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CAD7D2BC041 for ; Mon, 11 Sep 2023 00:54:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0F1C5335C4E for ; Mon, 11 Sep 2023 00:54:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 547491139 for ; Mon, 11 Sep 2023 00:54:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1694393602.8b140405dc0efdab2a482a4993dbff88fa340dad.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libvterm/files/, dev-libs/libvterm/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libvterm/Manifest dev-libs/libvterm/files/libvterm-0.3.3-slibtool.patch dev-libs/libvterm/libvterm-0.3.3.ebuild X-VCS-Directories: dev-libs/libvterm/files/ dev-libs/libvterm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8b140405dc0efdab2a482a4993dbff88fa340dad X-VCS-Branch: master Date: Mon, 11 Sep 2023 00:54:12 +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: 93fff347-5caa-4346-a000-b4d9e9dd7390 X-Archives-Hash: 89e10589839fcdfb53b13e99f2c3b6cb commit: 8b140405dc0efdab2a482a4993dbff88fa340dad Author: Brahmajit Das gmail com> AuthorDate: Sun Sep 10 12:51:24 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Sep 11 00:53:22 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b140405 dev-libs/libvterm: add 0.3.3 Needed for new neovim. Bug: https://bugs.gentoo.org/913912 Signed-off-by: Brahmajit Das gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32708 Signed-off-by: Sam James gentoo.org> dev-libs/libvterm/Manifest | 1 + .../libvterm/files/libvterm-0.3.3-slibtool.patch | 102 +++++++++++++++++++++ dev-libs/libvterm/libvterm-0.3.3.ebuild | 43 +++++++++ 3 files changed, 146 insertions(+) diff --git a/dev-libs/libvterm/Manifest b/dev-libs/libvterm/Manifest index 7c3016c59f13..ae74e3979919 100644 --- a/dev-libs/libvterm/Manifest +++ b/dev-libs/libvterm/Manifest @@ -1,4 +1,5 @@ DIST libvterm-0.1.4.tar.gz 69122 BLAKE2B 4f0acc9ec6755c4a840e5df6c32c44e12c5316b5c5918d0e8eada19d819736c3e5b9090b468e32b3141a7fbb5ba226e365be27d6d1d9ca22f9f5e365fc3971c2 SHA512 90b5d47417e3f469df5c6574a27d12bd6bd1571d17cab7c4ac0ee61b1dbcb6361987f6fdfd11e314ea32f8958ec165c319a34d0f77288947c7cbc11de697d524 DIST libvterm-0.3.1.tar.gz 79344 BLAKE2B 2732bc477fb339945c1a9242a8265d182891d507c0dec71371a9e7010434dad0d35152fdeaa32bbf50fdd4bd138bb42e8d95a9771c704d693032e32d37a87452 SHA512 1f4bbee8847a9c8cfab3831a3512b866eb0f90f7d3600c4583d2e1eac18458f21bf5ca4fe4b067b27920a04aa7eac5dd2d4a62f6b7ebd56a417fed60d421853d DIST libvterm-0.3.2.tar.gz 79471 BLAKE2B c7347257c6cf6bd7b5203a43004eb9fd2c00660f113788fc15f4b29f9224e30017bb24cfe2bc35a7890ca0131ffad37dcfa88104404e8fdce8bbe8cfb8296222 SHA512 aaff71a1c43eff1842cfc1bfd47936ea2c51e75a41506bb0e36860f8f497d198539c10f86c7febc86b3dea8c0de54b03580d59b170176a4207dc411ae59cb035 +DIST libvterm-0.3.3.tar.gz 80024 BLAKE2B 5778533079a467ab3073e150b24a0c7d9fd2249969ed2666df897d6e4a9688bc386a5696fd3a5ce144f196587ad7c86f7980981e81da83e5f68c572da70423f4 SHA512 0117f71988d2c3c1b5e46d0778ce491a8ab9033f3afc9a9905b6d52d0e2adb59ee101667826281470e4c9de5178cbe966f4ecb2c7673e9644c7ca3508491bb49 DIST libvterm-0.3.tar.gz 83861 BLAKE2B a2e8e9d80698880d87f9d26977a4e3dec7b520c3096d0ca6f7823254eeebe51666380ed2a5c05c923dd8b138f15c87e671fdfb03e5511c01711e112cdda9867a SHA512 2a7b6831476465d6a9f7c792406f4e3c4eca0c3dbce4b7031f2646c87e33692128a3d3ce27e1541403772cc0b5eface7bd41325e1e5300c3915bfc0bac97a896 diff --git a/dev-libs/libvterm/files/libvterm-0.3.3-slibtool.patch b/dev-libs/libvterm/files/libvterm-0.3.3-slibtool.patch new file mode 100644 index 000000000000..f439a1febc89 --- /dev/null +++ b/dev-libs/libvterm/files/libvterm-0.3.3-slibtool.patch @@ -0,0 +1,102 @@ +Author: orbea +Date: Tue Aug 29 16:56:23 2023 -0700 +Subject: [PATCH] build: Add a minimal configures script + +When building libvterm with slibtool using the rlibtool symlink the +build will fail when the generated libtool is not found. This file is +required with rlibtool so that the build can determine if the build +should be shared, static or both. + +This can be solved by adding a minimal configure script. + +The build steps are now: + +autoreconf -fi +./configure +make +make install + +Gentoo Bug: https://bugs.gentoo.org/779034 +diff --git a/Makefile b/Makefile.in +similarity index 88% +rename from Makefile +rename to Makefile.in +index 41b08ed..763c8c4 100644 +--- a/Makefile ++++ b/Makefile.in +@@ -1,13 +1,13 @@ +-ifeq ($(shell uname),Darwin) +- LIBTOOL ?= glibtool +-else +- LIBTOOL ?= libtool +-endif ++top_builddir = @top_builddir@ ++ ++LIBTOOL = @LIBTOOL@ + + ifneq ($(VERBOSE),1) + LIBTOOL +=--quiet + endif + ++CC = @CC@ ++ + override CFLAGS +=-Wall -Iinclude -std=c99 -Wpedantic + + ifeq ($(shell uname),SunOS) +@@ -36,17 +36,21 @@ INCFILES=$(TBLFILES:.tbl=.inc) + + HFILES_INT=$(sort $(wildcard src/*.h)) $(HFILES) + ++VERSION_MAJOR=@VERSION_MAJOR@ ++VERSION_MINOR=@VERSION_MINOR@ ++ + VERSION_CURRENT=0 + VERSION_REVISION=0 + VERSION_AGE=0 + +-VERSION=0.3.3 ++VERSION=@PACKAGE_VERSION@ + +-PREFIX=/usr/local +-BINDIR=$(PREFIX)/bin +-LIBDIR=$(PREFIX)/lib +-INCDIR=$(PREFIX)/include +-MANDIR=$(PREFIX)/share/man ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++BINDIR=@bindir@ ++LIBDIR=@libdir@ ++INCDIR=@includedir@ ++MANDIR=@mandir@ + MAN3DIR=$(MANDIR)/man3 + + all: $(LIBRARY) $(BINFILES) +@@ -70,7 +74,7 @@ src/encoding.lo: $(INCFILES) + + bin/%: bin/%.c $(LIBRARY) + @echo CC $< +- @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $< -lvterm $(LDFLAGS) ++ @$(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + + t/harness.lo: t/harness.c $(HFILES) + @echo CC $< +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..34292fd +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,14 @@ ++m4_define([version_major], [0]) ++m4_define([version_minor], [3]) ++ ++AC_INIT([libvterm], [version_major.version_minor]) ++AC_CONFIG_FILES([Makefile]) ++ ++LT_INIT ++ ++AC_SUBST([top_builddir], [$abs_builddir]) ++ ++AC_SUBST([VERSION_MAJOR], [version_major]) ++AC_SUBST([VERSION_MINOR], [version_minor]) ++ ++AC_OUTPUT diff --git a/dev-libs/libvterm/libvterm-0.3.3.ebuild b/dev-libs/libvterm/libvterm-0.3.3.ebuild new file mode 100644 index 000000000000..c368ca342d20 --- /dev/null +++ b/dev-libs/libvterm/libvterm-0.3.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator" +HOMEPAGE="https://www.leonerd.org.uk/code/libvterm/" +SRC_URI="https://launchpad.net/libvterm/trunk/v0.3/+download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos" + +BDEPEND=" + dev-lang/perl + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.3.3-slibtool.patch # 779034 +) + +src_prepare() { + default + eautoreconf +} + +src_compile() { + emake VERBOSE=1 +} + +src_test() { + emake VERBOSE=1 test +} + +src_install() { + emake VERBOSE=1 DESTDIR="${D}" install + + find "${ED}" -name '*.la' -delete || die "Failed to prune libtool files" + find "${ED}" -name '*.a' -delete || die +}