/[gentoo-x86]/dev-libs/suikyo/suikyo-2.1.0-r4.ebuild
Gentoo

Contents of /dev-libs/suikyo/suikyo-2.1.0-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Feb 5 02:38:28 2012 UTC (2 years, 7 months ago) by matsuu
Branch: MAIN
Added USE_RUBY="ree18 jruby rbx"

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 matsuu 1.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-libs/suikyo/suikyo-2.1.0-r3.ebuild,v 1.1 2010/05/18 05:38:39 graaff Exp $
4    
5     EAPI="2"
6     # ruby19: failed
7     USE_RUBY="ruby18 ree18 jruby rbx"
8     inherit elisp-common ruby-ng
9    
10     DESCRIPTION="Romaji Hiragana conversion library"
11     HOMEPAGE="http://taiyaki.org/suikyo/"
12     SRC_URI="http://prime.sourceforge.jp/src/${P}.tar.gz"
13    
14     LICENSE="GPL-2"
15     SLOT="0"
16     KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
17     IUSE="emacs"
18    
19     DEPEND="emacs? ( virtual/emacs )"
20     RDEPEND="${DEPEND}"
21    
22     SITEFILE=50${PN}-gentoo.el
23    
24     RUBY_PATCHES=(
25     "${P}-pkgconfig.patch"
26     )
27    
28     each_ruby_configure() {
29     econf \
30     --with-suikyo-docdir="/usr/share/doc/${PF}/html" \
31     --with-rubydir="$(ruby_rbconfig_value 'sitelibdir')" || die
32     }
33    
34     each_ruby_compile() {
35     emake || die
36     }
37    
38     each_ruby_install() {
39     emake DESTDIR="${D}" install || die
40     }
41    
42     all_ruby_install() {
43     dodoc AUTHORS ChangeLog NEWS README || die
44    
45     if use emacs ; then
46     elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
47     else
48     rm -rf "${D}"/usr/share/emacs/ || die
49     fi
50     }
51    
52     pkg_postinst() {
53     use emacs && elisp-site-regen
54     }
55    
56     pkg_postrm() {
57     use emacs && elisp-site-regen
58     }

  ViewVC Help
Powered by ViewVC 1.1.20