added insomnia ebuild to repo

This commit is contained in:
Aaro Koivukangas
2023-07-28 15:20:23 +03:00
parent 69a8b770c8
commit c20aee0365
6 changed files with 83 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
DIST Insomnia.Core-2023.4.0.tar.gz 135919711 BLAKE2B 7b8f0e576adeb494a13ab67883dfbbd3b9efbb948c0a27e1cb816d504a8f21bee3757eb3a75dba707ba1633e225350a7bc712a0f6ea8857cdd6ce7fb061c9b7f SHA512 2a35aa362d40a6dab45655b4e561b5d37ee8693809492888259f771b52522e20452f0f3b9835c0196e56149052d881e5e94a89b55d12668995e560e3c85777bf
@@ -0,0 +1,46 @@
# Copyright 2023 Aaro Koivukangas
# Distributed under the terms of the GNU General Public License v2
#
# Ebuild of insomnia RESTful API-tester. Installed as a precompiled binary
# because of npm being hard to package on gentoo :s
#
# It requires network in src_install phase which is not ideal because of
# sandboxing things not allowing network access during installation...
EAPI=8
P_NAME="Insomnia.Core-${PV}"
S="${WORKDIR}/${P_NAME}"
DESCRIPTION="Insomnia RESTful API tester"
HOMEPAGE="https://github.com/Kong/insomnia"
SRC_URI="https://github.com/Kong/insomnia/releases/download/core@${PV}/Insomnia.Core-${PV}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
# DEPEND=">=net-libs/nodejs-18.6.0[npm]
# >=dev-vsc/git-2.41.0"
src_unpack() {
# einfo "Unpacking"
unpack ${A}
# ls ${S}
}
src_install() {
# einfo "Making dirs"
dodir /usr/bin/
dodir /usr/lib/insomnia/
# einfo "Copying files to lib in ${D}/usr/lib/insomnia"
cp ${S}/* ${D}/usr/lib/insomnia -r || die "Install failed"
# ls ${D}/usr/lib/insomnia -l
# einfo "Doing symlink"
dosym ${EPREFIX}/usr/lib/insomnia/insomnia ${EPREFIX}/usr/bin/insomnia
# ls ${D}/usr/bin -l
}