mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-09 14:28:23 +02:00
community/ruby-pg: upgrade to 1.3.5
This commit is contained in:
parent
bcbbc7625d
commit
7a41ad85ea
@ -2,8 +2,8 @@
|
||||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||||
pkgname=ruby-pg
|
||||
_gemname=pg
|
||||
pkgver=1.2.3
|
||||
pkgrel=2
|
||||
pkgver=1.3.5
|
||||
pkgrel=0
|
||||
pkgdesc="A PostgreSQL client library for Ruby"
|
||||
url="https://github.com/ged/ruby-pg"
|
||||
arch="all"
|
||||
@ -11,21 +11,10 @@ license="BSD-2-Clause PostgreSQL"
|
||||
checkdepends="postgresql ruby-rspec"
|
||||
makedepends="libpq-dev ruby-dev"
|
||||
source="https://github.com/ged/ruby-pg/archive/v$pkgver/ruby-pg-$pkgver.tar.gz
|
||||
https://rubygems.org/downloads/pg-$pkgver.gem
|
||||
gemspec.patch
|
||||
"
|
||||
options="!check" # FIXME: tests seem to be broken
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
# Generate gemspec from gem (gemspec in the tarball is outdated).
|
||||
gem specification -l --ruby "$srcdir"/$_gemname-$pkgver.gem \
|
||||
> "$builddir"/$_gemname.gemspec
|
||||
|
||||
# Gemspec includes this file, but it's missing in the tarball.
|
||||
touch "$builddir"/ChangeLog
|
||||
}
|
||||
|
||||
build() {
|
||||
gem build $_gemname.gemspec
|
||||
gem install \
|
||||
@ -52,8 +41,10 @@ package() {
|
||||
find "$gemdir"/extensions/ -name mkmf.log -delete
|
||||
|
||||
cd "$gemdir"/gems/$_gemname-$pkgver
|
||||
rm -r ext/ lib/*.so spec/ ./*.rdoc ./*.txt ChangeLog Rakefile*
|
||||
rm -r ext/ lib/*.so
|
||||
}
|
||||
|
||||
sha512sums="5f747cd755e4629c11648e237f095282b1c3137c11927d1b79b60261654ce07aa6e069810f457edf5e2a8dc76da26c7d14591c72d50142978325de9ba1b21ebe ruby-pg-1.2.3.tar.gz
|
||||
dd8fa7b256102aea7588fd7e1d4e28199be2bf9910149d266b5379e78a7a57aa2a22763d04a559f4763842cad4ba8d0fbc33e8b43b7497dc77039edfd1029585 pg-1.2.3.gem"
|
||||
sha512sums="
|
||||
44e8ad97a6f4136d49641c5a59a70a489d766d1c1e511f5a6f003c2ae2900466b02a2504dc0fb26c872ce3fcb56ac83ac5299a829cca99d9c02c4b7ce0f0ac75 ruby-pg-1.3.5.tar.gz
|
||||
22fe377af63de395e964b75d6588c38d3514a51ec64fb35f79d9c4ddfb44f6afe8b8ccb82e399554243c1fc1a43951843faad2c6bbc391dc8c3a592ef21c9f06 gemspec.patch
|
||||
"
|
||||
|
||||
17
community/ruby-pg/gemspec.patch
Normal file
17
community/ruby-pg/gemspec.patch
Normal file
@ -0,0 +1,17 @@
|
||||
--- a/pg.gemspec
|
||||
+++ b/pg.gemspec
|
||||
@@ -20,13 +20,8 @@
|
||||
spec.metadata["changelog_uri"] = "https://github.com/ged/ruby-pg/blob/master/History.rdoc"
|
||||
spec.metadata["documentation_uri"] = "http://deveiate.org/code/pg"
|
||||
|
||||
- # Specify which files should be added to the gem when it is released.
|
||||
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
||||
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
||||
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
||||
- end
|
||||
+ spec.files = Dir["ext/**/*", "lib/**/*.rb"]
|
||||
spec.extensions = ["ext/extconf.rb"]
|
||||
spec.require_paths = ["lib"]
|
||||
- spec.cert_chain = ["certs/ged.pem"]
|
||||
spec.rdoc_options = ["--main", "README.rdoc"]
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user