/[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.6 - (show annotations) (download)
Fri Jan 5 16:23:50 2007 UTC (11 years ago) by flameeyes
Branch: MAIN
Changes since 1.5: +15 -15 lines
Convert to use elog.
(Portage version: 2.1.2_rc4-r6)

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.5 2006/10/14 10:26:04 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 exeinto /etc/init.d
38 newexe ${FILESDIR}/rskkserv-2.95.initd rskkserv || die
39
40 dodoc ChangeLog
41 cd doc
42 dodoc rskkserv.conf.sample
43 newdoc README.old README
44 insinto /usr/share/doc/${PF}
45 doins conf-o2n.rb
46 newman rskkserv.1.in rskkserv.1
47 insinto /usr/share/man/ja/man1
48 newins rskkserv.1.ja_JP.eucJP.in rskkserv.1
49 }
50
51 pkg_postinst() {
52 elog
53 elog "If you want to add auxiliary dictionaries (e.g. SKK-JISYO.JIS2,"
54 elog "SKK-JISYO.jinmei, SKK-JISYO.2ch and so on) you need to emerge"
55 elog "app-i18n/skk-jisyo-extra and uncomment dictionary entries in"
56 elog "/etc/rskkserv.conf manually."
57 #elog "See /usr/share/doc/${PF}/rskkserv.conf.sample.gz"
58 #elog "for an example of multiple dictionaries."
59 elog
60 draw_line
61 elog
62 elog "If you are upgrading from 2.94.x, you may want to use"
63 elog "/usr/share/doc/${PF}/conf-o2n.rb to convert configuration"
64 elog "file into new format."
65 elog
66 }

  ViewVC Help
Powered by ViewVC 1.1.20