You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI="6"
|
||
11 years ago
|
|
||
|
MY_P="FreeWnn-${PV/_alpha/-a0}"
|
||
|
|
||
|
DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
|
||
7 years ago
|
HOMEPAGE="http://freewnn.sourceforge.jp/ http://www.freewnn.org/"
|
||
|
SRC_URI="mirror://sourceforge.jp/${PN}/59257/${MY_P}.tar.bz2"
|
||
11 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="~alpha amd64 arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
|
||
7 years ago
|
IUSE="ipv6"
|
||
11 years ago
|
|
||
3 years ago
|
DEPEND="virtual/libcrypt:="
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
11 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
7 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-parallel-build.patch
|
||
|
"${FILESDIR}"/${PN}-Wformat-security.patch
|
||
|
)
|
||
|
DOCS="ChangeLog* CONTRIBUTORS"
|
||
10 years ago
|
|
||
7 years ago
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
sed -i \
|
||
|
-e "s/WNNOWNER = wnn/WNNOWNER = root/" \
|
||
|
-e "s/@INSTPGMFLAGS@//" \
|
||
|
makerule.mk.in
|
||
|
|
||
|
# bug #542534
|
||
|
sed -i \
|
||
|
-e "s/egrep -v/egrep -av/" \
|
||
|
PubdicPlus/Makefile.in \
|
||
|
Wnn/pubdicplus/Makefile.in \
|
||
|
cWnn/[ct]dic/Makefile.in \
|
||
|
kWnn/kdic/Makefile.in
|
||
11 years ago
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
7 years ago
|
$(use_with ipv6) \
|
||
11 years ago
|
--disable-cWnn \
|
||
7 years ago
|
--disable-kWnn
|
||
11 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
emake DESTDIR="${D}" install install.man
|
||
|
einstalldocs
|
||
|
|
||
|
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||
10 years ago
|
}
|