/[gentoo-x86]/dev-ruby/msgpack/msgpack-0.4.7.ebuild
Gentoo

Contents of /dev-ruby/msgpack/msgpack-0.4.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Sep 27 09:39:02 2012 UTC (22 months, 3 weeks ago) by ssuominen
Branch: MAIN
Changes since 1.1: +2 -2 lines
Keyword ~ppc/~ppc64 wrt #412603

(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/msgpack/msgpack-0.4.7.ebuild,v 1.1 2012/05/15 06:33:09 graaff Exp $
4
5 EAPI="3"
6
7 # jruby → uses a binary extension
8 USE_RUBY="ruby18 ruby19 ree18"
9
10 RUBY_FAKEGEM_TASK_DOC=""
11 RUBY_FAKEGEM_TASK_TEST=""
12
13 inherit ruby-fakegem
14
15 DESCRIPTION="Binary-based efficient data interchange format for ruby binding"
16 HOMEPAGE="http://msgpack.sourceforge.jp/"
17
18 LICENSE="Apache-2.0"
19 SLOT="0"
20 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
21 IUSE=""
22
23 each_ruby_configure() {
24 ${RUBY} -Cext extconf.rb || die "Configuration of extension failed."
25 }
26
27 each_ruby_compile() {
28 emake -Cext || die
29
30 mkdir lib || die "Unable to make lib directory."
31 cp ext/msgpack.so lib/ || die "Unable to install msgpack library."
32 }
33
34 each_ruby_test() {
35 cd test
36 ${RUBY} test_cases.rb || die "tests failed"
37 ${RUBY} test_pack_unpack.rb || die "tests failed"
38 ${RUBY} test_encoding.rb || die "tests failed"
39 }

  ViewVC Help
Powered by ViewVC 1.1.20