/[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 - (hide annotations) (download)
Sat Apr 28 15:45:13 2007 UTC (10 years, 8 months ago) by tove
Branch: MAIN
Changes since 1.6: +2 -3 lines
Use newinitd
(Portage version: 2.1.2.5)

1 flameeyes 1.6 # Copyright 1999-2007 Gentoo Foundation
2 usata 1.1 # Distributed under the terms of the GNU General Public License v2
3 tove 1.7 # $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 usata 1.1
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 kloeri 1.4 KEYWORDS="alpha ~ppc x86"
14 usata 1.1 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 flameeyes 1.5 emake -j1 DESTDIR="${D}" install || die "emake install failed"
36 usata 1.1
37 tove 1.7 newinitd "${FILESDIR}"/rskkserv-2.95.initd rskkserv || die
38 usata 1.1
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 flameeyes 1.6 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 usata 1.1 draw_line
60 flameeyes 1.6 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 usata 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20