diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-01-23 08:50:50 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-01-23 08:56:59 +0100 |
commit | c3c643dc80a2759de9081defc2e0733ebe679c66 (patch) | |
tree | 52a0bba02af8ba8f9877573f1c68d29682230175 /app-emacs/vterm | |
parent | dev-ml/topkg: bump to 1.0.7 (diff) | |
download | gentoo-c3c643dc80a2759de9081defc2e0733ebe679c66.tar.gz gentoo-c3c643dc80a2759de9081defc2e0733ebe679c66.tar.bz2 gentoo-c3c643dc80a2759de9081defc2e0733ebe679c66.zip |
app-emacs/vterm: bump to 0.0.2_p20221118
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/vterm')
-rw-r--r-- | app-emacs/vterm/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/vterm/vterm-0.0.2_p20221118.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/app-emacs/vterm/Manifest b/app-emacs/vterm/Manifest index 5294b04ce525..4203d99f8a41 100644 --- a/app-emacs/vterm/Manifest +++ b/app-emacs/vterm/Manifest @@ -1,2 +1,3 @@ DIST vterm-0.0.1_pre20200713.tar.gz 48160 BLAKE2B 96c45ddb139d19f3020d7a8eebc1ee31a7dc098f47c16cfffc7bf3327261a4366763744a8158d3c8a066ec94be4966a5ef78804db95c9025eee06fb8c9e4aa76 SHA512 17726ad0957daeab2a87b398bfa24dbe3c4c48dfba932138a71cd8c992bf20bd2925a7118a89247bbd674dbecd7fda8663c564a278168bb207034efb03e50cd0 DIST vterm-0.0.1_pre20210618.tar.gz 58389 BLAKE2B 71221d470e01d647093e3a3af0c57b416ef23e81ff4d783d032613e19f1d467752fea0d242ea0f72092e3cdabbdb88ba15a840d9e4116cf5aa95d54a020efe0d SHA512 9e23eff1c9c5d2cc8e970bb4d9910b3e0258987d09b765ece188641ff5e2696e30d59a409f45253f243162b8e71c0ea301049ff37c93ffec1e1c25206ca9c5d2 +DIST vterm-0.0.2_p20221118.tar.gz 60288 BLAKE2B a86e2a79457eb02212402a3054bd867af38caf2c52e1d2fd21cbd7a665f2383909ef99fa6291c9e0a6d9841d65dfbda175937bf219ec7e1e8fb8bd1c5add300e SHA512 1825ef38afc2d4144611b81c49c64b5271bc58cd96f6d3bdc6869d2d9c7cc7785864621035e3e787f7c2c0634672806ba217f3c3d589dfc342d59bd5480f96a1 diff --git a/app-emacs/vterm/vterm-0.0.2_p20221118.ebuild b/app-emacs/vterm/vterm-0.0.2_p20221118.ebuild new file mode 100644 index 000000000000..bde3da62c594 --- /dev/null +++ b/app-emacs/vterm/vterm-0.0.2_p20221118.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26 +MY_PN="emacs-libvterm" +[[ ${PV} = *_p20221118 ]] && COMMIT="f14d113ee4618f052879509ec378feb9766b871b" + +inherit cmake elisp + +DESCRIPTION="Fully-featured terminal emulator based on libvterm" +HOMEPAGE="https://github.com/akermu/emacs-libvterm/" +SRC_URI="https://github.com/akermu/${MY_PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}"/${MY_PN}-${COMMIT} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +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 +} |