wok-next annotate ruby-sass/receipt @ rev 21271

up openssl10: 1.0.2o to 1.0.2t -> soon EOL
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Dec 07 12:21:21 2019 +0000 (2019-12-07)
parents e7e7475e84c9
children
rev   line source
al@20910 1 # SliTaz package receipt v2.
al@20910 2
al@20910 3 PACKAGE="ruby-sass"
al@21051 4 VERSION="3.7.2"
al@20910 5 CATEGORY="ruby"
al@20910 6 SHORT_DESC="CSS extension"
al@20910 7 MAINTAINER="al.bobylev@gmail.com"
al@20910 8 LICENSE="MIT"
al@20910 9 WEB_SITE="https://rubygems.org/gems/${PACKAGE#*-}"
al@20910 10 HOST_ARCH="any"
al@20910 11 REPOLOGY="${PACKAGE/-/:}"
al@20910 12
al@20910 13 TARBALL="${PACKAGE#*-}-$VERSION.gem"
al@20910 14 WGET_URL="https://rubygems.org/downloads/$TARBALL"
al@20910 15
al@20910 16 BUILD_DEPENDS="ruby-dev"
al@21053 17 COPY_std="@ruby REVISION VERSION*"
al@21053 18 DEPENDS_std="ruby ruby-stdlib ruby-sass-listen"
al@20910 19
al@20910 20 compile_rules() {
al@20910 21 gem install \
al@20910 22 --no-document \
al@20910 23 --ignore-dependencies \
al@20910 24 --no-user-install \
al@20910 25 --build-root $install \
al@21053 26 $src/$TARBALL || return 1
al@21053 27
al@21053 28 # Keep some files from being moved to docdir by `fix gem`:
al@21053 29 t=$(mktemp -d)
al@21053 30 find $install/usr/lib/ruby/gems/*/gems/${PACKAGE#*-}-$VERSION/ \
al@21053 31 \( -name 'REVISION' -o -name 'VERSION*' \) -exec mv '{}' $t \;
al@21053 32
al@20910 33 fix gem
al@21053 34
al@21053 35 # Return files back:
al@21053 36 mv $t/* $install/usr/lib/ruby/gems/*/gems/${PACKAGE#*-}-$VERSION/
al@21053 37 rm -r $t
al@20910 38 }