diff options
Diffstat (limited to 'app-emacs/vterm')
-rw-r--r-- | app-emacs/vterm/Manifest | 2 | ||||
-rw-r--r-- | app-emacs/vterm/vterm-0.0.2_p20230217.ebuild | 77 |
2 files changed, 79 insertions, 0 deletions
diff --git a/app-emacs/vterm/Manifest b/app-emacs/vterm/Manifest index 57e7a8dc8c45..6dc95acbc616 100644 --- a/app-emacs/vterm/Manifest +++ b/app-emacs/vterm/Manifest @@ -2,6 +2,8 @@ AUX 50vterm-gentoo.el 213 BLAKE2B adb1452d0bf816beceec4367a33176034f90c46b164917 AUX vterm-0.0.1_pre20210618-dont-compile.patch 772 BLAKE2B 235f1050ccf434663da28794f8b04b8f7e02e824373a75ba214c3ad213dc598f5390c22d3ad068fa2c8b041232664ff5170b08d21c8e9d60b8ea1eb3dae44a48 SHA512 8787887ec2d7c2ee09710ca8683bf90e3ab81d930288e66d74a926f3619f4bea2e37f1bdec0021192b85dc3dbcf778b4e4f5ad82805b35033b212cb43fcbe5e6 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 +DIST vterm-0.0.2_p20230217.tar.gz 61049 BLAKE2B d974e8873b2f3074c23f797eb862734ed6af2caca2213c0cb972b92180567ea87e25a2d435d592dd7a2f236380fce0180b161490e506cffef24f11d25b38fbc6 SHA512 c13b79054d305e2ee73725d323a1409c8d0f9529b13c659a3e7d273dbaa79f09cde5d4e3097ed2b40b106b4fad0c5f465381e1a8337e9ffc21be0515e376c42a EBUILD vterm-0.0.1_pre20210618.ebuild 1242 BLAKE2B 9ccf5d930934d0b3fe78ef29c21ec51e2785ae9077b6d6f81d0f887b4c1eec87019ae1701b4c84021436bb6feea19b211574242ae7dddb5015a25449127e5637 SHA512 2a2c915c097b7f5eb2c4691dedfcf976dfbfd94d9540aeba5829db3c2f10852aa39f36550e84e825cb05e657e592fc19394a073d49a4ce5d7031b6ca41840d64 EBUILD vterm-0.0.2_p20221118.ebuild 1387 BLAKE2B 2170bfb0df4e8c5bd23c23be18fe2297cd9c74871581fc0bca04fbee6c2f69f25f71d22bb617cc4505c5ed4df25a311eb24980a01796131e0eb94aa86a52ee0d SHA512 794fda5744e6738fb6bc060fcd8d20054f490623775f067e4a93c0858ced6b8a5c2831f11fba1b2196bf369c9b915a825b7058ac594d4111aa4af8ecd45515ab +EBUILD vterm-0.0.2_p20230217.ebuild 1642 BLAKE2B 9a456716c3c937b685d9c1f2147d40c6fb9889e0e3b4ccd95d969db344d656baa2eedf64089cfc1f8886b08acde6de466a46a545c7f3324190a3e11ddd5e8f74 SHA512 c2d2dd21e7bf6016428878f8286242795743da9ca4776ec45385d2f7a8793a2aef02c95185505012ffd2e7d0c38657ab7393e5a80a32cba4a5f076697292b0fe MISC metadata.xml 634 BLAKE2B 09ec6e8f2b00735c5fc3dbca525205b0b98a580feecfea36a1c2b435bfd6de2e4b5e85c47c07f4830da1b3ddc8793d06e4e6ec3a02e5df19c876e0251226f5c7 SHA512 09d9be89b4275192c5048eb3a7fc3729d6d4923861bc5ab075c8097e7bb1f6776649e82440e53b1d0236dc669a4580aa2da31da5cdc5994b59eabaffdeeedc61 diff --git a/app-emacs/vterm/vterm-0.0.2_p20230217.ebuild b/app-emacs/vterm/vterm-0.0.2_p20230217.ebuild new file mode 100644 index 000000000000..6dc327fcbdf2 --- /dev/null +++ b/app-emacs/vterm/vterm-0.0.2_p20230217.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 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} = *_p20230217 ]] ; then + COMMIT=3e5a9b754b8e61850bb7d1b63b090b9fbf6687f3 + 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 +} |