commit:     cd7d42215c7479ac31ac2d9d55424c624fdb370d
Author:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Mon Sep 21 19:27:14 2020 +0000
Commit:     Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Tue Sep 22 14:21:42 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=cd7d4221

sci-visualization/forge: version bump

Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>

 sci-visualization/forge/forge-1.0.5.ebuild | 54 ++++++++++++++++++++++++++++
 sci-visualization/forge/forge-9999.ebuild  | 57 +++++++++++++++++-------------
 sci-visualization/forge/metadata.xml       | 16 +++++----
 3 files changed, 97 insertions(+), 30 deletions(-)

diff --git a/sci-visualization/forge/forge-1.0.5.ebuild 
b/sci-visualization/forge/forge-1.0.5.ebuild
new file mode 100644
index 000000000..64a14e696
--- /dev/null
+++ b/sci-visualization/forge/forge-1.0.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake multilib
+
+DESCRIPTION="High Performance Visualizations for ArrayFire"
+HOMEPAGE="http://www.arrayfire.com/";
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/arrayfire/forge";
+else
+       SRC_URI="https://github.com/arrayfire/forge/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc examples"
+
+RDEPEND="
+       dev-libs/boost
+       media-libs/glfw
+       media-libs/fontconfig:1.0
+       media-libs/freeimage
+       media-libs/freetype:2
+       media-libs/glbinding
+       media-libs/glm
+       virtual/opengl
+       "
+DEPEND="${RDEPEND}"
+BDEPEND="
+       doc? (
+               app-doc/doxygen
+               dev-python/breathe
+               dev-python/recommonmark
+               dev-python/sphinx
+       )
+"
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_SHARED_LIBS=ON
+               -DFG_USE_STATIC_CPPFLAGS=OFF
+               -DFG_BUILD_DOCS=$(usex doc ON OFF)
+               -DFG_BUILD_EXAMPLES=$(usex examples ON OFF)
+               -DFG_WITH_FREEIMAGE=ON
+               -DFG_USE_STATIC_FREEIMAGE=OFF
+               -DFG_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/Forge
+       )
+       cmake_src_configure
+}

diff --git a/sci-visualization/forge/forge-9999.ebuild 
b/sci-visualization/forge/forge-9999.ebuild
index d34b350ee..64a14e696 100644
--- a/sci-visualization/forge/forge-9999.ebuild
+++ b/sci-visualization/forge/forge-9999.ebuild
@@ -1,45 +1,54 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 2019-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit cmake-utils multilib git-r3
+inherit cmake multilib
 
 DESCRIPTION="High Performance Visualizations for ArrayFire"
 HOMEPAGE="http://www.arrayfire.com/";
-EGIT_REPO_URI="https://github.com/arrayfire/${PN}.git 
git://github.com/arrayfire/${PN}.git"
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/arrayfire/forge";
+else
+       SRC_URI="https://github.com/arrayfire/forge/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS=""
-IUSE="examples"
+IUSE="doc examples"
 
 RDEPEND="
-       media-libs/glew:=
-       >=media-libs/glfw-3.1.1
-       media-libs/freetype:2
+       dev-libs/boost
+       media-libs/glfw
        media-libs/fontconfig:1.0
+       media-libs/freeimage
+       media-libs/freetype:2
        media-libs/glbinding
-       >=media-libs/glm-0.9.7.1
+       media-libs/glm
        virtual/opengl
        "
 DEPEND="${RDEPEND}"
-
-pkg_pretend() {
-       if [[ ${MERGE_TYPE} != binary ]]; then
-               if [[ $(gcc-major-version) -lt 4 ]] || ( [[ 
$(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then
-                       die "Compilation with gcc older than 4.7 is not 
supported."
-               fi
-       fi
-}
+BDEPEND="
+       doc? (
+               app-doc/doxygen
+               dev-python/breathe
+               dev-python/recommonmark
+               dev-python/sphinx
+       )
+"
 
 src_configure() {
        local mycmakeargs=(
-          -DBUILD_EXAMPLES="$(examples EXAMPLES)"
-          -DUSE_SYSTEM_GLBINDING=ON
-          -DUSE_SYSTEM_GLM=ON
-          -DUSE_SYSTEM_FREETYPE=ON
-          -DFG_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/Forge
+               -DBUILD_SHARED_LIBS=ON
+               -DFG_USE_STATIC_CPPFLAGS=OFF
+               -DFG_BUILD_DOCS=$(usex doc ON OFF)
+               -DFG_BUILD_EXAMPLES=$(usex examples ON OFF)
+               -DFG_WITH_FREEIMAGE=ON
+               -DFG_USE_STATIC_FREEIMAGE=OFF
+               -DFG_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/Forge
        )
-       cmake-utils_src_configure
+       cmake_src_configure
 }

diff --git a/sci-visualization/forge/metadata.xml 
b/sci-visualization/forge/metadata.xml
index 3e7207c7f..610245a28 100644
--- a/sci-visualization/forge/metadata.xml
+++ b/sci-visualization/forge/metadata.xml
@@ -5,17 +5,21 @@
                <email>[email protected]</email>
                <name>Marius Brehler</name>
        </maintainer>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Aisha Tammy</name>
+       </maintainer>
        <maintainer type="project">
                <email>[email protected]</email>
                <name>Gentoo Science Project</name>
        </maintainer>
        <longdescription>
-A prototype of the OpenGL interop library that can be used with
-ArrayFire. The goal of Forge is to provide high performance OpenGL
-visualizations for C/C++ applications that use CUDA/OpenCL. Forge
-uses OpenGL &gt;=3.3 forward compatible contexts, so please make sure
-you have capable hardware before trying it out.
-</longdescription>
+               A prototype of the OpenGL interop library that can be used with
+               ArrayFire. The goal of Forge is to provide high performance 
OpenGL
+               visualizations for C/C++ applications that use CUDA/OpenCL. 
Forge
+               uses OpenGL &gt;=3.3 forward compatible contexts, so please 
make sure
+               you have capable hardware before trying it out.
+       </longdescription>
        <upstream>
                <remote-id type="github">arrayfire/forge</remote-id>
        </upstream>

Reply via email to