wok-6.x view rake/receipt @ rev 25021
Up evas_generic_loaders (1.7.10)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 11:39:29 2022 +0000 (2022-05-18) |
parents | 939d99e3fc7e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="rake"
4 VERSION="13.0.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Make-like program implemented in Ruby."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://rubygems.org/gems/$PACKAGE"
11 TARBALL="$PACKAGE-$VERSION.gem"
12 WGET_URL="https://rubygems.org/downloads/$TARBALL"
14 DEPENDS="ruby"
15 BUILD_DEPENDS="ruby-dev"
17 COOK_OPT="!repack_src !unpack"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/versions\//!d;s|.*versions/||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')"
30 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" $SOURCES_REPOSITORY/$TARBALL
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 }