From abf345ab9d31c386bc676fa9142aaf4eb3fdf1d7 Mon Sep 17 00:00:00 2001 From: Jason Morganson Date: Thu, 13 Apr 2023 11:35:37 -0400 Subject: [PATCH] +crates.io/gitui (#1335) * +crates.io/gitui * Unlock * Use cc as linker * Add OpenSSL * Add perl * Move OpenSSL to dependencies node * Add zlib * Use steeped OpenSSL * Quote to prevent parsing object * OPENSSL_NO_VENDOR * Add comments --- projects/crates.io/gitui/package.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/crates.io/gitui/package.yml diff --git a/projects/crates.io/gitui/package.yml b/projects/crates.io/gitui/package.yml new file mode 100644 index 00000000..0fbc9968 --- /dev/null +++ b/projects/crates.io/gitui/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/extrawurst/gitui/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +provides: + - bin/gitui + +versions: + github: extrawurst/gitui/tags + strip: /v/ + +dependencies: + perl.org: "*" + openssl.org: "*" + zlib.net: ^1 + +build: + dependencies: + tea.xyz/gx/cc: c99 + rust-lang.org: ">=1.60" + rust-lang.org/cargo: "*" + script: cargo install --path . --root {{prefix}} + env: + linux: + RUSTFLAGS: "-C linker=cc" + # See: https://docs.rs/openssl/latest/openssl/#manual + OPENSSL_NO_VENDOR: true # Always find OpenSSL in the system, even if the vendored feature is enabled. + OPENSSL_DIR: "{{ deps.openssl.org.prefix }}" # Use tea's openssl installation directory + +test: gitui --version