From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7B11D1395E2 for ; Wed, 23 Nov 2016 12:27:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97627E08AF; Wed, 23 Nov 2016 12:27:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6C0DDE08AF for ; Wed, 23 Nov 2016 12:27:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C4B6D34125C for ; Wed, 23 Nov 2016 12:27:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EF1D3498 for ; Wed, 23 Nov 2016 12:27:12 +0000 (UTC) From: "Marius Brehler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marius Brehler" Message-ID: <1479904003.b8c8ce2ed9b9bd422a697ed1c897d8fc80c3e637.marbre@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: media-libs/glbinding/, media-libs/glbinding/files/ X-VCS-Repository: proj/sci X-VCS-Files: media-libs/glbinding/files/glbinding-2.1.1-CMakeLists.patch media-libs/glbinding/glbinding-2.1.1.ebuild media-libs/glbinding/metadata.xml X-VCS-Directories: media-libs/glbinding/files/ media-libs/glbinding/ X-VCS-Committer: marbre X-VCS-Committer-Name: Marius Brehler X-VCS-Revision: b8c8ce2ed9b9bd422a697ed1c897d8fc80c3e637 X-VCS-Branch: master Date: Wed, 23 Nov 2016 12:27:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b2707741-506b-47fc-9e8b-9e5f56744f8f X-Archives-Hash: 4092941f1c6af3ea4a3b32ba0a2f6ea5 commit: b8c8ce2ed9b9bd422a697ed1c897d8fc80c3e637 Author: Marius Brehler linux sungazer de> AuthorDate: Wed Nov 23 12:26:43 2016 +0000 Commit: Marius Brehler linux sungazer 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/ +- set(INSTALL_CMAKE "share/${project}/cmake") # /usr/[local]/share//cmake ++ set(INSTALL_CMAKE "lib/cmake") # /usr/[local]/lib/cmake + set(INSTALL_EXAMPLES "share/${project}") # /usr/[local]/share/ + set(INSTALL_DATA "share/${project}") # /usr/[local]/share/ + 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 @@ + + + + + marbre@linux.sungazer.de + Marius Brehler + + + sci@gentoo.org + Gentoo Science Project + + + 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. + + + cginternals/glbinding + +