Change dolibar S folder.

Clean dev-nodejs/ts-types description.
Add guile-toml and fchroot.
This commit is contained in:
Cor Legemaat 2026-04-17 13:43:17 +02:00
commit 8def00ac6d
6 changed files with 152 additions and 1 deletions

View file

@ -0,0 +1,20 @@
# -*- Mode: ebuild; -*-
# Distributed under the terms of the GNU General Public License v2
EAPI={{eapi}}
NODEJS_SYMLINKS=({{nodejs-symlinks}})
inherit nodejs
NODEJS_NAME="{{npm-name}}"
DESCRIPTION="TypeScript type utility library: provides rich type manipulation utilities and re-exported built-in types"
HOMEPAGE="{{homepage}}"
SRC_URI="{{assets[0].uri}} -> {{assets[0].name}}"
LICENSE="{{license}}"
SLOT="{{slot}}"
KEYWORDS="~*"
IUSE=""
RDEPEND="${DEPEND}
{{nodejs-deps}}"

View file

@ -0,0 +1,15 @@
;; Copyright (C) 2025, 2026 Cor Legemaat, distributed under the
;; terms of the GNU Affero General Public License version 3.
(define-module (dev-scheme guile-toml autogen)
#:use-module (ebuild fetchers github))
(define-public get-releases
(lambda (parms)
(fetch-github "hylophile"
"guile-toml"
(assoc-ref parms 'github-token)
'commits
(assoc-ref parms 'verbosity)
#:max 1)))

View file

@ -0,0 +1,79 @@
# -*- Mode: ebuild; -*-
# Distributed under the terms of the GNU General Public License v2
EAPI={{eapi}}
GUILE_COMPAT=( 2-2 3-0 )
inherit guile guile-utils
DESCRIPTION="TOML module for Guile"
HOMEPAGE="https://github.com/hylophile/guile-toml"
SRC_URI="{{assets[0].uri}} -> {{assets[0].name}}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~*"
REQUIRED_USE="${GUILE_REQUIRED_USE}"
S="${WORKDIR}/{{assets[0].root}}"
RDEPEND="${GUILE_DEPS}
dev-scheme/guile-json
"
RDEPEND="${GUILE_DEPS}"
DEPEND="${RDEPEND}"
src_prepare() {
default
# This copies sources into the version-specific BUILD_DIRs
guile_copy_sources
}
src_compile() {
# Define all source files including the subdirectory ones
local sources=(
toml.scm
toml/builder.scm
toml/parser-peg.scm
toml/parser.scm
)
compile_sources() {
guile_export GUILD
for src in "${sources[@]}"; do
# Mirror the directory structure for the output .go files
local output="${src%.scm}.go"
mkdir -p "$(dirname "${output}")"
# -L . ensures guild finds local dependencies during compilation
"${GUILD}" compile -L . "${src}" -o "${output}" || die "Failed to compile ${src}"
done
}
guile_foreach_impl compile_sources
}
src_install() {
install_files() {
# Export the directory paths for the current implementation
guile_export GUILE_SITEDIR GUILE_SITECCACHEDIR
# Install source files to the versioned site directory
insinto "${GUILE_SITEDIR}"
doins toml.scm
doins -r toml/*.scm
# Install compiled bytecode to the versioned ccache directory
insinto "${GUILE_SITECCACHEDIR}"
doins toml.go
doins -r toml/*.go
# CRITICAL: Prevents 'strip' from corrupting Guile bytecode
guile_unstrip_ccache
}
guile_foreach_impl install_files
einstalldocs
}

View file

@ -0,0 +1,8 @@
;; Copyright (C) 2025, 2026 Cor Legemaat, distributed under the
;; terms of the GNU Affero General Public License version 3.
(define-module (sys-apps fchroot autogen)
#:use-module (ebuild fetchers pypi))
(define-public get-releases
(lambda (parms)
(fetch-pypi parms)))

View file

@ -0,0 +1,29 @@
# -*- Mode: ebuild; -*-
# Distributed under the terms of the GNU General Public License v2
EAPI={{eapi}}
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( {{python-compat}} )
inherit distutils-r1 pypi
DESCRIPTION="Funtoo's franken-chroot tool"
HOMEPAGE="
https://pypi.org/project/fchroot/
https://github.com/funtoo-src/fchroot"
SRC_URI="{{assets[0].uri}} -> {{assets[0].name}}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~*"
DEPEND=""
RDEPEND="
app-emulation/qemu[static-user,qemu_user_targets_aarch64,qemu_user_targets_arm,qemu_user_targets_riscv64,qemu_user_targets_ppc64]
dev-libs/glib[static-libs]
sys-apps/attr[static-libs]
sys-libs/zlib[static-libs]
dev-libs/libpcre[static-libs]"
S="${WORKDIR}/${PN}-${PV}"

View file

@ -20,7 +20,7 @@ RDEPEND="dev-lang/php[calendar,curl,gd,intl,json(+),mysql?,postgres?,session,sim
virtual/cron
virtual/httpd-php"
S="${WORKDIR}/{{github-user}}-{{github-repo}}-{{file-sha}}"
S="${WORKDIR}/{{assets[0].root}}"
DOCS="ChangeLog *.md"
pkg_setup() {