diff options
Diffstat (limited to 'community/ruby-pg_query/APKBUILD')
-rw-r--r-- | community/ruby-pg_query/APKBUILD | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/community/ruby-pg_query/APKBUILD b/community/ruby-pg_query/APKBUILD index e95f993fea7..68cdcbd4d17 100644 --- a/community/ruby-pg_query/APKBUILD +++ b/community/ruby-pg_query/APKBUILD @@ -3,29 +3,27 @@ pkgname=ruby-pg_query _gemname=pg_query # Keep in mind the aport libpg_query when bumping. -pkgver=2.0.3 +pkgver=5.1.0 pkgrel=0 pkgdesc="PostgreSQL query parsing and normalization library for Ruby" url="https://github.com/pganalyze/pg_query" # x86, armhf, armv7: fingerprint feature is broken on 32-bit -# mips64*: segfaults # s390x: Failing tests # riscv64 blocked by libpg_query -arch="all !x86 !armhf !armv7 !mips64 !mips64le !s390x !riscv64" +arch="all !x86 !armhf !armv7 !s390x !riscv64" license="BSD-3-Clause" depends="ruby ruby-google-protobuf>=3.15.5" -checkdepends="ruby-json ruby-rspec" +checkdepends="ruby-rspec" makedepends=" libpg_query-dev + postgresql16-dev protoc ruby-dev - ruby-rake - ruby-rake-compiler xxhash-dev " source="https://github.com/pganalyze/pg_query/archive/v$pkgver/$pkgname-$pkgver.tar.gz unbundle-deps.patch - rakefile.patch + no-simplecov.patch " builddir="$srcdir/$_gemname-$pkgver" @@ -45,11 +43,12 @@ build() { protoc --proto_path=/usr/include/pg_query \ --ruby_out=lib/pg_query \ /usr/include/pg_query/pg_query.proto - rake update_json_field_names gem build $_gemname.gemspec - gem install --local \ + CFLAGS="$CFLAGS -I$(pg_config --includedir-server)" \ + gem install \ + --local \ --install-dir dist \ --ignore-dependencies \ --no-document \ @@ -61,7 +60,7 @@ build() { } check() { - rspec + rspec --format d } package() { @@ -77,6 +76,8 @@ package() { rm -rf ext/ lib/$_gemname/*.so LICENSE Rakefile *.md } -sha512sums="4e83888df7397594092e41d4ed2f1a1ad999a8573c0e4750c7e6dc4af1902fe9ba85bdb051675a6c3a1ba1bd587f4fd47408f032ff94cb6b5abdd953895bfa4e ruby-pg_query-2.0.3.tar.gz -29a2e0bb3a2cb4478ff3a5f2358bb740d361c1d14381ea65b546858ef39bda4103be407fb07f5c0d7dab5b8198fab26b05e5487f059a31b69bf75dc24bd2e4a1 unbundle-deps.patch -993b494ef8fa0c17a0fcc6f26f37419dc08d7c45404d607aaa44e0315bd32c90f943f6f7886b64463b7b2c9f63ff5ac5ef0079b60cf4d0058a7c390f67aa0591 rakefile.patch" +sha512sums=" +3c14637b97e13dee9930fa408dc9f654c034751bccf5bb4da26771d3860d23e16b42d83585cd26a269ea57e4f6dee837ea8645cec26583ea09d905e4a033936e ruby-pg_query-5.1.0.tar.gz +bf510c52b9fd2e70a7d0dda51a55f73f825c8bb4904efc4604bffece82efcf8d75a7fe11148bb2cac598491196a9c8e0aeded6bd5ae78d2746e3b85b749d0c77 unbundle-deps.patch +42addad0f327b988eff0ff39f4a80d999211ac1c2d168b00143957146539a4400494447b22830e44a4d6484619c8f4dbc22fc6c1b094f3cebca9b4b7dd181da6 no-simplecov.patch +" |