Upstream moved from leoafarias/fvm to btwld/fvm in 4.3.2 (pubspec.yaml homepage, CHANGELOG #1078). Because the old URL only redirects, update HOMEPAGE, SRC_URI and the metadata.xml remote-id to the current project. pubspec.lock is unchanged from 4.3.1, so the dependency bundle needs no change beyond the new version. Signed-off-by: Zakk <zakk@gentoozh.org>
35 lines
869 B
Bash
35 lines
869 B
Bash
# Copyright 2025-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit wrapper
|
|
|
|
DESCRIPTION="Flutter Version Management"
|
|
HOMEPAGE="https://github.com/btwld/fvm https://fvm.app"
|
|
# cookbook: https://lingchengling.feishu.cn/docx/McWLdmV2Zo8xSlx6bPUc0wF7ntc
|
|
SRC_URI="
|
|
https://github.com/btwld/fvm/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
|
|
https://github.com/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-pubcache.tar.xz
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="dev-lang/dart"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_compile() {
|
|
export PUB_CACHE=pubcache
|
|
dart --disable-analytics
|
|
dart pub get --offline
|
|
dart compile aot-snapshot -o bin/fvm.snapshot bin/main.dart
|
|
}
|
|
|
|
src_install() {
|
|
insinto /usr/$(get_libdir)
|
|
doins bin/fvm.snapshot
|
|
make_wrapper fvm "/usr/bin/dartaotruntime /usr/$(get_libdir)/fvm.snapshot"
|
|
}
|