summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2019-05-01 17:29:59 +0100
committerMarek Szuba <marecki@gentoo.org>2019-05-01 17:51:39 +0100
commit9e2c3797d80581285268fc62844d3edf21578a91 (patch)
treeb30ebda8e44e55ccb833d3a4ab3b677080b4391a /media-libs/gmmlib
parentmedia-libs/gmmlib: add self as co-maintainer (diff)
downloadgentoo-9e2c3797d80581285268fc62844d3edf21578a91.tar.gz
gentoo-9e2c3797d80581285268fc62844d3edf21578a91.tar.bz2
gentoo-9e2c3797d80581285268fc62844d3edf21578a91.zip
media-libs/gmmlib: bump to 19.1.2 and enable multilib support
Closes: https://bugs.gentoo.org/684864 Signed-off-by: Marek Szuba <marecki@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'media-libs/gmmlib')
-rw-r--r--media-libs/gmmlib/Manifest1
-rw-r--r--media-libs/gmmlib/files/gmmlib-19.1.2_so_patch_version.patch11
-rw-r--r--media-libs/gmmlib/gmmlib-19.1.2.ebuild45
3 files changed, 57 insertions, 0 deletions
diff --git a/media-libs/gmmlib/Manifest b/media-libs/gmmlib/Manifest
index 8e0797e73949..4fe96bebb9d9 100644
--- a/media-libs/gmmlib/Manifest
+++ b/media-libs/gmmlib/Manifest
@@ -1,2 +1,3 @@
DIST intel-gmmlib-18.3.0.tar.gz 620491 BLAKE2B 555a733b42b8e4c40170db9ecabc25bb04779c3aba38b9141f021df1dbe83d74e385a3437d4a87577d9e5ff4df21ce618393909cd98fce4a59ec19aeff4eb44d SHA512 358598873556822be6748a282cd1447ca3e0bcaeb11c2bb8862414bac2ab8e57deee9581fa14bfe22d33d712e567db936332b7fe715dae9816b31121af934dec
DIST intel-gmmlib-18.4.1.tar.gz 621793 BLAKE2B 41d6f93ec68cf29b8bc2d01c103c69dd4f732ce1aaf72cc959f993af73df9b355f0c4c7c97af4102cc1996e7732597dac4fe0abaf359806e2accbee1bf852d90 SHA512 8dcb5892cfc98822e8173d0a71dfb4883e1ef838de8c936a9b36fb05d61137b7c7d7edf941d3ebd532a1126d8d8b978b95843afb3514ba8cbf3eec54f05c8b8b
+DIST intel-gmmlib-19.1.2.tar.gz 632661 BLAKE2B 4a9995a9e4c8b5c8e081d757193212180fbae3a88040da24be4225149c4c0924b56d5969e125a0c21a5af7b2b3d249277d7e27cb3ce13135c69bb977a976879d SHA512 fcc0beedfc3716b6204627f7daa5e0a5aec720b2a29ab2f8262b613a11d31bfe14dc8476513515d8470cf7d66f58d109ed4d5cf203e041228f53a64cb4a6c243
diff --git a/media-libs/gmmlib/files/gmmlib-19.1.2_so_patch_version.patch b/media-libs/gmmlib/files/gmmlib-19.1.2_so_patch_version.patch
new file mode 100644
index 000000000000..1fd45de157f2
--- /dev/null
+++ b/media-libs/gmmlib/files/gmmlib-19.1.2_so_patch_version.patch
@@ -0,0 +1,11 @@
+--- a/Source/GmmLib/CMakeLists.txt
++++ b/Source/GmmLib/CMakeLists.txt
+@@ -40,7 +40,7 @@
+ endif()
+
+ if(NOT DEFINED GMMLIB_API_PATCH_VERSION)
+- set(GMMLIB_API_PATCH_VERSION PATCH_VERSION)
++ set(GMMLIB_API_PATCH_VERSION "${PATCH_VERSION}")
+ endif()
+
+ message(STATUS "API version: ${GMMLIB_API_MAJOR_VERSION}.${GMMLIB_API_MINOR_VERSION}.${GMMLIB_API_PATCH_VERSION}")
diff --git a/media-libs/gmmlib/gmmlib-19.1.2.ebuild b/media-libs/gmmlib/gmmlib-19.1.2.ebuild
new file mode 100644
index 000000000000..dd16c51e2ef0
--- /dev/null
+++ b/media-libs/gmmlib/gmmlib-19.1.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+if [[ ${PV} == *9999 ]] ; then
+ : ${EGIT_REPO_URI:="https://github.com/intel/gmmlib"}
+ if [[ ${PV%9999} != "" ]] ; then
+ : ${EGIT_BRANCH:="release/${PV%.9999}"}
+ fi
+ inherit git-r3
+fi
+
+DESCRIPTION="Intel Graphics Memory Management Library"
+HOMEPAGE="https://github.com/intel/gmmlib"
+if [[ ${PV} == *9999 ]] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/intel/gmmlib/archive/intel-${P}.tar.gz"
+ S="${WORKDIR}/${PN}-intel-${P}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-19.1.2_so_patch_version.patch
+)
+
+multilib_src_configure() {
+# once upstream makes this optional
+# local mycmakeargs=(
+# -DMEDIA_RUN_TEST_SUITE=OFF
+# )
+
+ cmake-utils_src_configure
+}