logo

overlay

Personnal gentoo overlay
commit: a0c279d36e6e11feff3cff5180a7875c7348c728
parent: 18440609b219cc59705163bcd591517a0ad14491
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  4 Aug 2017 11:15:44 +0200

app-editors/vis: Add FEATURES=test

Diffstat:

app-editors/vis/Manifest | 1+
app-editors/vis/vis-0.3.ebuild | 18++++++++++++++++--
2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest @@ -1 +1,2 @@ DIST vis-0.3.tar.gz 334216 SHA256 bed8ed32ef4f81bc4fd28e297ea8edc80027ac6923b9d3b5bd955d24899c7077 SHA512 e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62 WHIRLPOOL a0ddd69b88b4131d4b9c2ba5494e255f20cd99f91998e4ad4fcec3e0298e39d9319571201b8ae4c8b4d21da78b99d865d72bfb534024a89863d66b9968e562c8 +DIST vis-test-0.1.tar.gz 95274 SHA256 78c2c4416ef284e2362bb0e761ee9c4add106d122ac44b341c6bcf449f0b17a6 SHA512 433a67892f27eb01f3ea6224e1ded393cd949b4d60f7c14656fdd526c02d2b309f63d39887d8d7ba11cbad3e183ab3cd1a913ac40aa29eadb7fa700eb76424b6 WHIRLPOOL 45d257cdc625d249e45d8581f11c976c4957812a41274943af622521e6a599bc012809fa17651dcc278579b1f0ef2d40468c746080cf2f82b52854854073e1e8 diff --git a/app-editors/vis/vis-0.3.ebuild b/app-editors/vis/vis-0.3.ebuild @@ -4,18 +4,32 @@ EAPI=5 +# Package test version and name +MY_PTV=0.1 +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" +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 tre" +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) \