From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1588712-garchives=archives.gentoo.org@lists.gentoo.org> 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 3FC08158451 for <garchives@archives.gentoo.org>; Mon, 8 Jan 2024 19:22:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E4CC2BC032; Mon, 8 Jan 2024 19:22:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 425462BC032 for <gentoo-commits@lists.gentoo.org>; Mon, 8 Jan 2024 19:22:49 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1ED2D343304 for <gentoo-commits@lists.gentoo.org>; Mon, 8 Jan 2024 19:22:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3077714C4 for <gentoo-commits@lists.gentoo.org>; Mon, 8 Jan 2024 19:22:45 +0000 (UTC) From: "Maciej Barć" <xgqt@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" <xgqt@gentoo.org> Message-ID: <1704741762.1c50820cd5c0133bd6d3ca827e7df06a6b7e7336.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/vterm/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/vterm/Manifest app-emacs/vterm/vterm-0.0.2_p20240102.ebuild X-VCS-Directories: app-emacs/vterm/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 1c50820cd5c0133bd6d3ca827e7df06a6b7e7336 X-VCS-Branch: master Date: Mon, 8 Jan 2024 19:22:45 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: da6be6d7-7df4-45aa-87e2-7f5968a4b697 X-Archives-Hash: ca23914e73089d119ca894d1dbc2db4c commit: 1c50820cd5c0133bd6d3ca827e7df06a6b7e7336 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Mon Jan 8 18:06:26 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Mon Jan 8 19:22:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c50820c app-emacs/vterm: bump to 0.0.2_p20240102 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> app-emacs/vterm/Manifest | 1 + app-emacs/vterm/vterm-0.0.2_p20240102.ebuild | 81 ++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/app-emacs/vterm/Manifest b/app-emacs/vterm/Manifest index 60b61a82523b..99d8e552b6c2 100644 --- a/app-emacs/vterm/Manifest +++ b/app-emacs/vterm/Manifest @@ -1 +1,2 @@ DIST vterm-0.0.2_p20230217.tar.gz 61049 BLAKE2B d974e8873b2f3074c23f797eb862734ed6af2caca2213c0cb972b92180567ea87e25a2d435d592dd7a2f236380fce0180b161490e506cffef24f11d25b38fbc6 SHA512 c13b79054d305e2ee73725d323a1409c8d0f9529b13c659a3e7d273dbaa79f09cde5d4e3097ed2b40b106b4fad0c5f465381e1a8337e9ffc21be0515e376c42a +DIST vterm-0.0.2_p20240102.tar.gz 61754 BLAKE2B 283730dbd1d826590111495c798bfdf78a1921c73ac6aba7f062590c775c2d99265f70cf915f486316837a28e97f0e6a0e3fca72aed74295fbfc807acd8c1a99 SHA512 74a6a789ffc2863eea7be6775761c65537812cb0a6c571334ae3958129ddd3e7bbe764812e4dfe2782194a3e92af6cc6d04e400ca94a2e73dfa38fa0b476eabc diff --git a/app-emacs/vterm/vterm-0.0.2_p20240102.ebuild b/app-emacs/vterm/vterm-0.0.2_p20240102.ebuild new file mode 100644 index 000000000000..47fb04defbc9 --- /dev/null +++ b/app-emacs/vterm/vterm-0.0.2_p20240102.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=emacs-libvterm +NEED_EMACS=26 + +inherit cmake elisp + +DESCRIPTION="Fully-featured terminal emulator based on libvterm" +HOMEPAGE="https://github.com/akermu/emacs-libvterm/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/akermu/${MY_PN}.git" +else + if [[ "${PV}" = *_p20240102 ]] ; then + COMMIT=c3a3a23a5eace137947524c93644204bf6b56cff + + SRC_URI="https://github.com/akermu/${MY_PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PN}-${COMMIT}" + else + SRC_URI="https://github.com/akermu/${MY_PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PN}-${PV}" + fi + + KEYWORDS="~amd64 ~arm64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +DEPEND=" + >=dev-libs/libvterm-0.2:= +" +RDEPEND=" + ${DEPEND} + >=app-editors/emacs-26:*[dynamic-loading] +" + +PATCHES=( "${FILESDIR}/${PN}-0.0.1_pre20210618-dont-compile.patch" ) + +DOCS=( README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + if [[ -e "${ESYSROOT}/usr/include/emacs-module.h" ]] ; then + # Use system header file instead of bundled one. + rm emacs-module.h || die + else + ewarn "${ESYSROOT}/usr/include/emacs-module.h does not exist" + ewarn "Falling back to bundled header file" + fi + + cmake_src_prepare +} + +src_configure() { + local -a mycmakeargs=( + -DUSE_SYSTEM_LIBVTERM=ON + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + elisp_src_compile +} + +src_install() { + elisp_src_install + elisp-modules-install "${PN}" vterm-module.so + + # Install shell-side vterm support scripts. + insinto "${SITEETC}/${PN}" + doins -r etc +}