diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-03 00:07:26 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-03 00:07:26 +0100 |
commit | a3bb28551df94028000fb72308a9e9baa01458b0 (patch) | |
tree | 33b14c7bf0dffbd5bb04dbd5b395514ebdda4896 /app-editors | |
parent | 6657c680376cedf378fcf328e5fa03ed3b41d580 (diff) |
gentoo auto-resync : 03:06:2024 - 00:07:25
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/Manifest.gz | bin | 13945 -> 13947 bytes | |||
-rw-r--r-- | app-editors/vis/Manifest | 5 | ||||
-rw-r--r-- | app-editors/vis/vis-0.9.ebuild | 95 | ||||
-rw-r--r-- | app-editors/vis/vis-9999.ebuild | 27 |
4 files changed, 112 insertions, 15 deletions
diff --git a/app-editors/Manifest.gz b/app-editors/Manifest.gz Binary files differindex 1ebe94163e44..3de38109d76e 100644 --- a/app-editors/Manifest.gz +++ b/app-editors/Manifest.gz diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest index 1c3ebab946cd..f7067b1c1b54 100644 --- a/app-editors/vis/Manifest +++ b/app-editors/vis/Manifest @@ -1,5 +1,8 @@ DIST vis-0.8.tar.gz 404496 BLAKE2B eafb7098a6c8e0d8f277be66984d5fd298ac86d524a4219a7d7730599157ca68c040615622cd1680b101e1cd003eba03343496762d0d4dc2766a079116f21eea SHA512 ab4eda075034955411bdbc0ade2fe9149a48c644fa2f70add8d3b9d749f86b98a4e429745b5cae7fdbc0a1e07c8587539a055cd1c6734bb59e43c580c949e0aa +DIST vis-0.9.tar.gz 456713 BLAKE2B 3e812e054c8d7f88e8866882500fb107cfaccd4f2680dd3ff3f68820bf4c76495dcc591e78916d0faef8390eb23cc14ead7ba4e35d2068bfc04964ad46acb3ce SHA512 64025569f6feb1a3b5aa8aaa79af319cdf8fc1fd5d1f5b29a6838ff00ea950cade1efb366d0a95d77e516f5605048bcb557fd7aa52b3a9510a15e69acaee147c DIST vis-test-0.5.tar.gz 99314 BLAKE2B 988d7e93d0f3c58d2fc8fbe9293049c6a3cc44dfcbfbd4f42f7992815cf33a604340b59171dcd880f7180ae56e3f73f46684b7aacd96438480db6c4592851f2c SHA512 c41b40f23a45a7ebd9c16aa853d9c3b517767cb88ff8dc268da44276a02aa8c77de0fc6aa243a1e4cdfbc27182870b82d0b9bc892bb87ea74d5275d76c554ed1 +DIST vis-test-783b7ef67aa360f0b9bd44fa5ea47e644bc49d69.tar.gz 102134 BLAKE2B c9c32cd7c01027853810b18eb418173d3e04947039bb5c103607602838a143bbff52754dcf806c35bb247c8c6be8b8bf86c3a73daa13a54894df525e6f2c0905 SHA512 dd86561e1eaf196c5b2d27e628eaababa721d26f7fab623ef7dd41e0d30352f5f9eb0e5006cdb1a896c5888304ea40f7fd291f3789d312a201403990bfbaf824 EBUILD vis-0.8-r1.ebuild 2467 BLAKE2B 3aafb010f214b74cbbcad32c98ca2f0bf188b966ef9bc7f596dd1c603eff3dde9f64893b9d17e8e100657d8c1ae44d51feeef072e4869d5cf09a31eca47bb468 SHA512 aa24f0845370483d0f80102733cfbfad64a1a3ab27642156038cdf0be0042352f87350637e5217f211ec7b050a40d45ff051089defef787036bf79fb5d831682 -EBUILD vis-9999.ebuild 2463 BLAKE2B 410b8cc3c72f083f2be43066c865f148e09d4e408ba9529dcb43180c887e529319786352b4a6febe28e55161d3adc3e9591abe40fa278a8ac56b4feed7fc3bd4 SHA512 6ed6299d132d75a1542649be5a4c2186aabad379c0a7faa61ba985bdc89b2a81ce030f4ae0e3c5ad76f83784304d70b30f7756e2bc28f25ee73c272b2458f7f6 +EBUILD vis-0.9.ebuild 2265 BLAKE2B 5c439ce2ef4ccccbaa5db249f06529715d686d31c928fe5f9ad5458e1817da15af3a14d2f7733bf37311a3590948dd37b8b1f0010a1e85c48495f197c833e057 SHA512 c81e5c32de8cad8c3fd5c7e1627b1510143a0895291e376a5af988abe012f331df0211297aeac70e56d19b7905f5fd1c2c0cc5a358f35fc1e7d400be2b0ac331 +EBUILD vis-9999.ebuild 2258 BLAKE2B 37d676f4921d940896c38a537ee64d2d46bae7d6d3311bc384fd32e7468d2e077aefe5aa3612b87e9fb839210d2fe749560c268383781857763cb081f753ee05 SHA512 d39a7e787381bf8641c202c2a4f70f55fc387fa7676f64fb23035c14c56d462be07c023f9d277547817540579e5d8605e8c58ffb9414c9599d4b1726942d48b9 MISC metadata.xml 698 BLAKE2B d09b6b1784d0845c80f097b0a3d27ed58a6ff4193c424ee856e1ec815aedecac8a480507e17046d4145cd0e20213b2165a8986c54bd4b3614f7cb30136e37508 SHA512 16134efe8760a57af6fcdd8adc93173d2a65e3f88d7b701b12a691b9899aaee341716fe29e2d7a89f3dc48ef127c736e63df7bdd586363023ce6a00f048f8864 diff --git a/app-editors/vis/vis-0.9.ebuild b/app-editors/vis/vis-0.9.ebuild new file mode 100644 index 000000000000..dba3a4d7c4fb --- /dev/null +++ b/app-editors/vis/vis-0.9.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VIS_TEST_COMMIT="783b7ef67aa360f0b9bd44fa5ea47e644bc49d69" +LUA_COMPAT=( lua5-2 lua5-3 lua5-4 ) + +inherit lua-single + +if [ "${PV}" == "9999" ]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/martanne/vis.git" +else + SRC_URI=" + https://github.com/martanne/vis/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/martanne/vis-test/archive/${VIS_TEST_COMMIT}.tar.gz -> vis-test-${VIS_TEST_COMMIT}.tar.gz ) + " + KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +fi + +DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor" +HOMEPAGE="https://github.com/martanne/vis" +LICENSE="ISC MIT" +SLOT="0" +IUSE="+ncurses +lua selinux test tre" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +# - Known to also work with NetBSD curses +DEPEND=" + dev-libs/libtermkey + sys-apps/acl + ncurses? ( sys-libs/ncurses:0= ) + lua? ( ${LUA_DEPS} ) + tre? ( dev-libs/tre ) +" +RDEPEND=" + ${DEPEND} + app-eselect/eselect-vi + lua? ( + $(lua_gen_cond_dep 'dev-lua/lpeg[${LUA_USEDEP}]') + ) +" +# lpeg: https://github.com/martanne/vis-test/issues/28 +BDEPEND="test? ( + $(lua_gen_cond_dep 'dev-lua/lpeg[${LUA_USEDEP}]') + $(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]') +)" + +pkg_setup() { + use lua && lua-single_pkg_setup +} + +src_prepare() { + if use test; then + if [ ! "${PV}" == "9999" ]; then + rm -r test || die + mv "${WORKDIR}/vis-test-${VIS_TEST_COMMIT}" test || die + fi + + # https://github.com/martanne/vis-test/issues/27 a Werror clone + sed -i 's;|| strstr(output, "warning");;' test/core/ccan-config.c || die + fi + + sed -i 's|STRIP?=.*|STRIP=true|' Makefile || die + sed -i 's|${DOCPREFIX}/vis|${DOCPREFIX}|' Makefile || die + sed -i 's|DOCUMENTATION = LICENSE|DOCUMENTATION =|' Makefile || die + + default +} + +src_configure() { + ./configure \ + --prefix="${EPREFIX}"/usr \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --disable-lpeg-static \ + $(use_enable lua) \ + $(use_enable ncurses curses) \ + $(use_enable selinux) \ + $(use_enable tre) || die +} + +update_symlinks() { + einfo "Calling eselect vi update --if-unset" + eselect vi update --if-unset +} + +pkg_postrm() { + update_symlinks +} + +pkg_postinst() { + update_symlinks +} diff --git a/app-editors/vis/vis-9999.ebuild b/app-editors/vis/vis-9999.ebuild index 09bd443398c8..7887e2ae1f55 100644 --- a/app-editors/vis/vis-9999.ebuild +++ b/app-editors/vis/vis-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -MY_PTV=0.5 +VIS_TEST_COMMIT="783b7ef67aa360f0b9bd44fa5ea47e644bc49d69" LUA_COMPAT=( lua5-2 lua5-3 lua5-4 ) inherit lua-single @@ -12,8 +12,10 @@ if [ "${PV}" == "9999" ]; then inherit git-r3 EGIT_REPO_URI="https://github.com/martanne/vis.git" else - SRC_URI="https://github.com/martanne/vis/releases/download/v${PV}/${P}.tar.gz - test? ( https://github.com/martanne/vis-test/releases/download/v${MY_PTV}/vis-test-${MY_PTV}.tar.gz )" + SRC_URI=" + https://github.com/martanne/vis/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/martanne/vis-test/archive/${VIS_TEST_COMMIT}.tar.gz -> vis-test-${VIS_TEST_COMMIT}.tar.gz ) + " KEYWORDS="~amd64 ~arm ~riscv ~x86" fi @@ -26,12 +28,15 @@ REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" RESTRICT="!test? ( test )" # - Known to also work with NetBSD curses -DEPEND="dev-libs/libtermkey +DEPEND=" + dev-libs/libtermkey sys-apps/acl ncurses? ( sys-libs/ncurses:0= ) lua? ( ${LUA_DEPS} ) - tre? ( dev-libs/tre )" -RDEPEND="${DEPEND} + tre? ( dev-libs/tre ) +" +RDEPEND=" + ${DEPEND} app-eselect/eselect-vi lua? ( $(lua_gen_cond_dep 'dev-lua/lpeg[${LUA_USEDEP}]') @@ -51,15 +56,9 @@ src_prepare() { if use test; then if [ ! "${PV}" == "9999" ]; then rm -r test || die - mv "${WORKDIR}/vis-test-${MY_PTV}" test || die + mv "${WORKDIR}/vis-test-${VIS_TEST_COMMIT}" test || die fi - # https://bugs.gentoo.org/722014 https://github.com/martanne/vis-test/pull/22 - sed -i 's;./ccan-config > config.h;./ccan-config "${CC}" ${CFLAGS} > config.h;' test/core/Makefile || die - - # https://github.com/martanne/vis-test/pull/29 - sed -i 's;cpp -P;${CPP:-cpp} -P;' test/vim/test.sh || die - # https://github.com/martanne/vis-test/issues/27 a Werror clone sed -i 's;|| strstr(output, "warning");;' test/core/ccan-config.c || die fi |