media-libs/libepoxy: Switch to using the meson build system
authorMatt Turner <mattst88@gentoo.org>
Sat, 16 Sep 2017 19:34:10 +0000 (12:34 -0700)
committerMatt Turner <mattst88@gentoo.org>
Sat, 16 Sep 2017 19:34:10 +0000 (12:34 -0700)
media-libs/libepoxy/libepoxy-9999.ebuild

index 5b6d700758f33418da667e5bff0ac6f4f06ad2ed..633cc77c96a295ed70c6708ab45b8f79594cd430 100644 (file)
@@ -11,7 +11,7 @@ fi
 
 PYTHON_COMPAT=( python{2_7,3_4,3_5} )
 PYTHON_REQ_USE='xml(+)'
-inherit autotools ${GIT_ECLASS} multilib-minimal python-any-r1
+inherit ${GIT_ECLASS} meson multilib-minimal python-any-r1
 
 DESCRIPTION="Epoxy is a library for handling OpenGL function pointer management for you"
 HOMEPAGE="https://github.com/anholt/libepoxy"
@@ -37,13 +37,21 @@ src_unpack() {
        [[ $PV = 9999* ]] && git-r3_src_unpack
 }
 
-src_prepare() {
-       default
-       eautoreconf
+multilib_src_configure() {
+       local emesonargs=(
+               -Denable-glx=$(usex X)
+       )
+       meson_src_configure
 }
 
-multilib_src_configure() {
-       ECONF_SOURCE=${S} \
-       econf \
-               $(use_enable X glx)
+multilib_src_compile() {
+       meson_src_compile
+}
+
+multilib_src_test() {
+       meson_src_test
+}
+
+multilib_src_install() {
+       meson_src_install
 }