summaryrefslogtreecommitdiff
path: root/app-emacs/vterm
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/vterm')
-rw-r--r--app-emacs/vterm/Manifest3
-rw-r--r--app-emacs/vterm/vterm-0.0.2_p20240102.ebuild81
-rw-r--r--app-emacs/vterm/vterm-9999.ebuild81
3 files changed, 165 insertions, 0 deletions
diff --git a/app-emacs/vterm/Manifest b/app-emacs/vterm/Manifest
index 87ed08f2c3b2..2a54bbecbf56 100644
--- a/app-emacs/vterm/Manifest
+++ b/app-emacs/vterm/Manifest
@@ -1,5 +1,8 @@
AUX 50vterm-gentoo.el 213 BLAKE2B adb1452d0bf816beceec4367a33176034f90c46b1649178cce093160117d14c01d1ccebefa57bebbf276d01e812223876a766567fbbb95589851b51db2456db2 SHA512 2847b924a1e3218d433391396681642a88192396a60f25f5da6824a9546a0f155d068b1bfc2115f0698b87e07ca50845ebbdc0a71de2ff8203fdf14b7e43ef0d
AUX vterm-0.0.1_pre20210618-dont-compile.patch 772 BLAKE2B 235f1050ccf434663da28794f8b04b8f7e02e824373a75ba214c3ad213dc598f5390c22d3ad068fa2c8b041232664ff5170b08d21c8e9d60b8ea1eb3dae44a48 SHA512 8787887ec2d7c2ee09710ca8683bf90e3ab81d930288e66d74a926f3619f4bea2e37f1bdec0021192b85dc3dbcf778b4e4f5ad82805b35033b212cb43fcbe5e6
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
EBUILD vterm-0.0.2_p20230217.ebuild 1641 BLAKE2B 7fbe2aae6291d740f405cf7a99245de1014c1ba5005384032d029551db46e71941c6e7dd674f69b86442f7406b1ff7b44e68d1d8a7f89e3642b03c89a6c6f791 SHA512 d94b28761ffcc2c67d5e73e009b5420d88890f2608572e5a7aaa73d752abd92b2f97d1e9866cd8a3e32302cee83bd88292222fbfa4fbe153e746915bc5cda3b4
+EBUILD vterm-0.0.2_p20240102.ebuild 1655 BLAKE2B 82715ebb184790160a6d56be2da83f28a7cf32b0d8532778ef50c1c8486d0fd9d604207ef6987aa62bfbcbcdac419fc08e231ee23ff2efd9774029e6b8f700c3 SHA512 0714aa49b838e03a785303e132fba2d2058a32349345912ee6d64f226bc4b0982ca65354856107562fe2ba925c67e070d7985d990a83ea480a5fd8d90a186d51
+EBUILD vterm-9999.ebuild 1655 BLAKE2B 82715ebb184790160a6d56be2da83f28a7cf32b0d8532778ef50c1c8486d0fd9d604207ef6987aa62bfbcbcdac419fc08e231ee23ff2efd9774029e6b8f700c3 SHA512 0714aa49b838e03a785303e132fba2d2058a32349345912ee6d64f226bc4b0982ca65354856107562fe2ba925c67e070d7985d990a83ea480a5fd8d90a186d51
MISC metadata.xml 634 BLAKE2B 09ec6e8f2b00735c5fc3dbca525205b0b98a580feecfea36a1c2b435bfd6de2e4b5e85c47c07f4830da1b3ddc8793d06e4e6ec3a02e5df19c876e0251226f5c7 SHA512 09d9be89b4275192c5048eb3a7fc3729d6d4923861bc5ab075c8097e7bb1f6776649e82440e53b1d0236dc669a4580aa2da31da5cdc5994b59eabaffdeeedc61
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
+}
diff --git a/app-emacs/vterm/vterm-9999.ebuild b/app-emacs/vterm/vterm-9999.ebuild
new file mode 100644
index 000000000000..47fb04defbc9
--- /dev/null
+++ b/app-emacs/vterm/vterm-9999.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
+}