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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Sun Sep 1 16:04:38 2013 UTC (10 months, 2 weeks ago) by ago
Branch: MAIN
Changes since 1.6: +2 -2 lines
Stable for alpha, wrt bug #391627

(Portage version: 2.1.12.2/cvs/Linux ppc64, RepoMan options: --include-arches="alpha", signed Manifest commit with key 7194459F)

1 ago 1.4 # Copyright 1999-2013 Gentoo Foundation
2 graaff 1.1 # Distributed under the terms of the GNU General Public License v2
3 ago 1.7 # $Header: /var/cvsroot/gentoo-x86/dev-libs/suikyo/suikyo-2.1.0-r3.ebuild,v 1.6 2013/03/30 18:21:32 jer Exp $
4 graaff 1.1
5     EAPI="2"
6     USE_RUBY="ruby18"
7     inherit elisp-common eutils multilib ruby-ng
8    
9     DESCRIPTION="Romaji Hiragana conversion library"
10     HOMEPAGE="http://taiyaki.org/suikyo/"
11     SRC_URI="http://prime.sourceforge.jp/src/${P}.tar.gz"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 ago 1.7 KEYWORDS="alpha amd64 hppa ppc ppc64 ~sparc x86"
16 graaff 1.1 IUSE="emacs"
17    
18     DEPEND="$(ruby_implementation_depend ruby18)
19     emacs? ( virtual/emacs )"
20     RDEPEND="${DEPEND}"
21    
22     SITEFILE=50${PN}-gentoo.el
23    
24     src_unpack() {
25     # prevent ruby-ng.eclass from messing with src_unpack
26     default
27     }
28    
29     src_prepare() {
30     epatch "${FILESDIR}/${P}-pkgconfig.patch"
31     }
32    
33     src_configure() {
34     econf \
35     --with-suikyo-docdir="/usr/share/doc/${PF}/html" \
36     --with-rubydir="/usr/$(get_libdir)/ruby/site_ruby/1.8" || die
37     }
38    
39     src_install() {
40     emake DESTDIR="${D}" install || die
41    
42     dodoc AUTHORS ChangeLog NEWS README || die
43    
44     if use emacs ; then
45     elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
46     else
47     rm -rf "${D}"/usr/share/emacs/ || die
48     fi
49     }
50    
51     pkg_postinst() {
52     use emacs && elisp-site-regen
53     }
54    
55     pkg_postrm() {
56     use emacs && elisp-site-regen
57     }

  ViewVC Help
Powered by ViewVC 1.1.20