/[gentoo-x86]/app-i18n/multiskkserv/multiskkserv-20020201.ebuild
Gentoo

Contents of /app-i18n/multiskkserv/multiskkserv-20020201.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Wed Apr 13 15:17:32 2011 UTC (3 years, 3 months ago) by ulm
Branch: MAIN
Changes since 1.15: +1 -2 lines
Don't PROVIDE virtual/skkserv, it is a new-style virtual now. Bug 358851.

(Portage version: 2.1.9.45/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-i18n/multiskkserv/multiskkserv-20020201.ebuild,v 1.15 2011/02/13 19:14:11 armin76 Exp $
4
5 EAPI="2"
6
7 inherit eutils fixheadtails
8
9 CDB_PV=0.75
10 CDB_PN=cdb
11 CDB_P=${CDB_PN}-${CDB_PV}
12
13 DESCRIPTION="SKK server that handles multiple dictionaries"
14 HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
15 SRC_URI="http://www3.big.or.jp/~sian/linux/products/${P}.tar.bz2
16 http://cr.yp.to/cdb/${CDB_P}.tar.gz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="ppc x86"
21 IUSE=""
22
23 DEPEND="
24 || (
25 >=app-i18n/skk-jisyo-200705[cdb]
26 app-i18n/skk-jisyo-cdb
27 )"
28
29 src_prepare() {
30 cd "${WORKDIR}/${CDB_P}" || die
31 epatch "${FILESDIR}/${CDB_P}-errno.diff"
32 ht_fix_all
33
34 cd "${S}" || die
35 ht_fix_all
36
37 cd "${S}/src" || die
38 epatch "${FILESDIR}/${P}-gcc34.diff"
39 }
40
41 src_configure() {
42 cd "${WORKDIR}/${CDB_P}"
43 emake || die
44 cd - || die
45
46 cd /usr/share/skk || die
47 echo "# Available SKK-JISYO files are:" >> "${S}/multiskkserv.conf"
48 for i in *.cdb ; do
49 echo "# ${i}" >> "${S}/multiskkserv.conf"
50 done
51 cd -
52
53 econf --with-cdb="${WORKDIR}/${CDB_P}" || die
54 }
55
56 src_install() {
57 emake DESTDIR="${D}" install || die
58
59 newconfd "${FILESDIR}/multiskkserv.conf" multiskkserv || die
60
61 newinitd "${FILESDIR}/multiskkserv.initd" multiskkserv || die
62
63 dodoc AUTHORS ChangeLog INSTALL NEWS README* || die
64 }
65
66 pkg_postinst() {
67 elog "By default, multiskkserv will look up only SKK-JISYO.L."
68 elog "If you want to use more dictionaries,"
69 elog "edit /etc/conf.d/multiskkserv manually."
70 }

  ViewVC Help
Powered by ViewVC 1.1.20