dev-libs/kobweb-bin: new package, add 0.9.21

Signed-off-by: AshyPinguin <pinguinlars1105+gentoo@gmail.com>
This commit is contained in:
AshyPinguin
2026-05-24 16:58:00 +02:00
parent f0f57baf24
commit bbfeb48a8a
3 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST kobweb-bin-0.9.21.tar 12871168 BLAKE2B 5ba44b7d707735c15acb67b86f61407b68a656399ce42ef49014f3ebaaac21caa72a5dfa1fe16444ece6ca9ad32ce388a09a1a6dc8518cbb83692c6d31aa57ff SHA512 0341dcc344d5dc1b5622845db41266101c52a97f21d1365fb8ad28942a1fe62f124781c808125ed6156ba175b32a7626a66aaff5fe9cc44d026886bcf0eea43f

View File

@@ -0,0 +1,34 @@
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="CLI utility for the kobweb web framework"
HOMEPAGE="https://kobweb.varabyte.com"
SRC_URI="https://github.com/varabyte/kobweb-cli/releases/download/v${PV}/kobweb-${PV}.tar -> ${P}.tar"
S="${WORKDIR}/kobweb-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-lang/kotlin-bin"
RDEPEND="${DEPEND}"
src_prepare() {
default
# update classpath to use the java filesystem layout
sed -i \
-e "s/CLASSPATH=\\\$APP_HOME\\/lib\\/kobweb-${PV}-all.jar/CLASSPATH=\\\$APP_HOME\\/..\\/opt\\/${PN}\\/lib\\/kobweb-${PV}-all.jar/g" \
bin/kobweb || die "Sed failed"
}
src_install() {
dobin bin/kobweb
mkdir "${ED}/opt/${PN}/lib" -p || die "Couldn't make destination directory"
cp "lib/kobweb-${PV}-all.jar" "${ED}/opt/${PN}/lib/kobweb-${PV}-all.jar" \
|| die "Couldn't install to destination directory"
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>pinguinlars1105+gentoo@gmail.com</email>
<name>AshyPinguin</name>
</maintainer>
<upstream>
<remote-id type="github">varabyte/kobweb-cli</remote-id>
</upstream>
</pkgmetadata>