Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (80da539c1719b2e8b5055a402c5c358a25118c59)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (80da539c1719b2e8b5055a402c5c358a25118c59)
  • Date: Sun, 19 Nov 2023 00:06:31 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

ChangeLog | 1 +
wm-addons/louvre/BUILD | 37 +++++++++++++++++++++++++++++++++++++
wm-addons/louvre/CONFIGURE | 4 ++++
wm-addons/louvre/DEPENDS | 23 +++++++++++++++++++++++
wm-addons/louvre/DETAILS | 27 +++++++++++++++++++++++++++
wm-addons/louvre/HISTORY | 4 ++++
wm-addons/louvre/INSTALL | 16 ++++++++++++++++
wm-addons/louvre/PREPARE | 2 ++
8 files changed, 114 insertions(+)

New commits:
commit 80da539c1719b2e8b5055a402c5c358a25118c59
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

wm-addons/louvre: new spell, C++ library for building Wayland
compositorsChangeLog

diff --git a/ChangeLog b/ChangeLog
index 7281fcd..81be6c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2023-11-18 Pavel Vinogradov <public AT sorcemage.org>
* utils/rdfind: new spell, find duplicate files utility
+ * wm-addons/louvre: new spell, C++ library for building Wayland
compositors

2023-03-30 Ismael Luceno <ismael AT sourcemage.org>
* devel/llvm16: new spell, LLVM version 16
diff --git a/wm-addons/louvre/BUILD b/wm-addons/louvre/BUILD
new file mode 100755
index 0000000..a89e51a
--- /dev/null
+++ b/wm-addons/louvre/BUILD
@@ -0,0 +1,37 @@
+OPTS="${LOUVRE_OPTS} ${OPTS}" &&
+
+local PREFIX=${PREFIX:-/usr} &&
+local MESON_BUILD_TYPE="${MESON_BUILD_TYPE:-release}" &&
+
+local MESON_BUILD &&
+local MESON_OPTS &&
+local BUILDER &&
+local BUILDER_OPTS="-j ${MAKE_NJOBS} -C builddir/" &&
+
+if [[ $(get_spell_provider ${SPELL} MESON-BUILD) == muon ]]; then
+ MESON_BUILD="muon setup" &&
+
+ OPTS="prefix=${INSTALL_ROOT}${PREFIX} buildtype=${MESON_BUILD_TYPE}
default_library=shared libdir=lib ${OPTS}"
+else
+ MESON_BUILD="meson setup"
+ MESON_OPTS="--prefix ${INSTALL_ROOT}${PREFIX} --buildtype
${MESON_BUILD_TYPE} --default-library shared --libdir lib
+"
+fi &&
+
+if ! is_depends_enabled ${SPELL} $(get_spell_provider ${SPELL} NINJA-BUILD);
then
+ BUILDER="muon samu"
+elif [[ $(get_spell_provider ${SPELL} NINJA-BUILD) == samurai ]]; then
+ BUILDER="samu"
+else
+ BUILDER="ninja"
+fi &&
+
+for MO in $OPTS; do
+ MESON_OPTS+=" -D${MO}"
+done &&
+
+cd "${SOURCE_DIRECTORY}/src" &&
+
+${MESON_BUILD} ${MESON_OPTS} builddir/ &&
+
+${BUILDER} ${BUILDER_OPTS}
diff --git a/wm-addons/louvre/CONFIGURE b/wm-addons/louvre/CONFIGURE
new file mode 100755
index 0000000..9b7256d
--- /dev/null
+++ b/wm-addons/louvre/CONFIGURE
@@ -0,0 +1,4 @@
+. "${GRIMOIRE}/MESON_CONFIGURE" &&
+
+config_query_option LOUVRE_OPTS "Build examples?" n \
+ "build_examples=true" "build_examples=false"
diff --git a/wm-addons/louvre/DEPENDS b/wm-addons/louvre/DEPENDS
new file mode 100755
index 0000000..70f1b83
--- /dev/null
+++ b/wm-addons/louvre/DEPENDS
@@ -0,0 +1,23 @@
+. "${GRIMOIRE}/MESON_DEPENDS" &&
+
+if [[ "${LOUVRE_BRANCH}" == "scm" ]]; then
+ depends git
+fi &&
+
+depends DEVICE-MANAGER &&
+depends freeimage &&
+depends libdrm &&
+depends libinput &&
+depends libxkbcommon &&
+depends libxcursor &&
+depends OPENGL &&
+depends pixman &&
+depends seat &&
+depends srm &&
+depends wayland &&
+
+if list_find "${LOUVRE_OPTS}" "build_examples=true"; then
+ depends fontconfig &&
+ depends freetype2 &&
+ depends icu
+fi
diff --git a/wm-addons/louvre/DETAILS b/wm-addons/louvre/DETAILS
new file mode 100755
index 0000000..9528693
--- /dev/null
+++ b/wm-addons/louvre/DETAILS
@@ -0,0 +1,27 @@
+. "${GRIMOIRE}/FUNCTIONS"
+. "${GRIMOIRE}/MESON_FUNCTIONS"
+ SPELL=louvre
+if [[ "${LOUVRE_BRANCH}" == "scm" ]]; then
+ VERSION="$(get_scm_version)"
+ SOURCE="${SPELL}-scm.tar.xz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-scm"
+
SOURCE_URL[0]="git_http://github.com/CuarzoSoftware/Louvre:${SPELL}-scm:main";
+ SOURCE_IGNORE="volatile"
+ FORCE_DOWNLOAD="on"
+else
+ VERSION="1.0.0-1"
+
SOURCE_HASH="sha512:3a149e5ae4718aedbbddfc66b5fdb1f8039c6f27806d50827d05d582b6433b2425abafe6c9b10d9dfe83730be114c5f2a3e790d17457f87cdae1d07dbc5e1eb7"
+ SOURCE="Louvre-${VERSION}.tar.gz"
+
SOURCE_URL[0]="https://github.com/CuarzoSoftware/Louvre/archive/refs/tags/v${VERSION}.tar.gz";
+# Watch: https://github.com/CuarzoSoftware/Louvre/tags
tags/v([0-9.\-]+)[.]tar
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/Louvre-${VERSION}"
+fi
+ WEB_SITE="https://github.com/CuarzoSoftware/Louvre";
+ ENTERED="20231118"
+ LICENSE[0]="GPL"
+ KEYWORDS="wayland compositor library"
+ SHORT="C++ library for building Wayland compositors"
+cat << EOF
+Louvre is a high-performance C++ library designed for building Wayland
+compositors with a strong emphasis on ease of development.
+EOF
diff --git a/wm-addons/louvre/HISTORY b/wm-addons/louvre/HISTORY
new file mode 100644
index 0000000..d778bdf
--- /dev/null
+++ b/wm-addons/louvre/HISTORY
@@ -0,0 +1,4 @@
+2023-11-18 Pavel Vinogradov <public AT sorcemage.org>
+ * BUILD, CONFIGURE, DEPENDS, DETAILS, PREPARE, INSTALL: created the
spell,
+ version 1.0.0-1
+
diff --git a/wm-addons/louvre/INSTALL b/wm-addons/louvre/INSTALL
new file mode 100755
index 0000000..3f483d6
--- /dev/null
+++ b/wm-addons/louvre/INSTALL
@@ -0,0 +1,16 @@
+cd "${SOURCE_DIRECTORY}/src" &&
+local MESON_INSTALL &&
+local MESON_OPTS &&
+local EXTRA_OPTS="${@}" &&
+
+if [[ $(get_spell_provider ${SPELL} MESON-BUILD) == muon ]]; then
+ MESON_INSTALL="muon"
+
+ MESON_OPTS="-C builddir/ install ${EXTRA_OPTS}"
+else
+ MESON_INSTALL="meson"
+
+ MESON_OPTS="install -C builddir/ --no-rebuild ${EXTRA_OPTS}"
+fi &&
+
+DESTDIR="${INSTALL_ROOT}/" ${MESON_INSTALL} ${MESON_OPTS}
diff --git a/wm-addons/louvre/PREPARE b/wm-addons/louvre/PREPARE
new file mode 100755
index 0000000..e38d86f
--- /dev/null
+++ b/wm-addons/louvre/PREPARE
@@ -0,0 +1,2 @@
+. "${GRIMOIRE}/FUNCTIONS" &&
+prepare_select_branch stable scm



  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (80da539c1719b2e8b5055a402c5c358a25118c59), Pavel Vinogradov, 11/18/2023

Archive powered by MHonArc 2.6.24.

Top of Page