wok annotate rack/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | a0dccc5d133d |
children |
rev | line source |
---|---|
slaxemulator@10254 | 1 # SliTaz package receipt. |
slaxemulator@10254 | 2 |
slaxemulator@10254 | 3 PACKAGE="rack" |
pascal@15639 | 4 VERSION="1.3.5" |
slaxemulator@10676 | 5 CATEGORY="network" |
slaxemulator@10254 | 6 SHORT_DESC="Webserver Interface for Ruby" |
slaxemulator@10254 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15626 | 8 LICENSE="MIT" |
pascal@15641 | 9 TARBALL="$PACKAGE-$VERSION.gem" |
pascal@20682 | 10 WEB_SITE="https://rubygems.org/gems/$PACKAGE" |
pascal@15641 | 11 WGET_URL="http://gems.rubyforge.org/gems/$TARBALL" |
slaxemulator@10254 | 12 COOK_OPT="!repack_src !unpack" |
slaxemulator@10254 | 13 |
pascal@15609 | 14 DEPENDS="ruby activerecord" |
pascal@15609 | 15 BUILD_DEPENDS="$DEPENDS ruby-dev" |
pascal@15609 | 16 |
pascal@24459 | 17 # What is the latest version available today? |
pascal@24459 | 18 current_version() |
pascal@24459 | 19 { |
pascal@24459 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24459 | 21 sed '/versions\//!d;s|.*versions/||;s|".*||;q' |
pascal@24459 | 22 } |
pascal@24459 | 23 |
slaxemulator@10254 | 24 # Rules to configure and make the package. |
slaxemulator@10254 | 25 compile_rules() |
slaxemulator@10254 | 26 { |
pascal@22170 | 27 local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" |
slaxemulator@10254 | 28 gem install --ignore-dependencies -i "$DESTDIR/$_gemdir" $SOURCES_REPOSITORY/$TARBALL |
slaxemulator@10254 | 29 } |
slaxemulator@10254 | 30 |
slaxemulator@10254 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10254 | 32 genpkg_rules() |
slaxemulator@10254 | 33 { |
pascal@15603 | 34 cp -a $install/usr $fs |
slaxemulator@10254 | 35 } |