Skip to content

Commit 2074653

Browse files
committed
Add gnatformat as a dependency
Refs #1387
1 parent b1f325b commit 2074653

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

alire.toml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ libgpr2 = "^24.0.0"
2626
vss = "^24.0.0"
2727
libadalang_tools = "^24.0.0"
2828
lal_refactor = "25.0.0-20240625"
29+
gnatformat = "25.0.0-20240625"
2930
gnatdoc = "^24.0.0"
3031
spawn = "^24.0.0"
3132

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name = "gnatformat"
2+
description = "An opinionated code formatter for the Ada language."
3+
version = "25.0.0-20240625"
4+
5+
authors = ["AdaCore"]
6+
maintainers = ["João Azevedo <[email protected]>"]
7+
maintainers-logins = ["joaopsazevedo"]
8+
licenses = "Apache-2.0 WITH LLVM-exception"
9+
website = "https://github.com/AdaCore/gnatformat"
10+
11+
project-files = ["gnat/gnatformat.gpr"]
12+
13+
[environment.'case(os)'.macos.DYLD_LIBRARY_PATH]
14+
append = "${CRATE_ROOT}/.libs/relocatable"
15+
16+
[environment.'case(os)'.windows.PATH]
17+
append = "${CRATE_ROOT}/.libs/relocatable"
18+
19+
[configuration]
20+
disabled = true
21+
22+
[[depends-on]]
23+
libadalang = "^24"
24+
prettier_ada = "25.0.0-20240625"
25+
26+
[origin]
27+
url = "git+https://github.com/AdaCore/gnatformat"
28+
commit = "b418fcc894877777ecf4102410ba4eeee279e219"
29+

scripts/build_als.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ PINS="
1717
adasat
1818
gnatcoll
1919
gnatdoc
20+
gnatformat
2021
lal_refactor
2122
langkit_support
2223
libadalang
@@ -45,6 +46,7 @@ repo_vss=VSS
4546

4647
branch_gnatdoc=edge
4748
branch_lal_refactor=edge
49+
branch_gnatformat=edge
4850
branch_libgpr2=next
4951
branch_prettier_ada=main
5052

@@ -53,7 +55,7 @@ SETENV=$PWD/subprojects/libadalang/setenv.sh
5355

5456
# Set `prod` build mode
5557
########################
56-
# for adasat,lal,langkit,lal_refactor,laltools,markdown,spawn
58+
# for adasat,gnatformat,lal,langkit,lal_refactor,laltools,markdown,spawn
5759
export BUILD_MODE=prod
5860
# for others
5961
export GNATCOLL_BUILD_MODE=PROD

subprojects/gnatformat.toml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name = "gnatformat"
2+
description = "An opinionated code formatter for the Ada language."
3+
version = "25.0.0-20240625"
4+
5+
authors = ["AdaCore"]
6+
maintainers = ["João Azevedo <[email protected]>"]
7+
maintainers-logins = ["joaopsazevedo"]
8+
licenses = "Apache-2.0 WITH LLVM-exception"
9+
website = "https://github.com/AdaCore/gnatformat"
10+
11+
project-files = ["gnat/gnatformat.gpr"]
12+
13+
[environment.'case(os)'.macos.DYLD_LIBRARY_PATH]
14+
append = "${CRATE_ROOT}/.libs/relocatable"
15+
16+
[environment.'case(os)'.windows.PATH]
17+
append = "${CRATE_ROOT}/.libs/relocatable"
18+
19+
[configuration]
20+
disabled = true
21+
22+
[[depends-on]]
23+
libadalang = "^24"
24+
prettier_ada = "25.0.0-20240625"

0 commit comments

Comments
 (0)