commit: b8c8ce2ed9b9bd422a697ed1c897d8fc80c3e637
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Nov 23 12:26:43 2016 +0000
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Wed Nov 23 12:26:43 2016 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b8c8ce2e
media-libs/glbinding: New packages, ebuild written by me
Required by up-to-date arrayfire/forge versions
Package-Manager: portage-2.3.0
.../files/glbinding-2.1.1-CMakeLists.patch | 29 +++++++++++++++++
media-libs/glbinding/glbinding-2.1.1.ebuild | 37 ++++++++++++++++++++++
media-libs/glbinding/metadata.xml | 27 ++++++++++++++++
3 files changed, 93 insertions(+)
diff --git a/media-libs/glbinding/files/glbinding-2.1.1-CMakeLists.patch
b/media-libs/glbinding/files/glbinding-2.1.1-CMakeLists.patch
new file mode 100644
index 0000000..080cb7f
--- /dev/null
+++ b/media-libs/glbinding/files/glbinding-2.1.1-CMakeLists.patch
@@ -0,0 +1,29 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -103,7 +103,7 @@ endif()
+ if(UNIX AND SYSTEM_DIR_INSTALL)
+ # Install into the system (/usr/bin or /usr/local/bin)
+ set(INSTALL_ROOT "share/${project}") #
/usr/[local]/share/<project>
+- set(INSTALL_CMAKE "share/${project}/cmake") #
/usr/[local]/share/<project>/cmake
++ set(INSTALL_CMAKE "lib/cmake") # /usr/[local]/lib/cmake
+ set(INSTALL_EXAMPLES "share/${project}") #
/usr/[local]/share/<project>
+ set(INSTALL_DATA "share/${project}") #
/usr/[local]/share/<project>
+ set(INSTALL_BIN "bin") # /usr/[local]/bin
+@@ -159,16 +159,8 @@ add_subdirectory(deploy)
+ # Deployment (global project files)
+ #
+
+-# Install version file
+-install(FILES "${PROJECT_BINARY_DIR}/VERSION" DESTINATION ${INSTALL_ROOT}
COMPONENT runtime)
+-
+ # Install cmake find script for the project
+-install(FILES ${META_PROJECT_NAME}-config.cmake DESTINATION ${INSTALL_ROOT}
COMPONENT dev)
+-
+-# Install the project meta files
+-install(FILES AUTHORS DESTINATION ${INSTALL_ROOT} COMPONENT runtime)
+-install(FILES LICENSE DESTINATION ${INSTALL_ROOT} COMPONENT runtime)
+-install(FILES README.md DESTINATION ${INSTALL_ROOT} COMPONENT runtime)
++install(FILES ${META_PROJECT_NAME}-config.cmake DESTINATION
${INSTALL_LIB}/cmake/${project} COMPONENT dev)
+
+ # Install runtime data
+ install(DIRECTORY ${PROJECT_SOURCE_DIR}/data DESTINATION ${INSTALL_DATA}
COMPONENT examples_data)
diff --git a/media-libs/glbinding/glbinding-2.1.1.ebuild
b/media-libs/glbinding/glbinding-2.1.1.ebuild
new file mode 100644
index 0000000..4efac0c
--- /dev/null
+++ b/media-libs/glbinding/glbinding-2.1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Cross-platform C++ binding for the OpenGL API"
+HOMEPAGE="https://github.com/cginternals/glbinding"
+SRC_URI="https://github.com/cginternals/${PN}/archive/v${PV}.tar.gz ->
${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ >=media-libs/glfw-3.1.1
+ "
+DEPEND="${RDEPEND}
+ >=dev-util/cmake-3.2.2
+ "
+
+PATCHES=(
+ "${FILESDIR}/${P}"-CMakeLists.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DOPTION_BUILD_TESTS=OFF
+ -DOPTION_BUILD_GPU_TESTS=OFF
+ -DOPTION_BUILD_DOCS=OFF
+ -DOPTION_BUILD_EXAMPLES=OFF
+ )
+ cmake-utils_src_configure
+}
diff --git a/media-libs/glbinding/metadata.xml
b/media-libs/glbinding/metadata.xml
new file mode 100644
index 0000000..4d6a1c0
--- /dev/null
+++ b/media-libs/glbinding/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Marius Brehler</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>[email protected]</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription>
+ glbinding leverages modern C++11 features like enum classes,
+ lambdas, and variadic templates, instead of relying on macros; all
+ OpenGL symbols are real functions and variables. It provides
+ type-safe parameters, per feature API header, lazy function
+ resolution, multi-context and multi-thread support, global and local
+ function callbacks, meta information about the generated OpenGL
+ binding and the OpenGL runtime, as well as tools and examples for
+ quick-starting your projects. Based on the OpenGL API specification
+ (gl.xml) glbinding is generated using python scripts and templates
+ that can be easily adapted to fit custom needs.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">cginternals/glbinding</remote-id>
+ </upstream>
+</pkgmetadata>