wok-next view ruby-json/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby-json" # ruby-stdlib already provides json
4 VERSION="2.1.0"
5 CATEGORY="ruby"
6 SHORT_DESC="JSON implementation as a Ruby extension in C"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://rubygems.org/gems/${PACKAGE#*-}"
10 REPOLOGY="${PACKAGE/-/:}"
12 TARBALL="${PACKAGE#*-}-$VERSION.gem"
13 WGET_URL="https://rubygems.org/downloads/$TARBALL"
15 COOKOPTS="force-arch" # arch-specific paths for gem.build_complete
17 BUILD_DEPENDS="ruby-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 gem install \
22 --no-document \
23 --ignore-dependencies \
24 --no-user-install \
25 --build-root $install \
26 $src/$TARBALL &&
27 fix gem &&
28 chmod -R g-w $install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 *-dev)
34 copy @ruby-dev
35 ;;
36 *)
37 copy @ruby
38 DEPENDS="ruby"
39 ;;
40 esac
41 }