summaryrefslogtreecommitdiffstats
path: root/graphics-libs
diff options
context:
space:
mode:
authorPavel Vinogradov2022-11-23 12:05:39 -0500
committerPavel Vinogradov2022-11-23 12:05:39 -0500
commitb3ebde40e895ff71bc5f3dc7ce924bc4326c9c10 (patch)
tree4ce7b71af8771fbfe6b74b54aa96e792309e7a46 /graphics-libs
parentf86aede4639c8fca6c425eba28be09830876e6d6 (diff)
graphics-libs/libglvnd: added scm branch
Diffstat (limited to 'graphics-libs')
-rwxr-xr-xgraphics-libs/libglvnd/DEPENDS4
-rwxr-xr-xgraphics-libs/libglvnd/DETAILS10
-rw-r--r--graphics-libs/libglvnd/HISTORY3
-rwxr-xr-xgraphics-libs/libglvnd/PREPARE2
4 files changed, 19 insertions, 0 deletions
diff --git a/graphics-libs/libglvnd/DEPENDS b/graphics-libs/libglvnd/DEPENDS
index ee36505e20..060fa15419 100755
--- a/graphics-libs/libglvnd/DEPENDS
+++ b/graphics-libs/libglvnd/DEPENDS
@@ -1,5 +1,9 @@
. "$GRIMOIRE"/MESON_DEPENDS &&
+if [[ "${LIBGLVND_BRANCH}" == "scm" ]]; then
+ depends git
+fi &&
+
depends python3 &&
depends gcc &&
depends libxext &&
diff --git a/graphics-libs/libglvnd/DETAILS b/graphics-libs/libglvnd/DETAILS
index 788cb9e627..449b2e37de 100755
--- a/graphics-libs/libglvnd/DETAILS
+++ b/graphics-libs/libglvnd/DETAILS
@@ -1,10 +1,20 @@
+source "${GRIMOIRE}/FUNCTIONS"
source $GRIMOIRE/MESON_FUNCTIONS
+if [[ "${LIBGLVND_BRANCH}" == "scm" ]]; then
+ VERSION=$(get_scm_version)
+ SOURCE="${SPELL}-scm.tar.xz"
+ SOURCE_URL[0]="git_http://github.com/NVIDIA/${SPELL}.git:${SPELL}-scm"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
+ SOURCE_IGNORE="volatile"
+ FORCE_DOWNLOAD="on"
+else
SPELL=libglvnd
VERSION=1.6.0
SOURCE_HASH=sha512:fa96077a4b0bc9ca01924f84f3dc534c316ab8d1b55fc1547086a5d0527acfc1f972282f75c9df8fa42584c3feffda2e535f4950fcda0cc5f1cc40bc26e854c2
SOURCE="${SPELL}-${VERSION}.tar.gz"
SOURCE_URL[0]=https://github.com/NVIDIA/${SPELL}/archive/v${VERSION}.tar.gz
SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+fi
WEB_SITE="https://github.com/NVIDIA/libglvnd"
LICENSE[0]=BSD-like
ENTERED=20180402
diff --git a/graphics-libs/libglvnd/HISTORY b/graphics-libs/libglvnd/HISTORY
index 6e0d678328..7087ade767 100644
--- a/graphics-libs/libglvnd/HISTORY
+++ b/graphics-libs/libglvnd/HISTORY
@@ -1,3 +1,6 @@
+2022-11-23 Pavel Vinogradov <public@sourcemage.org>
+ * DEPENDS, DETAILS, PREPARE: added scm branch
+
2022-11-22 Pavel Vinogradov <public@sourcemage.org>
* DETAILS: version 1.6.0
diff --git a/graphics-libs/libglvnd/PREPARE b/graphics-libs/libglvnd/PREPARE
new file mode 100755
index 0000000000..e38d86f7e9
--- /dev/null
+++ b/graphics-libs/libglvnd/PREPARE
@@ -0,0 +1,2 @@
+. "${GRIMOIRE}/FUNCTIONS" &&
+prepare_select_branch stable scm