summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-05-18 05:38:39 +0000
committerHans de Graaff <graaff@gentoo.org>2010-05-18 05:38:39 +0000
commit034a3bba8429c66fd3a6e1bd30f976d849a7bb97 (patch)
tree592d7b0b325f28f1bebdff1b6d9ec82d0a9b1a29 /dev-libs/suikyo
parentInitial commit (diff)
downloadgentoo-2-034a3bba8429c66fd3a6e1bd30f976d849a7bb97.tar.gz
gentoo-2-034a3bba8429c66fd3a6e1bd30f976d849a7bb97.tar.bz2
gentoo-2-034a3bba8429c66fd3a6e1bd30f976d849a7bb97.zip
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)
Diffstat (limited to 'dev-libs/suikyo')
-rw-r--r--dev-libs/suikyo/ChangeLog8
-rw-r--r--dev-libs/suikyo/suikyo-2.1.0-r3.ebuild57
2 files changed, 64 insertions, 1 deletions
diff --git a/dev-libs/suikyo/ChangeLog b/dev-libs/suikyo/ChangeLog
index 8a86915c52d6..69049188a701 100644
--- a/dev-libs/suikyo/ChangeLog
+++ b/dev-libs/suikyo/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/suikyo
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/suikyo/ChangeLog,v 1.43 2010/03/20 16:52:52 matsuu Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/suikyo/ChangeLog,v 1.44 2010/05/18 05:38:39 graaff Exp $
+
+*suikyo-2.1.0-r3 (18 May 2010)
+
+ 18 May 2010; Hans de Graaff <graaff@gentoo.org> +suikyo-2.1.0-r3.ebuild:
+ Install ruby files in a version-specific directory. Hardcode for now since
+ this package currently only supports Ruby 1.8.
*suikyo-2.1.0-r2 (20 Mar 2010)
diff --git a/dev-libs/suikyo/suikyo-2.1.0-r3.ebuild b/dev-libs/suikyo/suikyo-2.1.0-r3.ebuild
new file mode 100644
index 000000000000..8e90c00a7a04
--- /dev/null
+++ b/dev-libs/suikyo/suikyo-2.1.0-r3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI="2"
+USE_RUBY="ruby18"
+inherit elisp-common eutils multilib ruby-ng
+
+DESCRIPTION="Romaji Hiragana conversion library"
+HOMEPAGE="http://taiyaki.org/suikyo/"
+SRC_URI="http://prime.sourceforge.jp/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="emacs"
+
+DEPEND="$(ruby_implementation_depend ruby18)
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ # prevent ruby-ng.eclass from messing with src_unpack
+ default
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-pkgconfig.patch"
+}
+
+src_configure() {
+ econf \
+ --with-suikyo-docdir="/usr/share/doc/${PF}/html" \
+ --with-rubydir="/usr/$(get_libdir)/ruby/site_ruby/1.8" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+
+ if use emacs ; then
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+ else
+ rm -rf "${D}"/usr/share/emacs/ || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}