From d8a40757b028653a108aca0ea2cf6fba39d5d8be Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 25 Aug 2015 15:04:53 -0700 Subject: [PATCH] media-libs/waffle: Version bump to 1.5.2. Package-Manager: portage-2.2.20.1 --- media-libs/waffle/Manifest | 1 + media-libs/waffle/waffle-1.5.2.ebuild | 64 +++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 media-libs/waffle/waffle-1.5.2.ebuild diff --git a/media-libs/waffle/Manifest b/media-libs/waffle/Manifest index b68028bc0575..a361032e9f95 100644 --- a/media-libs/waffle/Manifest +++ b/media-libs/waffle/Manifest @@ -1 +1,2 @@ DIST waffle-1.5.1.tar.xz 178136 SHA256 cbab0e926515064e818bf089a5af04be33307e5f40d07659fb40d59b2bfe20aa SHA512 0bcd9b76a9806f9b23f27870936f9aed7fe9a21a2c253c8f16b4303129bf7f95dc8f02207b89533b7addcfcdc12b6b05ce9c51a6f1f237d4cf9ac1d81916f831 WHIRLPOOL 3803bd21296ea1e0da3bb39eeb174ad713e005c444b24d792c61e85b28eb06fd863a1412800ad80dec2ff66b6af4b049b8fe9e8a6d82221771de3ad89a51f522 +DIST waffle-1.5.2.tar.xz 179284 SHA256 d2c096cf654bf0061323a4b9231a1ef5b749a1e5c7c5bfe067e964219c2a851c SHA512 04f90f70421c88418d1d98175b552de9e036ea36b6c870a6c968c7fcc2d4cb2fa4ce08b0adcdd50f4853a7503558eae7a05ef75b292cf85d3c9796e7b342ca62 WHIRLPOOL 1d7626a717fa5100b83391dcff79bf92885ffcca0945a1e1b0a3a797d5c6dc5536a681e40f1c61c3275c1694b3f4a5292d0eabb1a64ec75383a1de6c5d5c18e9 diff --git a/media-libs/waffle/waffle-1.5.2.ebuild b/media-libs/waffle/waffle-1.5.2.ebuild new file mode 100644 index 000000000000..4265a5e78108 --- /dev/null +++ b/media-libs/waffle/waffle-1.5.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +EGIT_REPO_URI="git://github.com/waffle-gl/waffle.git" + +if [[ ${PV} = 9999* ]]; then + GIT_ECLASS="git-2" +fi + +inherit cmake-utils cmake-multilib ${GIT_ECLASS} + +DESCRIPTION="Library that allows selection of GL API and of window system at runtime" +HOMEPAGE="http://people.freedesktop.org/~chadversary/waffle/" + +if [[ $PV = 9999* ]]; then + KEYWORDS="" +else + SRC_URI="http://people.freedesktop.org/~chadversary/waffle/files/release/${P}/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="BSD-2" +SLOT="0" +IUSE="doc egl gbm test wayland" + +RDEPEND=" + >=media-libs/mesa-9.1.6[egl?,gbm?,${MULTILIB_USEDEP}] + >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] + wayland? ( >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] ) + gbm? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP}] ) + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND} + >=x11-proto/xcb-proto-1.8-r3[${MULTILIB_USEDEP}] + doc? ( + dev-libs/libxslt + app-text/docbook-xml-dtd:4.2 + )" + +src_unpack() { + default + [[ $PV = 9999* ]] && git-2_src_unpack +} + +src_configure() { + local mycmakeargs=( + -Dwaffle_has_glx=ON + -Dwaffle_build_examples=OFF + $(cmake-utils_use doc waffle_build_manpages) + $(cmake-utils_use egl waffle_has_x11_egl) + $(cmake-utils_use gbm waffle_has_gbm) + $(cmake-utils_use test waffle_build_tests) + $(cmake-utils_use wayland waffle_has_wayland) + ) + + cmake-multilib_src_configure +} + +src_test() { + emake -C "${CMAKE_BUILD_DIR}" check +} -- 2.26.2