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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Sep 5 12:18:09 2013 UTC (15 months, 3 weeks ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleanup old.

(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key )

1 matsuu 1.1 # Copyright 1999-2010 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 mrueg 1.2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/suikyo/suikyo-2.1.0-r2.ebuild,v 1.1 2010/03/20 16:52:52 matsuu Exp $
4 matsuu 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     KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
16     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" || 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