wok view passenger/receipt @ rev 10415
automake: Added cook_tmp_toolchain function to fix tazwok cook-toolchain.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue May 24 07:52:52 2011 +0000 (2011-05-24) |
parents | |
children | e0e2448eb53d |
line source
1 # SliTaz package receipt.
3 PACKAGE="passenger"
4 VERSION="3.0.7"
5 CATEGORY="networking"
6 SHORT_DESC="Rails and Rack support for Apache2."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="ruby rake libev libcurl fastthread daemon_controller spruz file-tail rack apache"
9 BUILD_DEPENDS="$DEPENDS ruby-dev curl-dev libev-dev apr-dev"
10 TARBALL="$PACKAGE-$VERSION.gem"
11 WEB_SITE="http://rubygems.org/gems/passenger"
12 WGET_URL="http://rubygems.org/downloads/$TARBALL"
13 COOK_OPT="!repack_src !unpack"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 [ -d $PACKAGE-$VERSION ] || mkdir $PACKAGE-$VERSION
19 cd $src
21 gem install --no-rdoc --no-ri --ignore-dependencies \
22 --install-dir $PWD/ $SOURCES_REPOSITORY/$TARBALL
24 # Build Apache module
25 cd gems/$PACKAGE-$VERSION/
26 rake fakeroot APXS2=/usr/bin/apxs USE_VENDORED_LIBEV=no RELEASE=yes \
27 APR_CONFIG=/usr/bin/apr-1-config APU_CONFIG=/usr/bin/apu-1-config
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share $fs/var/run/passenger $fs/etc/apache/conf.d
35 cp -a $stuff/passenger.conf $fs/etc/apache/conf.d
36 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/bin $fs/usr
37 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/sbin $fs/usr
38 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/lib $fs/usr
39 cp -a $src/gems/$PACKAGE-$VERSION/pkg/fakeroot/usr/share/phusion-passenger $fs/usr/share
41 # Clean-up
42 rm -rf $fs/usr/share/phusion-passenger/source
43 }