From 0de43f54daa0605e50ad02d18dacf930f21d1636 Mon Sep 17 00:00:00 2001 From: Pavel Vinogradov Date: Tue, 22 Jan 2019 17:04:05 -0500 Subject: gnome3-libs/graphene: new spell, a thin layer of types for graphic libraries --- gnome3-libs/graphene/BUILD | 3 +++ gnome3-libs/graphene/CONFIGURE | 1 + gnome3-libs/graphene/DEPENDS | 26 ++++++++++++++++++++++++++ gnome3-libs/graphene/DETAILS | 35 +++++++++++++++++++++++++++++++++++ gnome3-libs/graphene/HISTORY | 3 +++ 5 files changed, 68 insertions(+) create mode 100755 gnome3-libs/graphene/BUILD create mode 100755 gnome3-libs/graphene/CONFIGURE create mode 100755 gnome3-libs/graphene/DEPENDS create mode 100755 gnome3-libs/graphene/DETAILS create mode 100644 gnome3-libs/graphene/HISTORY (limited to 'gnome3-libs') diff --git a/gnome3-libs/graphene/BUILD b/gnome3-libs/graphene/BUILD new file mode 100755 index 0000000000..da6d5401e5 --- /dev/null +++ b/gnome3-libs/graphene/BUILD @@ -0,0 +1,3 @@ +OPTS+=" ${GRAPHENE_OPTS}" && + +default_build diff --git a/gnome3-libs/graphene/CONFIGURE b/gnome3-libs/graphene/CONFIGURE new file mode 100755 index 0000000000..9f48d22f39 --- /dev/null +++ b/gnome3-libs/graphene/CONFIGURE @@ -0,0 +1 @@ +. "${GRIMOIRE}/MESON_CONFIGURE" diff --git a/gnome3-libs/graphene/DEPENDS b/gnome3-libs/graphene/DEPENDS new file mode 100755 index 0000000000..2a15743fff --- /dev/null +++ b/gnome3-libs/graphene/DEPENDS @@ -0,0 +1,26 @@ +depends meson && +depends python3 && +depends ninja-build-system && + +optional_depends glib2 \ + "gobject_types=true" \ + "gobject_types=false" \ + "to enable Gobject types" && + +if is_depends_enabled "${SPELL}" "glib2"; then + config_query_option GRAPHENE_OPTS "Build tests?" "n" \ + "tests=true" "tests=false" && + + config_query_option GRAPHENE_OPTS "Build beenchmarks?" "n" \ + "benchmarks=true" "benchmarkss=false" +fi && + +optional_depends gobject-introspection \ + "introspection=true" \ + "introspection=false" \ + "to enable introspection support" && + +optional_depends gtk-doc \ + "gtk_doc=true" \ + "gtk_doc=false" \ + "Build documentation with gtk-doc" diff --git a/gnome3-libs/graphene/DETAILS b/gnome3-libs/graphene/DETAILS new file mode 100755 index 0000000000..4e1c0a1af4 --- /dev/null +++ b/gnome3-libs/graphene/DETAILS @@ -0,0 +1,35 @@ +. "${GRIMOIRE}/MESON_FUNCTIONS" + SPELL="graphene" + VERSION="1.8.2" + SOURCE_HASH="sha256:b3fcf20996e57b1f4df3941caac10f143bb29890a42f7a65407cd19271fc89f7:UPSTREAM_HASH" + SOURCE="${SPELL}-${VERSION}.tar.xz" +SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}" + SOURCE_URL[0]="${GNOME_URL}/sources/${SPELL}/${VERSION%.*}/${SOURCE}" + SOURCE_URL[1]="https://github.com/ebassi/${SPELL}/releases/download/${VERSION}/${SOURCE}" + LICENSE[0]="MIT" + WEB_SITE="https://ebassi.github.io/graphene/" + ENTERED="20190122" + SHORT="a thin layer of types for graphic libraries" +cat << EOF +Graphene provides common types needed to handle 3D transformations: + * 2D points + * 3D points + * triangles + * rectangles + * quads + * quaternions + * euler angles + * vectors (2, 3, or 4-sized) + * matrices + * planes + * 3D boxes + * spheres + * frustums + +Graphene also provides its low-level SIMD vector and matrix types, which are +used to implement the API above. + +All types can be placed on the stack, but provide allocation/free functions for +working on the heap as well. The contents of all structure types, unless noted +otherwise, should be considered private, and should never be accessed directly. +EOF diff --git a/gnome3-libs/graphene/HISTORY b/gnome3-libs/graphene/HISTORY new file mode 100644 index 0000000000..182bf78620 --- /dev/null +++ b/gnome3-libs/graphene/HISTORY @@ -0,0 +1,3 @@ +2019-01-22 Pavel Vinogradov + * BUILD, CONFIGURE, DEPENDS, DETAILS: created spell + -- cgit v1.2.3