Files
gentoo-zh/dev-lang/dart-bootstrap/dart-bootstrap-3.12.2.ebuild
T
Zakk 052c78b8cb dev-lang/dart: split out binary bootstrap SDK
Because Dart requires an existing SDK to bootstrap, provide the official binary SDK through a separate build-only package.

Because GCC 16 reports an unused variable, disable the upstream blanket `-Werror`.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-07-24 08:39:46 +10:00

43 lines
1.0 KiB
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit unpacker
DESCRIPTION="Binary bootstrap package for dev-lang/dart"
HOMEPAGE="https://dart.dev https://github.com/dart-lang/sdk"
SRC_URI="
amd64? (
https://storage.googleapis.com/dart-archive/channels/stable/release/${PV}/sdk/dartsdk-linux-x64-release.zip
-> dartsdk-${PV}-amd64.zip
)
"
S="${WORKDIR}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="-* ~amd64"
RDEPEND="sys-libs/glibc"
BDEPEND="app-arch/unzip"
RESTRICT="strip"
QA_PREBUILT="
usr/lib/dart-bootstrap/bin/dart
usr/lib/dart-bootstrap/bin/dartaotruntime
usr/lib/dart-bootstrap/bin/dartaotruntime_asan
usr/lib/dart-bootstrap/bin/dartaotruntime_msan
usr/lib/dart-bootstrap/bin/dartaotruntime_tsan
usr/lib/dart-bootstrap/bin/dartvm
usr/lib/dart-bootstrap/bin/snapshots/*.snapshot
usr/lib/dart-bootstrap/bin/utils/gen_snapshot
usr/lib/dart-bootstrap/bin/utils/wasm-opt
"
src_install() {
dodir /usr/lib
mv dart-sdk "${ED}/usr/lib/dart-bootstrap" || die
}