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

Contents of /app-i18n/dbskkd-cdb/dbskkd-cdb-1.71.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Apr 6 16:21:46 2008 UTC (12 years, 3 months ago) by maekke
Branch: MAIN
Changes since 1.1: +2 -2 lines
amd64/x86 stable, bug #216277
(Portage version: 2.1.5_rc2)

1 matsuu 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 maekke 1.2 # $Header: /var/cvsroot/gentoo-x86/app-i18n/dbskkd-cdb/dbskkd-cdb-1.71.ebuild,v 1.1 2008/04/01 17:36:32 matsuu Exp $
4 matsuu 1.1
5     inherit eutils multilib toolchain-funcs
6    
7     MY_P="${P}dev"
8     DESCRIPTION="Yet another Dictionary server for the SKK Japanese-input software"
9     HOMEPAGE="http://www.ne.jp/asahi/bdx/info/software/jp-dbskkd.html"
10     SRC_URI="http://www.ne.jp/asahi/bdx/info/software/${MY_P}.tar.gz"
11    
12     LICENSE="as-is"
13     SLOT="0"
14 maekke 1.2 KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
15 matsuu 1.1 IUSE=""
16    
17     DEPEND="dev-db/cdb
18     || (
19     >=app-i18n/skk-jisyo-200705
20     app-i18n/skk-jisyo-cdb
21     )"
22     RDEPEND="sys-process/daemontools
23     sys-apps/ucspi-tcp"
24     PROVIDE="virtual/skkserv"
25    
26     S="${WORKDIR}/${MY_P}"
27    
28     JISYO_FILE="/usr/share/skk/SKK-JISYO.L.cdb"
29    
30     pkg_setup() {
31     if has_version '>=app-i18n/skk-jisyo-200705' && ! built_with_use '>=app-i18n/skk-jisyo-200705' cdb ; then
32     eerror "multiskkserv requires skk-jisyo to be built with cdb support. Please add"
33     eerror "'cdb' to your USE flags, and re-emerge app-i18n/skk-jisyo."
34     die "Missing cdb USE flag."
35     fi
36     # from READMEJP
37     enewuser dbskkd -1 -1 -1 nofiles
38     enewuser svlog -1 -1 -1 nofiles
39     }
40    
41     src_unpack() {
42     unpack ${A}
43     cd "${S}"
44     sed -i \
45     -e 's/IP\.ADD\.RE\.SS/127.0.0.1/' \
46     -e 's:/usr/local:/usr:' \
47     run.example || die
48     }
49    
50     src_compile() {
51     $(tc-getCC) ${CFLAGS} \
52     -DSERVERDIR="\"/service/dbskkd-cdb/root\"" \
53     -o dbskkd-cdb dbskkd-cdb.c /usr/$(get_libdir)/{cdb,unix,byte}.a || die
54     }
55    
56     src_install() {
57     exeinto /usr/libexec; doexe dbskkd-cdb || die
58     dodoc CHANGES READMEJP
59    
60     exeinto /var/dbskkd-cdb/service; newexe run.example run || die
61     exeinto /var/dbskkd-cdb/service/log; newexe run.log.example run || die
62     keepdir /var/dbskkd-cdb/service/log/main
63     insinto /var/dbskkd-cdb/service/root; doins "${JISYO_FILE}"
64     fperms +t /var/dbskkd-cdb/service
65     fowners -R svlog:nofiles /var/dbskkd-cdb/service/log
66     }
67    
68     pkg_postinst() {
69     elog "To start dbskkd-cdb at boot you have to enable the /etc/init.d/svscan"
70     elog "rc file and create the following link:"
71     elog
72     elog "# ln -sf /var/dbskkd-cdb/service /service/dbskkd-cdb"
73     elog
74     }

  ViewVC Help
Powered by ViewVC 1.1.20