Skip to content

Commit 87cbe11

Browse files
committed
mcpplibs.cmdline: add 0.0.2
Upstream mcpplibs/cmdline tagged v0.0.2 and now ships an upstream mcpp.toml (mcpplibs/cmdline#1). Since the `mcpp` field in xpkg.lua is package-level (not per-version), we keep the existing Form B inline table to stay compatible with 0.0.1 — the src layout is identical across both versions, so a single descriptor covers both. When 0.0.1 is dropped, the inline `mcpp = { ... }` block can be replaced with `mcpp = "*/mcpp.toml"` to source build info directly from the upstream manifest. - linux/macosx/windows xpm: add 0.0.2 entry url: https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz sha256: 4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a - Refresh the comment header explaining why Form B stays.
1 parent 5af9906 commit 87cbe11

1 file changed

Lines changed: 23 additions & 8 deletions

File tree

pkgs/m/mcpplibs.cmdline.lua

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
-- Hand-written workaround entry.
2-
-- Upstream repo (mcpplibs/cmdline) has no mcpp.toml; the `mcpp = {}` block
3-
-- below carries the build info mcpp would otherwise read from mcpp.toml.
4-
-- Drop the `mcpp = {}` segment when the upstream repo adopts mcpp.toml natively.
1+
-- Form B (inline mcpp = { ... }) carries the build info for ALL listed versions.
2+
-- 0.0.2+ ships an upstream `mcpp.toml`, but `mcpp` is a package-level field
3+
-- (not per-version) in xpkg.lua, so to keep 0.0.1 installable we keep the
4+
-- workaround table here. The src/**/*.cppm layout is identical across 0.0.1
5+
-- and 0.0.2, so a single Form B block describes both versions correctly.
6+
-- When 0.0.1 is dropped, this can be replaced with `mcpp = "*/mcpp.toml"`.
7+
--
8+
-- M6.x: Form B paths are globs relative to the verdir (the untouched
9+
-- xlings extract dir). The leading `*/` absorbs the GitHub tarball's
10+
-- `cmdline-<tag>/` wrap layer.
511
package = {
612
spec = "1",
713
name = "mcpplibs.cmdline",
@@ -16,26 +22,35 @@ package = {
1622
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
1723
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
1824
},
25+
["0.0.2"] = {
26+
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
27+
sha256 = "4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a",
28+
},
1929
},
2030
macosx = {
2131
["0.0.1"] = {
2232
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
2333
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
2434
},
35+
["0.0.2"] = {
36+
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
37+
sha256 = "4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a",
38+
},
2539
},
2640
windows = {
2741
["0.0.1"] = {
2842
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/0.0.1.tar.gz",
2943
sha256 = "3fb2f5495c1a144485b3cbb2e43e27059151633460f702af0f3851cbff387ef0",
3044
},
45+
["0.0.2"] = {
46+
url = "https://github.com/mcpplibs/cmdline/archive/refs/tags/v0.0.2.tar.gz",
47+
sha256 = "4f3e2b8dc4d9f11bdd9a784a9914e889234ac305e1020282ffa03f506b75d52a",
48+
},
3149
},
3250
},
3351

34-
-- Workaround: upstream repo has no mcpp.toml. Drop this segment when it does.
35-
-- M6.x: Form B paths are globs relative to the verdir (the untouched
36-
-- xlings extract dir). The leading `*/` absorbs the GitHub tarball's
37-
-- `cmdline-<tag>/` wrap layer.
3852
mcpp = {
53+
schema = "0.1",
3954
language = "c++23",
4055
import_std = true,
4156
modules = { "mcpplibs.cmdline" },

0 commit comments

Comments
 (0)