/[gentoo-x86]/app-i18n/prime/prime-1.0.0.1-r2.ebuild
Gentoo

Contents of /app-i18n/prime/prime-1.0.0.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jun 21 17:58:39 2012 UTC (2 years, 6 months ago) by naota
Branch: MAIN
Patch Kernel::require to require to include rubygem path. #420499

(Portage version: 2.2.0_alpha110/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/app-i18n/prime/prime-1.0.0.1-r1.ebuild,v 1.1 2012/01/22 11:06:26 matsuu Exp $
4
5 EAPI="3"
6 # don't work with ruby19
7 # jruby: sary-ruby issue
8 # rbx: sary-ruby issue
9 USE_RUBY="ruby18 ree18"
10 inherit autotools eutils ruby-ng
11
12 DESCRIPTION="Japanese PRedictive Input Method Editor"
13 HOMEPAGE="http://taiyaki.org/prime/"
14 SRC_URI="http://prime.sourceforge.jp/src/${P/_/-}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
19 IUSE=""
20
21 ruby_add_bdepend "virtual/rubygems"
22 ruby_add_rdepend ">=app-dicts/prime-dict-1.0.0
23 >=dev-libs/suikyo-2.1.0
24 dev-ruby/ruby-progressbar
25 dev-ruby/sary-ruby"
26
27 S="${WORKDIR}/${P/_/-}"
28
29 all_ruby_prepare() {
30 epatch \
31 "${FILESDIR}/${P}-parallel.patch" \
32 "${FILESDIR}/${P}-libdir.patch" \
33 "${FILESDIR}/${P}-require.patch"
34 # eautoreconf
35 }
36
37 each_ruby_prepare() {
38 sed -i -e "s:ruby -r:${RUBY} -r:" acinclude.m4 || die
39 sed -i -e "s:ruby -e:${RUBY} -e:" src/Makefile.am || die
40 eautoreconf
41 }
42
43 each_ruby_configure() {
44 econf \
45 --with-prime-docdir=/usr/share/doc/${PF}/html \
46 --with-rubydir=$(ruby_rbconfig_value 'sitelibdir') || die
47 }
48
49 each_ruby_compile() {
50 emake || die
51 }
52
53 each_ruby_install() {
54 emake DESTDIR="${D}" install install-etc || die
55 }
56
57 all_ruby_install() {
58 dodoc AUTHORS ChangeLog NEWS README TODO || die
59 dohtml -r doc/* || die
60 }

  ViewVC Help
Powered by ViewVC 1.1.20