wok view rails/receipt @ rev 25767
created recipes for ndpi and ndpi-dev
author | Hans-G?nter Theisgen |
---|---|
date | Tue Sep 03 14:51:27 2024 +0100 (2 months ago) |
parents | 30cc9f65eaa5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="rails"
4 VERSION="6.0.2.2"
5 CATEGORY="development"
6 SHORT_DESC="REST on Rails."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://rubygems.org/gems/rails"
11 TARBALL="$PACKAGE-$VERSION.gem"
12 WGET_URL="https://rubygems.org/downloads/$TARBALL"
14 DEPENDS="actionmailer actionpack activerecord activeresource activesupport ruby"
15 BUILD_DEPENDS="$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 }