commit: d386f9d533a37699f55f9e67d951fb3ef56a859e
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 16 19:34:10 2017 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sat Sep 16 19:34:10 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d386f9d5
media-libs/libepoxy: Switch to using the meson build system
media-libs/libepoxy/libepoxy-9999.ebuild | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/media-libs/libepoxy/libepoxy-9999.ebuild
b/media-libs/libepoxy/libepoxy-9999.ebuild
index 5b6d700758f..633cc77c96a 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
}