+++ /dev/null
---- a/configure.ac
-+++ b/configure.ac
-@@ -153,7 +122,6 @@
- if test x$LIBDEBUG = x"true"; then
- AC_DEFINE(ENABLE_DEBUG, 1,
- [Define to 1 if you want native library runtime debugging code enabled])
-- CFLAGS="$CFLAGS -g"
- fi
- AC_SUBST(LIBDEBUG)
-
+++ /dev/null
---- a/configure.ac
-+++ b/configure.ac
-@@ -91,38 +91,8 @@
- AM_CONDITIONAL(ENABLE_UNIT_TEST, test x$enable_check = "xyes")
-
- # Checks for ncursesw
--OLDCFLAGS=$CFLAGS
--LIB_NAME=ncursesw
--NCURSESW_CFLAGS=
--NCURSESW_LIBS=
--for p in "$HOME/include" "$prefix/include" /usr/local/include /usr/include
--do
-- if test -f "$p/ncursesw/ncurses.h"
-- then
-- NCURSESW_CFLAGS="-I$p"
-- AC_DEFINE(HAVE_NCURSESW_NCURSES_H, 1, [ Define to 1 if you have the <ncursesw/ncurses.h> header file. ])
-- break
-- elif test -f "$p/ncurses/ncurses.h"
-- then
-- NCURSESW_CFLAGS="-I$p"
-- AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1, [ Define to 1 if you have the <ncurses/ncurses.h> header file. ])
-- break
-- fi
--done
--
--for p in "$HOME/lib" "$prefix/lib" /usr/local/lib /usr/lib
--do
-- if test -f "$p/libncursesw.so"
-- then
-- if test "$p" != x/usr/lib
-- then
-- NCURSESW_LIBS="-L$p -lncursesw"
-- else
-- NCURSESW_LIBS="-lncursesw"
-- fi
-- break
-- fi
--done
-+PKG_CHECK_MODULES(NCURSESW,ncursesw,
-+ AC_DEFINE(HAVE_NCURSESW_NCURSES_H, 1, [ Define to 1 if you have the <ncursesw/ncurses.h> header file. ]),)
-
- enable_ncursesw=yes
- if test -z "$NCURSESW_CFLAGS"; then
+++ /dev/null
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit autotools eutils multilib toolchain-funcs
-
-DESCRIPTION="Library for Chinese Phonetic input method"
-HOMEPAGE="http://chewing.csie.net/"
-SRC_URI="http://chewing.csie.net/download/libchewing/${P}.tar.bz2"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
-IUSE="static-libs test"
-
-DEPEND="
- virtual/pkgconfig
- test? (
- sys-libs/ncurses[unicode]
- >=dev-libs/check-0.9.4
- )
-"
-
-src_prepare() {
- epatch \
- "${FILESDIR}"/${PV}-cflags.patch \
- "${FILESDIR}"/${PV}-strncat-fix.patch \
- "${FILESDIR}"/${PV}-tinfo.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf $(use_enable static-libs static)
-}
-
-src_test() {
- # test subdirectory is not enabled by default; this means that we
- # have to make it explicit.
- emake -C test check
-}
-
-DOCS=( AUTHORS ChangeLog NEWS README TODO )
-
-src_install() {
- default
-
- prune_libtool_files
-}