app-i18n/ibus-pinyin: fix build with USE=boost
authorAkinori Hattori <hattya@gentoo.org>
Wed, 23 Aug 2017 15:01:16 +0000 (00:01 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Wed, 23 Aug 2017 15:01:16 +0000 (00:01 +0900)
Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-i18n/ibus-pinyin/files/ibus-pinyin-boost.patch [new file with mode: 0644]
app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild

diff --git a/app-i18n/ibus-pinyin/files/ibus-pinyin-boost.patch b/app-i18n/ibus-pinyin/files/ibus-pinyin-boost.patch
new file mode 100644 (file)
index 0000000..124339e
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -93,9 +93,9 @@
+ )
+ if test x"$enable_boost" = x"yes"; then
+     # check boost
+-    BOOST_REQUIRE([1.39])
+-    BOOST_FIND_HEADER([boost/bind.hpp])
+-    BOOST_FIND_HEADER([boost/signals2.hpp])
++    AX_BOOST_BASE([1.39])
++    AC_CHECK_HEADERS([boost/bind.hpp])
++    AC_CHECK_HEADERS([boost/signals2.hpp])
+ fi
+ AM_CONDITIONAL(HAVE_BOOST, test x"$enable_boost" = x"yes")
+ 
index d3d30fc71362c28293311dc27f64fc66b8c295e7..2f8dba36e3c95f80a8e516254cba4828a7aa9cf7 100644 (file)
@@ -4,7 +4,7 @@
 EAPI="6"
 PYTHON_COMPAT=( python2_7 )
 
-inherit python-single-r1
+inherit autotools python-single-r1
 
 DESCRIPTION="Chinese Pinyin and Bopomofo engines for IBus"
 HOMEPAGE="https://github.com/ibus/ibus/wiki"
@@ -26,15 +26,20 @@ RDEPEND="${PYTHON_DEPS}
        nls? ( virtual/libintl )"
 DEPEND="${RDEPEND}
        dev-util/intltool
+       sys-devel/autoconf-archive
        virtual/pkgconfig
        nls? ( sys-devel/gettext )"
 
-PATCHES=( "${FILESDIR}"/${P}-content-type-method.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-boost.patch
+       "${FILESDIR}"/${P}-content-type-method.patch
+)
 
 src_prepare() {
        sed -i "s/python/${EPYTHON}/" setup/${PN/-/-setup-}.in
 
        default
+       eautoreconf
 }
 
 src_configure() {