slitaz-forge view scn/receipts/activesupport/receipt @ rev 713
makegraphs: tune cpuinfo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 15 08:07:41 2021 +0000 (2021-01-15) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="activesupport"
4 VERSION="2.3.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Database tables mapping to Ruby classes"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby"
9 BUILD_DEPENDS="rubygems"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rubygems.org/gems/activerecord"
12 WGET_URL="http://rubygems.org/downloads/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
18 #mv -f *.gem $PACKAGE-$VERSION
19 cd $src
20 wget "http://rubygems.org/downloads/$TARBALL"
21 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
22 gem install --no-rdoc --no-ri --install-dir $PWD/_pkg/usr/lib/ruby/gems/${RUBY_VERSION%.*} $TARBALL
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
29 mkdir -p $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
32 }