From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/system_timer: metadata.xml system_timer-1.2.4.ebuild ChangeLog |
Date: | Sat, 24 Dec 2011 02:45:13 |
Message-Id: | 20111224024503.080762004C@flycatcher.gentoo.org |
1 | flameeyes 11/12/24 02:45:03 |
2 | |
3 | Added: metadata.xml system_timer-1.2.4.ebuild ChangeLog |
4 | Log: |
5 | Initial import of system_timer gem, which also covers SystemTimer. |
6 | |
7 | (Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-ruby/system_timer/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/system_timer/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/system_timer/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>ruby</herd> |
21 | </pkgmetadata> |
22 | |
23 | |
24 | |
25 | 1.1 dev-ruby/system_timer/system_timer-1.2.4.ebuild |
26 | |
27 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/system_timer/system_timer-1.2.4.ebuild?rev=1.1&view=markup |
28 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/system_timer/system_timer-1.2.4.ebuild?rev=1.1&content-type=text/plain |
29 | |
30 | Index: system_timer-1.2.4.ebuild |
31 | =================================================================== |
32 | # Copyright 1999-2011 Gentoo Foundation |
33 | # Distributed under the terms of the GNU General Public License v2 |
34 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/system_timer/system_timer-1.2.4.ebuild,v 1.1 2011/12/24 02:45:02 flameeyes Exp $ |
35 | |
36 | EAPI="4" |
37 | |
38 | USE_RUBY="ruby18 ree18" |
39 | |
40 | RUBY_FAKEGEM_TASK_TEST="test" |
41 | |
42 | RUBY_FAKEGEM_TASK_DOC="rdoc" |
43 | RUBY_FAKEGEM_DOCDIR="rdoc" |
44 | RUBY_FAKEGEM_EXTRADOC="README.markdown ChangeLog" |
45 | |
46 | GITHUB_USER="ph7" |
47 | GITHUB_PROJECT="${PN/_/-}" |
48 | |
49 | inherit ruby-fakegem eutils |
50 | |
51 | DESCRIPTION="Signal-based timer for Ruby 1.8 (and RubyEE 1.8)" |
52 | HOMEPAGE="http://ph7spot.com/musings/system-timer" |
53 | SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/${PV} -> ${P}.tar.gz" |
54 | RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*" |
55 | |
56 | LICENSE="|| ( Ruby GPL-2 )" |
57 | SLOT="0" |
58 | KEYWORDS="~amd64" |
59 | IUSE="" |
60 | |
61 | ruby_add_bdepend " |
62 | test? ( |
63 | dev-ruby/mocha |
64 | dev-ruby/dust |
65 | )" |
66 | |
67 | each_ruby_configure() { |
68 | ${RUBY} -C ext/${PN} extconf.rb || die |
69 | } |
70 | |
71 | each_ruby_compile() { |
72 | emake -C ext/${PN} CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" |
73 | cp ext/${PN}/*.so lib || die |
74 | } |
75 | |
76 | each_ruby_install() { |
77 | each_fakegem_install |
78 | |
79 | # and now... since the gem was renamed from SystemTimer, create a |
80 | # fake SystemTimer gem... |
81 | cat - <<EOF > "${T}/SystemTimer.gemspec" |
82 | # generated by ebuild |
83 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/system_timer/system_timer-1.2.4.ebuild,v 1.1 2011/12/24 02:45:02 flameeyes Exp $ |
84 | Gem::Specification.new do |s| |
85 | s.name = "SystemTimer" |
86 | s.version = "${RUBY_FAKEGEM_VERSION}" |
87 | s.summary = "Fake gem to load system_timer" |
88 | s.homepage = "${HOMEPAGE}" |
89 | s.require_paths = ["lib"] |
90 | s.specification_version = 3 |
91 | s.add_runtime_dependency("${RUBY_FAKEGEM_NAME}", ["= ${RUBY_FAKEGEM_VERSION}"]) |
92 | end |
93 | EOF |
94 | RUBY_FAKEGEM_NAME=SystemTimer \ |
95 | RUBY_FAKEGEM_GEMSPEC="${T}/SystemTimer.gemspec" \ |
96 | ruby_fakegem_install_gemspec |
97 | |
98 | dodir $(ruby_fakegem_gemsdir)/gems/SystemTimer-${PV}/lib |
99 | cat - <<EOF > "${D}/$(ruby_fakegem_gemsdir)/gems/SystemTimer-${PV}/lib/SystemTimer.rb" |
100 | require 'system_timer' |
101 | EOF |
102 | } |
103 | |
104 | |
105 | |
106 | 1.1 dev-ruby/system_timer/ChangeLog |
107 | |
108 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/system_timer/ChangeLog?rev=1.1&view=markup |
109 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/system_timer/ChangeLog?rev=1.1&content-type=text/plain |
110 | |
111 | Index: ChangeLog |
112 | =================================================================== |
113 | # ChangeLog for dev-ruby/system_timer |
114 | # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
115 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/system_timer/ChangeLog,v 1.1 2011/12/24 02:45:02 flameeyes Exp $ |
116 | |
117 | *system_timer-1.2.4 (24 Dec 2011) |
118 | |
119 | 24 Dec 2011; Diego E. Pettenò <flameeyes@g.o> +metadata.xml, |
120 | +system_timer-1.2.4.ebuild: |
121 | Initial import of system_timer gem, which also covers SystemTimer. |