forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
freewnn-1.1.1_alpha22.ebuild
60 lines (47 loc) · 1.4 KB
/
freewnn-1.1.1_alpha22.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils
MY_P="FreeWnn-${PV/_alpha/-a0}"
DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
HOMEPAGE="http://freewnn.sourceforge.jp/
http://www.freewnn.org/"
SRC_URI="mirror://sourceforge.jp/freewnn/59257/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
IUSE="X ipv6"
DEPEND="X? ( x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_prepare() {
#Change WNNOWNER to root so we don't need to add wnn user
# and disable stripping of binary files
sed -i -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
-e "s/@INSTPGMFLAGS@//" makerule.mk.in \
-e "s/@LN_S@/ln -sf/" || die
#bug #318593
epatch "${FILESDIR}"/${P}-parallel-build.patch #517916
# 542534
sed -i -e "s/egrep -v/egrep -av/" kWnn/kdic/Makefile.in \
cWnn/tdic/Makefile.in cWnn/cdic/Makefile.in \
Wnn/pubdicplus/Makefile.in || die
}
src_configure() {
econf \
--disable-cWnn \
--disable-kWnn \
--without-termcap \
$(use_with X x) \
$(use_with ipv6)
}
src_install() {
# install executables, libs ,dictionaries
emake DESTDIR="${ED}" install || die
# install man pages
emake DESTDIR="${ED}" install.man || die
# install docs
dodoc ChangeLog* CONTRIBUTORS
# install rc script
newinitd "${FILESDIR}"/freewnn.initd freewnn
}