logo

overlay

Personnal gentoo overlay
commit: 7f861dbde1496d20cfc9b6ced516ebb55e2bb558
parent: ee3147e041bcce0b63152b7744a2b21526b947e9
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  4 Aug 2017 11:20:48 +0200

app-editors/vis: Bump to version 0.4

Diffstat:

app-editors/vis/Manifest | 2++
app-editors/vis/vis-0.4.ebuild | 52++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest @@ -1,2 +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 diff --git a/app-editors/vis/vis-0.4.ebuild b/app-editors/vis/vis-0.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +# Package test version and name +MY_PTV=0.2 +MY_PTN=${PN}-test +MY_PT=${MY_PTN}-${MY_PTV} + +DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor." +HOMEPAGE="https://github.com/martanne/vis" +SRC_URI="https://github.com/martanne/vis/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/martanne/vis-test/archive/v${MY_PTV}.tar.gz -> ${MY_PT}.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:= ) tre? ( dev-libs/tre:= ) ncurses? ( sys-libs/ncurses:= )" +RDEPEND="${DEPEND} lua? ( lpeg? ( >=dev-lua/lpeg-0.12 ) ) " + +src_prepare() { + use test && ( + rm -r "${S}/test" + mv "${WORKDIR}/${MY_PT}" "${S}/test" + which vim &>/dev/null || sed -i 's/.*vim.*//' "${S}/test/Makefile" + ) +} + +src_configure() { + econf \ + $(use_enable lua) \ + $(use_enable ncurses curses) \ + $(use_enable selinux) \ + $(use_enable tre) +} + +update_symlinks() { + einfo "Calling eselect vi update --if-unset…" + eselect vi update --if-unset +} + +pkg_postrm() { + update_symlinks +} + +pkg_postinst() { + update_symlinks +}