From: "Marius Brehler" <marbre@linux.sungazer.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: media-libs/glbinding/, media-libs/glbinding/files/
Date: Wed, 23 Nov 2016 12:27:12 +0000 (UTC) [thread overview]
Message-ID: <1479904003.b8c8ce2ed9b9bd422a697ed1c897d8fc80c3e637.marbre@gentoo> (raw)
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>marbre@linux.sungazer.de</email>
+ <name>Marius Brehler</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</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>
next reply other threads:[~2016-11-23 12:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 12:27 Marius Brehler [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-09-22 14:22 [gentoo-commits] proj/sci:master commit in: media-libs/glbinding/, media-libs/glbinding/files/ Aisha Tammy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1479904003.b8c8ce2ed9b9bd422a697ed1c897d8fc80c3e637.marbre@gentoo \
--to=marbre@linux.sungazer.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox