/[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.1 - (show annotations) (download)
Tue May 18 05:38:39 2010 UTC (4 years, 2 months ago) by graaff
Branch: MAIN
Install ruby files in a version-specific directory. Hardcode for now since this package currently only supports Ruby 1.8.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2010 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-r2.ebuild,v 1.1 2010/03/20 16:52:52 matsuu 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