logo

overlay

My (experimental) gentoo overlay
commit: 61ebf69ca09d478d31347711c5a6cb6b81a03cff
parent: 6a1a1577195e32d75e2743bc8983ac9ac10af35e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  2 Aug 2018 03:48:50 +0200

app-editors/vis: Bump to 0.5

Diffstat:

Mapp-editors/vis/Manifest8++++----
Aapp-editors/vis/vis-0.5.ebuild65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+), 4 deletions(-)

diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest @@ -1,4 +1,4 @@ -DIST vis-0.3.tar.gz 334216 SHA256 bed8ed32ef4f81bc4fd28e297ea8edc80027ac6923b9d3b5bd955d24899c7077 SHA512 e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62 WHIRLPOOL a0ddd69b88b4131d4b9c2ba5494e255f20cd99f91998e4ad4fcec3e0298e39d9319571201b8ae4c8b4d21da78b99d865d72bfb534024a89863d66b9968e562c8 -DIST vis-0.4.tar.gz 381046 SHA256 f11ba41cfb86dd39475960abfd12469de4da0ccfdb941f1d7680d89d987694c5 SHA512 d8fcf667ecad7b32752d6c5dbd004544e1a9283775d54d93c24ce8f314b98154aed5c6014cc03223d8427c2b1e3fd0d4b348dfa12ce30236fddd93b34521ee5f WHIRLPOOL 6e098bdac4aec74999a8555d3385a4a5312d797e495a1a25c36daa1287f3ada5410ad28b527e36c1a6710d4ef579166def32d6bcd4e5fd50bbed936e268f28a4 -DIST vis-test-0.1.tar.gz 95274 SHA256 78c2c4416ef284e2362bb0e761ee9c4add106d122ac44b341c6bcf449f0b17a6 SHA512 433a67892f27eb01f3ea6224e1ded393cd949b4d60f7c14656fdd526c02d2b309f63d39887d8d7ba11cbad3e183ab3cd1a913ac40aa29eadb7fa700eb76424b6 WHIRLPOOL 45d257cdc625d249e45d8581f11c976c4957812a41274943af622521e6a599bc012809fa17651dcc278579b1f0ef2d40468c746080cf2f82b52854854073e1e8 -DIST vis-test-0.2.tar.gz 97770 SHA256 26f3a82842e098f4004f5a8741ac501e209aa36704971b7e68d8104102c90788 SHA512 892effa08c80c75e78eeb993ba8a0ddc110cc6f654fa1bf970454c35c839e9467b0ab41578f49af1fba0514c61f887fa044b9d01ab58f4dd749582a9550a2c29 WHIRLPOOL 9b45ab2bf0b8c434a367d4877748f2b1ef88f598e2e94d6f05c51366283852d163b7809a7e5e89f4923eb24e3488ee2714d1164da240647dd8af91108655ad6f +DIST vis-0.4.tar.gz 381046 BLAKE2B 612d9f17c5ffb00be9e5c14da0d52257e55e53250cb9ba80750feaf5d90caa53aed0f02e32413a10f161e121019cf758902158ddeac09c2516d18779f4264cda SHA512 d8fcf667ecad7b32752d6c5dbd004544e1a9283775d54d93c24ce8f314b98154aed5c6014cc03223d8427c2b1e3fd0d4b348dfa12ce30236fddd93b34521ee5f +DIST vis-0.5.tar.gz 390461 BLAKE2B e628891c48dbbd11ed706768a3c625ffe9edf4fea3cd77452b4b41ae0d50194a31647e4cc945b69fb3af8fe7fd76ebf5f7afd8c2baa356f5f9fd3cc04be129ca SHA512 fe6b0394006562177efdf06713d7b95cd12fabf90b171c262eb2620d2b0944e73d3d8bb61f4f0d43d32154f0490c338bbc161a89455b14bb8a9d22cd75097780 +DIST vis-test-0.2.tar.gz 97770 BLAKE2B 9f8e31eb70ab8f9ce089f66ef29520e8250e02de375f9f8f0e33722c6a392bc6e04e7122728826708b305fb439c2b39f7fe3e233d7be162930aa46bf31bdb005 SHA512 892effa08c80c75e78eeb993ba8a0ddc110cc6f654fa1bf970454c35c839e9467b0ab41578f49af1fba0514c61f887fa044b9d01ab58f4dd749582a9550a2c29 +DIST vis-test-0.3.tar.gz 97814 BLAKE2B f62b216df3d846bb8bfdb14f6092309b55f6571cbc980e7a9aed46b1672fbaa65c007ac4617266dff3d5ad0293e3f5e7bd8390252817ebcdd6f64edb350f82ee SHA512 5f68a70cf6f1fb64f9b50c1a56940c966f205e51240c7dd1175bc15f3e42b475fb6842a53e36547113955c2efa359de0cc71e0800305b0e45881c319a14564e5 diff --git a/app-editors/vis/vis-0.5.ebuild b/app-editors/vis/vis-0.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PTV=0.3 + +DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor" +HOMEPAGE="https://github.com/martanne/vis" +SRC_URI="https://github.com/martanne/vis/releases/download/v${PV}/vis-v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/martanne/vis-test/releases/download/v${MY_PTV}/vis-test-${MY_PTV}.tar.gz -> vis-test-${MY_PTV}.tar.gz )" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+ncurses lua lpeg selinux test tre" + +#TODO: virtual/curses +DEPEND="dev-libs/libtermkey + lua? ( >=dev-lang/lua-5.2:= ) + ncurses? ( sys-libs/ncurses:= ) + tre? ( dev-libs/tre:= )" +RDEPEND="${DEPEND} + app-eselect/eselect-vi + lua? ( lpeg? ( >=dev-lua/lpeg-0.12 ) )" + +S="${WORKDIR}/vis-v${PV}" + +src_prepare() { + if use test; then + rm -r test || die + mv "${WORKDIR}/vis-test-${MY_PTV}" test || die + if ! type -P vim &>/dev/null; then + sed -i 's/.*vim.*//' test/Makefile || die + fi + 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="${EROOT}usr" \ + --docdir="${EROOT}usr/share/doc/${PF}" \ + $(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 +}