Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id DC89A781D5E for <~alpine/aports@lists.alpinelinux.org>; Wed, 18 Sep 2019 22:31:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C6AB028843 for <~alpine/aports@lists.alpinelinux.org>; Thu, 19 Sep 2019 00:31:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8XxEkrKSR_QJ; Thu, 19 Sep 2019 00:31:22 +0200 (CEST) From: Bart Ribbers DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1568845881; bh=gA00a4fX/K0RBSM+RjbPItJ9Tio4SE6xXWGl/jByHsg=; h=From:To:Cc:Subject:Date; b=f+xpMMGX6KWc2k4ilIR3M6Fjwj9hYUYimNJRY8xsRcQ3oTQrzaLySXEY+gFaSjpKG o0UlNwjK33d42VJHvY8Bu8YfIs1fLwmtu3uwOXzV7fWOVHuFJmQQzB6bXXIMMUP5WL k5UE1GX8H7w5Iu9odSbN7VVfpynUXK5dzDVHpRUYEEejY1cGB9RNsO/2M9xw9/FYis qQqeqfr+pinMpmyzHCRmu9mWJQbEmwtzE9fCZ9Ie4TntDtVFbjn5UYWc/+NBPzJJIW wpJFmB55d4wTlzz4tMwIl8FX1o4rtfSxbHEio2aLGSPJj5r3Wecn1Nrl7lGDZs6010 6yBwXFhGFfvwQ== To: ~alpine/aports@lists.alpinelinux.org Cc: Bart Ribbers Subject: [PATCH] testing/ameba: upgrade to 0.10.1 Date: Thu, 19 Sep 2019 00:31:18 +0200 Message-Id: <20190918223118.22729-1-bribbers@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/ameba/APKBUILD | 14 +++++--------- testing/ameba/fix-makefile.patch | 8 +++++--- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/testing/ameba/APKBUILD b/testing/ameba/APKBUILD index 354434f777..3842492a24 100644 --- a/testing/ameba/APKBUILD +++ b/testing/ameba/APKBUILD @@ -1,33 +1,29 @@ # Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=ameba -pkgver=0.8.0 +pkgver=0.10.1 pkgrel=0 pkgdesc="A static code analysis tool for Crystal" -url="https://veelenga.github.io/ameba/" +url="https://crystal-ameba.github.io/" arch="x86_64" # limited by crystal. build fails on aarch64 license="MIT" makedepends="crystal libxml2-dev shards yaml-dev" -source="$pkgname-$pkgver.tar.gz::https://github.com/veelenga/$pkgname/archive/v$pkgver.tar.gz +source="$pkgname-$pkgver.tar.gz::https://github.com/veelenga/ameba/archive/v$pkgver.tar.gz fix-makefile.patch" -builddir="$srcdir/$pkgname-$pkgver" export CRYSTAL_CACHE_DIR="$srcdir/.cache" build() { - cd "$builddir" make CRFLAGS="--release" } check() { - cd "$builddir" make test SPEC_FLAGS="--no-color" } package() { - cd "$builddir" make install PREFIX="$pkgdir/usr" } -sha512sums="5ee602374f7b3c7241bfe16d0afeb74af5acf5b3530d8cac3b3b59c8c9b39e017bec018b04bdb79d973cd473ed84c07a7d8e8ed376d1f0c7ecff9a3fe48971c6 ameba-0.8.0.tar.gz -0acb42fe00c650b801f88911457e3d83f7297719494094e8687b67093d5641b6f892d63c603fd2d346a8db06128158ae4ace3a8a9bd5852b838c6a4d6104e9d6 fix-makefile.patch" +sha512sums="1a9e2591e603eb1824584aced7025903554a24c42d7eab4d370b471db944340df03abe4c0447a4016a62501265bb27aafedb923faf2a06024c66c97406e52f36 ameba-0.10.1.tar.gz +6db313c33086b742bc9d341812640c9e5afcb43bdbafca0e5a5664b1302460ccdab4c3d74142d0735437504bcf0204976b85546eb4cb74d6018dec8974573663 fix-makefile.patch" diff --git a/testing/ameba/fix-makefile.patch b/testing/ameba/fix-makefile.patch index 10d0b7308b..7003fb33ea 100644 --- a/testing/ameba/fix-makefile.patch +++ b/testing/ameba/fix-makefile.patch @@ -1,12 +1,13 @@ +diff --git a/Makefile b/Makefile +index 7cf3818..e6718a8 100644 --- a/Makefile +++ b/Makefile -@@ -3,17 +3,19 @@ +@@ -3,19 +3,20 @@ SHARDS_BIN ?= $(shell which shards) PREFIX ?= /usr/local SHARD_BIN ?= ../../bin +.PHONY: build build: bin/ameba -+ bin/ameba: $(SHARDS_BIN) build $(CRFLAGS) clean: @@ -19,9 +20,10 @@ +bin: bin/ameba mkdir -p $(SHARD_BIN) cp ./bin/ameba $(SHARD_BIN) + run_file: + cp -r ./bin/ameba.cr $(SHARD_BIN) -test: build - $(CRYSTAL_BIN) spec +test: bin/ameba + $(CRYSTAL_BIN) spec $(SPEC_FLAGS) ./bin/ameba --all - -- 2.21.0