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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Apr 28 15:45:13 2007 UTC (11 years, 7 months ago) by tove
Branch: MAIN
Changes since 1.6: +2 -3 lines
Use newinitd
(Portage version: 2.1.2.5)

1 # Copyright 1999-2007 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.3-r1.ebuild,v 1.6 2007/01/05 16:23:50 flameeyes Exp $
4
5 inherit ruby eutils
6
7 DESCRIPTION="rskkserv is an alternative version of skkserv implemented by Ruby"
8 HOMEPAGE="http://raa.ruby-lang.org/list.rhtml?name=rskkserv"
9 SRC_URI="http://www.unixuser.org/~ysjj/rskkserv/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha ~ppc x86"
14 IUSE=""
15
16 DEPEND="dev-ruby/ruby-tcpwrap"
17 RDEPEND="${DEPEND}
18 app-i18n/skk-jisyo"
19 PROVIDE="virtual/skkserv"
20 USE_RUBY="ruby16 ruby18 ruby19"
21
22 src_compile() {
23 ruby -i -pe "gsub(/with_RUBY/,'with_ruby')" configure || die
24 econf \
25 --with-dicfile=/usr/share/skk/SKK-JISYO.L \
26 --with-cachedir=/var/lib/rskkserv \
27 --with-piddir=/var/run \
28 --with-logdir=/var/log \
29 || die "econf failed"
30 emake || die "emake failed"
31 }
32
33 src_install() {
34 keepdir /var/lib/rskkserv
35 emake -j1 DESTDIR="${D}" install || die "emake install failed"
36
37 newinitd "${FILESDIR}"/rskkserv-2.95.initd rskkserv || die
38
39 dodoc ChangeLog
40 cd doc
41 dodoc rskkserv.conf.sample
42 newdoc README.old README
43 insinto /usr/share/doc/${PF}
44 doins conf-o2n.rb
45 newman rskkserv.1.in rskkserv.1
46 insinto /usr/share/man/ja/man1
47 newins rskkserv.1.ja_JP.eucJP.in rskkserv.1
48 }
49
50 pkg_postinst() {
51 elog
52 elog "If you want to add auxiliary dictionaries (e.g. SKK-JISYO.JIS2,"
53 elog "SKK-JISYO.jinmei, SKK-JISYO.2ch and so on) you need to emerge"
54 elog "app-i18n/skk-jisyo-extra and uncomment dictionary entries in"
55 elog "/etc/rskkserv.conf manually."
56 #elog "See /usr/share/doc/${PF}/rskkserv.conf.sample.gz"
57 #elog "for an example of multiple dictionaries."
58 elog
59 draw_line
60 elog
61 elog "If you are upgrading from 2.94.x, you may want to use"
62 elog "/usr/share/doc/${PF}/conf-o2n.rb to convert configuration"
63 elog "file into new format."
64 elog
65 }

  ViewVC Help
Powered by ViewVC 1.1.20