~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 2

[PATCH] testing/rust-analyzer: new aport

S.M Mukarram Nainar <theone@sm2n.ca>
Details
Message ID
<20220217195945.10383-1-theone@sm2n.ca>
DKIM signature
missing
Download raw message
Patch: +43 -0
https://github.com/rust-analyzer/rust-analyzer
A Rust compiler front-end for IDEs
---
 testing/rust-analyzer/APKBUILD | 43 ++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 testing/rust-analyzer/APKBUILD

diff --git a/testing/rust-analyzer/APKBUILD b/testing/rust-analyzer/APKBUILD
new file mode 100644
index 0000000000..5a04f677a8
--- /dev/null
+++ b/testing/rust-analyzer/APKBUILD
@@ -0,0 +1,43 @@
# Contributor: S.M Mukarram Nainar <theone@sm2n.ca>
# Maintainer: S.M Mukarram Nainar <theone@sm2n.ca>
pkgname=rust-analyzer
_pkgver="2022-02-14"
pkgver=${_pkgver//-}
pkgrel=0
pkgdesc="A Rust compiler front-end for IDEs"
url="https://github.com/rust-analyzer/rust-analyzer"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le"  # limited by rust/cargo
license="MIT Apache-2.0"
depends="rust-src"
makedepends="cargo"
checkdepends="rustfmt"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rust-analyzer/rust-analyzer/archive/refs/tags/$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"

prepare() {
	default_prepare

	cargo fetch --locked
}

build() {
	cargo build --frozen --release
}

check() {
	cargo test --frozen
}

package() {
	install -Dt "$pkgdir"/usr/bin target/release/rust-analyzer

	install -Dm644 LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
	install -Dm644 LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE

	install -Dm644 docs/user/manual.adoc "$pkgdir"/usr/share/doc/$pkgname/manual.adoc
}

sha512sums="
cad62bc2837daadf17fadd3e4ccb2cc9ea4203f14cdac6931548a025b2cd5daef5f4b645d36381fea5a5baf44b301d8b83f0136c095dcc3b500df476baab6f1b  rust-analyzer-20220214.tar.gz
"
-- 
2.35.1
Details
Message ID
<164513044457.985.15047281160229864486.gitlab.31034.13dfceffc7dd851780bf326d7ce7ee7981ec4a20@listserv.local>
In-Reply-To
<20220217195945.10383-1-theone@sm2n.ca> (view parent)
DKIM signature
missing
Download raw message
armv7 fails a bunch of tests, armhf will probably go the same way- those two can be disabled. probably x86 too depending on how the ci goes.  
wouldn't be surprised if this is x86_64/aarch64 only in the end, but that is fine. everything else looks good, thanks for the contribution :) i've been meaning to get rust-analyzer in for a while, but never got around to it. all i managed is rustfmt proper by adding it to the rust build, and i see it was a requirement for checks here, which is nice

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/31034#note_216333
Details
Message ID
<164513047928.985.304193830627784769.gitlab.31034.d0983aee6259b9df6d381bf43b4980796aa2b8ee@listserv.local>
In-Reply-To
<20220217195945.10383-1-theone@sm2n.ca> (view parent)
DKIM signature
missing
Download raw message
On Thu, 17 Feb 2022 14:59:45 -0500, S.M Mukarram Nainar wrote:
> +
> +package() {
> +	install -Dt "$pkgdir"/usr/bin target/release/rust-analyzer

since you specify a -m for the others, you should add -m755 here too for consistency

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/31034#note_216334

[PATCH v2] testing/rust-analyzer: new aport

S.M Mukarram Nainar <theone@sm2n.ca>
Details
Message ID
<20220218042234.3168-1-theone@sm2n.ca>
In-Reply-To
<20220217195945.10383-1-theone@sm2n.ca> (view parent)
DKIM signature
missing
Download raw message
Patch: +44 -0
https://github.com/rust-analyzer/rust-analyzer
A Rust compiler front-end for IDEs
---
 testing/rust-analyzer/APKBUILD | 44 ++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 testing/rust-analyzer/APKBUILD

diff --git a/testing/rust-analyzer/APKBUILD b/testing/rust-analyzer/APKBUILD
new file mode 100644
index 0000000000..3be97ba907
--- /dev/null
+++ b/testing/rust-analyzer/APKBUILD
@@ -0,0 +1,44 @@
# Contributor: S.M Mukarram Nainar <theone@sm2n.ca>
# Maintainer: S.M Mukarram Nainar <theone@sm2n.ca>
pkgname=rust-analyzer
_pkgver="2022-02-14"
pkgver=${_pkgver//-}
pkgrel=0
pkgdesc="A Rust compiler front-end for IDEs"
url="https://github.com/rust-analyzer/rust-analyzer"
# limited by rust, x86/armhf/armv7 fail tests
arch="x86_64 aarch64 ppc64le"
license="MIT Apache-2.0"
depends="rust-src"
makedepends="cargo"
checkdepends="rustfmt"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rust-analyzer/rust-analyzer/archive/refs/tags/$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"

prepare() {
	default_prepare

	cargo fetch --locked
}

build() {
	cargo build --frozen --release
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 "$pkgdir"/usr/bin target/release/rust-analyzer

	install -Dm644 LICENSE-MIT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
	install -Dm644 LICENSE-APACHE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-APACHE

	install -Dm644 docs/user/manual.adoc "$pkgdir"/usr/share/doc/$pkgname/manual.adoc
}

sha512sums="
cad62bc2837daadf17fadd3e4ccb2cc9ea4203f14cdac6931548a025b2cd5daef5f4b645d36381fea5a5baf44b301d8b83f0136c095dcc3b500df476baab6f1b  rust-analyzer-20220214.tar.gz
"
-- 
2.35.1
Reply to thread Export thread (mbox)