wok-next view ruby-ncursesw/receipt @ rev 20957

Random updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Sep 05 15:26:05 2018 +0300 (2018-09-05)
parents
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ruby-ncursesw"
4 VERSION="1.4.10"
5 CATEGORY="ruby"
6 SHORT_DESC="Ruby extension for the ncurses C library"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://rubygems.org/gems/${PACKAGE#*-}"
10 HOST_ARCH="i486 x86_64"
11 REPOLOGY="${PACKAGE/-/:}"
13 TARBALL="${PACKAGE#*-}-$VERSION.gem"
14 WGET_URL="https://rubygems.org/downloads/$TARBALL"
16 BUILD_DEPENDS="ruby-dev ncurses-dev"
17 SPLIT="$PACKAGE-dev"
19 compile_rules() {
20 gem install \
21 --no-document \
22 --ignore-dependencies \
23 --no-user-install \
24 --build-root $install \
25 $src/$TARBALL &&
26 fix gem
27 # FIXME: many *.{h,c,o} files inside gem base folder; move to lib / ext ?
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 *-dev)
33 copy @ruby-dev *.h
34 DEPENDS="ruby-ncursesw ncurses-dev"
35 ;;
36 *)
37 copy @ruby
38 DEPENDS="ruby ncurses ncurses-libform ncurses-libmenu \
39 ncurses-libpanel"
40 ;;
41 esac
42 }