/[gentoo-x86]/app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild
Gentoo

Contents of /app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Apr 13 15:55:49 2008 UTC (12 years, 1 month ago) by matsuu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Removed old version.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/dbskkd-cdb/dbskkd-cdb-1.01-r1.ebuild,v 1.10 2005/05/16 03:57:39 usata Exp $
4
5 inherit toolchain-funcs
6
7 DESCRIPTION="Yet another Dictionary server for the SKK Japanese-input software"
8 HOMEPAGE="http://www.ne.jp/asahi/bdx/info/software/jp-dbskkd.html"
9 SRC_URI="http://www.ne.jp/asahi/bdx/info/software/${P}.tar.gz"
10
11 LICENSE="as-is"
12 SLOT="0"
13 KEYWORDS="x86 ppc sparc alpha amd64"
14 IUSE=""
15
16 DEPEND="dev-db/freecdb"
17 RDEPEND="app-i18n/skk-jisyo-cdb
18 virtual/inetd"
19 PROVIDE="virtual/skkserv"
20
21 src_compile() {
22 emake \
23 SERVERDIR=/usr/sbin \
24 COMPAT="-DJISHO_FILE=\\\"/usr/share/skk/SKK-JISYO.L.cdb\\\"" \
25 LDFLAGS="-lutil -lfreecdb" \
26 CC="$(tc-getCC) ${CFLAGS}" || die
27 }
28
29 src_install() {
30 dosbin dbskkd-cdb
31
32 einfo "Checking for xinetd..."
33 if test -f /usr/sbin/xinetd; then
34 einfo "copying xinetd configuration file for ${PN}"
35 insinto /etc/xinetd.d
36 newins ${FILESDIR}/dbskkd-cdb.xinetd dbskkd-cdb
37 else
38 einfo "No xinetd found. Config example for inetd is in /etc/inetd.skkserv"
39 dodir /etc/
40 echo > ${D}/etc/inetd.skkserv "skkserv stream tcp nowait nobody /usr/sbin/dbskkd-cdb /usr/sbin/dbskkd-cdb"
41 fi
42 dodoc LICENSE Release-Notes.{English,Japanese}
43 }
44
45 pkg_postinst() {
46 ewarn "The skk server is disabled by default."
47 if test -f ${ROOT}/usr/sbin/xinetd; then
48 ewarn "Please check /etc/xinetd.d/dbskkd-cdb"
49 else
50 ewarn "Please see /etc/inetd.skkserv for an example inetd configuration line"
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20