/[gentoo-x86]/app-i18n/rskkserv/rskkserv-2.95.4-r1.ebuild
Gentoo

Contents of /app-i18n/rskkserv/rskkserv-2.95.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jan 13 02:35:05 2014 UTC (16 months, 1 week ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
app-i18n/rskkserv removal (pending since 30th November 2013).

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/rskkserv/rskkserv-2.95.4-r1.ebuild,v 1.3 2011/04/13 15:19:12 ulm Exp $
4
5 EAPI="2"
6 # dev-ruby/ruby-tcpwrap doesn't work with jruby
7 # rskkserv doesn't work with ruby19
8 USE_RUBY="ruby18 ree18"
9
10 inherit eutils ruby-ng
11
12 DESCRIPTION="rskkserv is an alternative version of skkserv implemented by Ruby"
13 HOMEPAGE="http://raa.ruby-lang.org/list.rhtml?name=rskkserv"
14 SRC_URI="http://www.unixuser.org/~ysjj/rskkserv/${P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ppc ~x86"
19 IUSE=""
20
21 ruby_add_bdepend dev-ruby/ruby-tcpwrap
22 RDEPEND="${DEPEND}
23 app-i18n/skk-jisyo"
24
25 RUBY_PATCHES=( "${FILESDIR}/${P}-gentoo.patch" )
26 all_src_prepare() {
27 sed -i -e "s:with_RUBY:with_ruby:" configure || die
28 }
29
30 each_ruby_configure() {
31 econf \
32 --with-dicfile=/usr/share/skk/SKK-JISYO.L \
33 --with-cachedir=/var/lib/rskkserv \
34 --with-piddir=/var/run \
35 --with-logdir=/var/log \
36 || die "econf failed"
37 cd ext; ${RUBY} extconf.rb || die "extconf.rb failed"
38 }
39
40 each_ruby_compile() {
41 emake || die "emake failed"
42 }
43
44 each_ruby_install() {
45 emake DESTDIR="${D}" install || die "emake install failed"
46 }
47
48 all_ruby_install() {
49 newinitd "${FILESDIR}"/rskkserv-2.95.initd rskkserv || die
50
51 keepdir /var/lib/rskkserv || die
52
53 dodoc ChangeLog TODO || die
54 cd doc
55 dodoc rskkserv.conf.sample conf-o2n.rb || die
56 newdoc README.old README || die
57 doman rskkserv.1 || die
58 cp rskkserv.1.ja_JP.eucJP "${T}"/rskkserv.1 || die
59 doman -i18n=ja "${T}"/rskkserv.1 || die
60 }
61
62 pkg_postinst() {
63 elog
64 elog "If you want to add auxiliary dictionaries (e.g. SKK-JISYO.JIS2,"
65 elog "SKK-JISYO.jinmei, SKK-JISYO.2ch and so on) you need to emerge"
66 elog "app-i18n/skk-jisyo-extra and uncomment dictionary entries in"
67 elog "/etc/rskkserv.conf manually."
68 elog
69 elog "If you are upgrading from 2.94.x, you may want to use"
70 elog "conf-o2n.rb in /usr/share/doc/${PF} to convert configuration"
71 elog "file into new format."
72 elog
73 }

  ViewVC Help
Powered by ViewVC 1.1.20