Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/pkgxdev/pantry into remove-…
Browse files Browse the repository at this point in the history
…llvm-deno
  • Loading branch information
felipecrs committed Mar 31, 2024
2 parents 0f56dda + cc1e6e9 commit 1ebbfc1
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 9 deletions.
40 changes: 40 additions & 0 deletions projects/github.com/brucedom/bruce/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
distributable:
url: https://github.com/brucedom/bruce/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1

display-name: Basic Runtime for Uniform Compute Environments

versions:
# - 1.2.8
#
# need to exclude the 1.11 tag otherwise we got an error
#
github: brucedom/bruce/releases
strip: /^v/
ignore: [1.11]

companions:
linux:
systemd.io: '*' # needs syscontrol

build:
dependencies:
go.dev: '*'
env:
CGO_ENABLED: 0
LDFLAGS:
- -s
- -w
linux:
LDFLAGS:
- -buildmode=pie
script: go build -v -ldflags="${LDFLAGS}" -o "{{ prefix }}"/bin/bruce cmd/main.go

provides:
- bin/bruce

test: bruce version | grep v{{version}}
# dependencies:
# gnu.org/coreutils: '*'
#script: test $(bruce version|tail -1|cut -d' ' -f3) = v{{version}}
# script: test $(bruce version) = v{{version}}
6 changes: 5 additions & 1 deletion projects/github.com/eliben/pycparser/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ build:
- cp -r examples {{prefix}}/pkgshare/
- run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}}
working-directory: '{{prefix}}/lib'
test: python {{prefix}}/pkgshare/examples/c-to-c.py {{prefix}}/pkgshare/examples/c_files/basic.c
test:
dependencies:
linux:
llvm.org: '*' # `cpp`
script: python {{prefix}}/pkgshare/examples/c-to-c.py {{prefix}}/pkgshare/examples/c_files/basic.c
17 changes: 10 additions & 7 deletions projects/grpc.io/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ dependencies:
protobuf.dev: 25.2.0 # grpc links to specific versions, so we have to pick one.
github.com/google/re2: '*'
zlib.net: '*'
linux:
gnu.org/gcc: '*' # libstdc++

build:
dependencies:
Expand Down Expand Up @@ -68,10 +70,12 @@ build:
- -DgRPC_RE2_PROVIDER=package
CLI_ARGS:
- -DgRPC_BUILD_TESTS=ON
linux:
# likely needs bumping to an unreleased abseil.io version
# ld.lld: error: undefined reference due to --no-allow-shlib-undefined: absl::lts_20230802::Cord::Cord<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
LDFLAGS: $LDFLAGS -Wl,--allow-shlib-undefined
# linux:
# # likely needs bumping to an unreleased abseil.io version
# # ld.lld: error: undefined reference due to --no-allow-shlib-undefined: absl::lts_20230802::Cord::Cord<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
# LDFLAGS: $LDFLAGS -Wl,--allow-shlib-undefined
# ARGS:
# - -DCMAKE_EXE_LINKER_FLAGS=-Wl,-lstdc++

test:
dependencies:
Expand All @@ -86,7 +90,6 @@ test:
script:
- cp $FIXTURE test.cpp
- PKG_CONFIG=$(pkg-config --cflags --libs libcares protobuf re2 grpc++)
- cc $PKG_CONFIG test.cpp -o test
- clang++ $PKG_CONFIG test.cpp -o test -lstdc++
- ./test

- (grpc_cli ls localhost:58931 2>&1 || true) | grep "failed to connect to all addresses"
- (grpc_cli ls localhost:58931 2>&1 || true) | grep -E "(failed to connect to all addresses|rpc failed)"
2 changes: 1 addition & 1 deletion projects/leo-lang.org/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ test:
script:
- leo new helloworld
- cd helloworld
- leo run | grep "Compiled 'main.leo' into Aleo instructions"
- leo build | grep "Compiled 'main.leo' into Aleo instructions"
- leo --version | grep {{version}}

0 comments on commit 1ebbfc1

Please sign in to comment.