From: Matt Turner Date: Sat, 16 Sep 2017 19:34:10 +0000 (-0700) Subject: media-libs/libepoxy: Switch to using the meson build system X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d386f9d533a37699f55f9e67d951fb3ef56a859e;p=gentoo.git media-libs/libepoxy: Switch to using the meson build system --- diff --git a/media-libs/libepoxy/libepoxy-9999.ebuild b/media-libs/libepoxy/libepoxy-9999.ebuild index 5b6d700758f3..633cc77c96a2 100644 --- a/media-libs/libepoxy/libepoxy-9999.ebuild +++ b/media-libs/libepoxy/libepoxy-9999.ebuild @@ -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 }