Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/tmail: metadata.xml ChangeLog tmail-1.2.3.1.ebuild
Date: Sat, 02 Jan 2010 13:20:46
Message-Id: E1NR3uM-0001vF-TB@stork.gentoo.org
1 flameeyes 10/01/02 13:20:42
2
3 Added: metadata.xml ChangeLog tmail-1.2.3.1.ebuild
4 Log:
5 Initial import of tmail, needed for the unbundled actionmailer.
6 (Portage version: 2.2_rc61/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-ruby/tmail/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/tmail/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/tmail/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>ruby</herd>
20 </pkgmetadata>
21
22
23
24 1.1 dev-ruby/tmail/ChangeLog
25
26 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/tmail/ChangeLog?rev=1.1&view=markup
27 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/tmail/ChangeLog?rev=1.1&content-type=text/plain
28
29 Index: ChangeLog
30 ===================================================================
31 # ChangeLog for dev-ruby/tmail
32 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
33 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/tmail/ChangeLog,v 1.1 2010/01/02 13:20:42 flameeyes Exp $
34
35 *tmail-1.2.3.1 (02 Jan 2010)
36
37 02 Jan 2010; Diego E. Pettenò <flameeyes@g.o>
38 +tmail-1.2.3.1.ebuild, +metadata.xml:
39 Initial import of tmail, needed for the unbundled actionmailer.
40
41
42
43
44 1.1 dev-ruby/tmail/tmail-1.2.3.1.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/tmail/tmail-1.2.3.1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/tmail/tmail-1.2.3.1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: tmail-1.2.3.1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/tmail/tmail-1.2.3.1.ebuild,v 1.1 2010/01/02 13:20:42 flameeyes Exp $
54
55 EAPI=2
56 USE_RUBY="ruby18 ruby19"
57
58 RUBY_FAKEGEM_TASK_DOC="doc"
59 RUBY_FAKEGEM_DOCDIR="doc"
60 RUBY_FAKEGEM_EXTRADOC="README CHANGES NOTES"
61
62 inherit ruby-fakegem
63
64 DESCRIPTION="An email handling library"
65 HOMEPAGE="http://rubyforge.org/projects/tmail/"
66
67 LICENSE="MIT"
68 SLOT="0"
69 KEYWORDS="~amd64"
70 IUSE="debug"
71
72 # Tests seem to be broken with the new encoding handling from Ruby,
73 # need to be verified twice; code seems to work anyway.
74 RESTRICT=test
75
76 ruby_add_bdepend dev-ruby/racc
77 ruby_add_bdepend test '>=dev-ruby/mocha-0.9.5'
78
79 each_ruby_compile() {
80 if [[ $(basename ${RUBY}) == "ruby18" ]]; then
81 pushd ext/tmailscanner/tmail
82 ${RUBY} extconf.rb || die "extconf failed"
83 emake || die "emake extension failed"
84 popd
85 fi
86
87 emake -C lib/tmail $(use debug && echo DEBUG=true) parser.rb || die "emake failed"
88 }
89
90 each_ruby_install() {
91 # We cannot use the recursive install because there are
92 # racc source files and a makefile.
93 find lib -name '*.rb' | while read file; do
94 ruby_fakegem_newins $file $file
95 done
96
97 if [[ $(basename ${RUBY}) == "ruby18" ]]; then
98 ruby_fakegem_newins ext/tmailscanner/tmail/tmailscanner.so lib/tmail/tmailscanner.so
99 fi
100
101 ruby_fakegem_genspec
102 }
103
104 all_ruby_install() {
105 all_fakegem_install
106
107 docinto examples
108 dodoc sample/* || die
109 }