/[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.6 - (show annotations) (download)
Sat Mar 30 18:21:32 2013 UTC (15 months, 3 weeks ago) by jer
Branch: MAIN
Changes since 1.5: +2 -2 lines
Stable for HPPA (bug #457238).

(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2013 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.5 2013/03/23 09:56:21 ago Exp $
4
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/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