Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Add Clight, Clightd, libmodule
Date: Thu, 06 Jun 2019 08:08:50 +0200	[thread overview]
Message-ID: <20190606060850.fLwobjPTxr4TulPQ3ocpxwl6Da2MejkXuj2kNUwJ7hY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12175@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

There is an updated pull request by SevereOverfl0w against master on the void-packages repository

https://github.com/SevereOverfl0w/void-packages Clight-3.1
https://github.com/void-linux/void-packages/pull/12175

Add Clight, Clightd, libmodule
None

A patch file from https://github.com/void-linux/void-packages/pull/12175.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Clight-3.1-12175.patch --]
[-- Type: application/text/x-diff, Size: 6107 bytes --]

From 59fe33ced401f48d417b3cf55c8d4d5050b8fad9 Mon Sep 17 00:00:00 2001
From: Dominic Monroe <dmc@juxt.pro>
Date: Wed, 5 Jun 2019 21:46:55 +0100
Subject: [PATCH 1/3] New package: libmodule-4.1.0

---
 common/shlibs              |  1 +
 srcpkgs/libmodule-devel    |  1 +
 srcpkgs/libmodule/template | 25 +++++++++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 120000 srcpkgs/libmodule-devel
 create mode 100644 srcpkgs/libmodule/template

diff --git a/common/shlibs b/common/shlibs
index fe557cc4411..51b0df96bef 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3466,3 +3466,4 @@ libFAudio.so.0 FAudio-19.05_1
 libqaccessibilityclient-qt5.so.0 libqaccessibilityclient-0.4.0_1
 libnitrokey.so.3 libnitrokey-3.4.1_1
 libceres.so.1 ceres-solver-1.14.0_1
+libmodule.so.4 libmodule-4.1.0_1
diff --git a/srcpkgs/libmodule-devel b/srcpkgs/libmodule-devel
new file mode 120000
index 00000000000..4150d13df41
--- /dev/null
+++ b/srcpkgs/libmodule-devel
@@ -0,0 +1 @@
+libmodule
\ No newline at end of file
diff --git a/srcpkgs/libmodule/template b/srcpkgs/libmodule/template
new file mode 100644
index 00000000000..e42f9d9e196
--- /dev/null
+++ b/srcpkgs/libmodule/template
@@ -0,0 +1,25 @@
+# Template file for 'libmodule'
+pkgname=libmodule
+version=4.1.0
+revision=1
+build_style=cmake
+short_desc="C simple and elegant implementation of an actor library"
+maintainer="Dominic Monroe <monroef4@googlemail.com>"
+license="MIT"
+homepage="https://github.com/FedeDP/libmodule"
+distfiles="https://github.com/FedeDP/libmodule/archive/${version}.tar.gz"
+checksum=14294e63e3ff26ddbf80ca359e3d78ea3a1207692fc137a8020ec1fbe0ec47bd
+
+post_install() {
+	vlicense LICENSE
+}
+
+libmodule-devel_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		 vmove usr/include
+		 vmove usr/share/pkgconfig
+		 vmove "usr/lib/*.so"
+	}
+}

From 34e465ee570f6f466571ce4deedf2559125d664a Mon Sep 17 00:00:00 2001
From: Dominic Monroe <dmc@juxt.pro>
Date: Wed, 5 Jun 2019 21:49:01 +0100
Subject: [PATCH 2/3] New package: Clightd-3.4

---
 srcpkgs/Clightd/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/Clightd/template

diff --git a/srcpkgs/Clightd/template b/srcpkgs/Clightd/template
new file mode 100644
index 00000000000..241cf60cd05
--- /dev/null
+++ b/srcpkgs/Clightd/template
@@ -0,0 +1,20 @@
+# Template file for 'Clightd'
+pkgname=Clightd
+version=3.4
+revision=1
+build_style=cmake
+cmake_builddir=build
+configure_args="-DENABLE_DDC=1 -DENABLE_GAMMA=1 -DENABLE_DPMS=1"
+hostmakedepends="pkg-config"
+makedepends="eudev-libudev-devel libmodule-devel polkit-devel elogind-devel libXrandr-devel libXext-devel libX11-devel ddcutil"
+depends="ddcutil"
+short_desc="API to read webcam brightness & alter screen brightness/temperature"
+maintainer="Dominic Monroe <monroef4@googlemail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/FedeDP/Clightd"
+distfiles="https://github.com/FedeDP/Clightd/archive/${version}.tar.gz"
+checksum=30c5176a5e05ca7a771b62f5ab3a36e95012ba637d0643ced8ecc4f4e4d17c47
+
+post_install() {
+	vinstall Scripts/i2c_clightd.conf 644 /usr/lib/modules-load.d/
+}

From 042a18525353b981cc25b5d5c34b102527f97d89 Mon Sep 17 00:00:00 2001
From: Dominic Monroe <dmc@juxt.pro>
Date: Wed, 5 Jun 2019 21:51:28 +0100
Subject: [PATCH 3/3] New package: Clight-3.1

---
 srcpkgs/Clight/patches/issue-70.patch | 35 +++++++++++++++++++++++++++
 srcpkgs/Clight/template               | 14 +++++++++++
 2 files changed, 49 insertions(+)
 create mode 100644 srcpkgs/Clight/patches/issue-70.patch
 create mode 100644 srcpkgs/Clight/template

diff --git a/srcpkgs/Clight/patches/issue-70.patch b/srcpkgs/Clight/patches/issue-70.patch
new file mode 100644
index 00000000000..a71e895de74
--- /dev/null
+++ b/srcpkgs/Clight/patches/issue-70.patch
@@ -0,0 +1,35 @@
+From 8491e18e940a71a74874885436691e2443b21844 Mon Sep 17 00:00:00 2001
+From: Federico Di Pierro <nierro92@gmail.com>
+Date: Mon, 18 Mar 2019 20:24:48 +0100
+Subject: [PATCH] Avoid flaot libsystemd/libelogind version. Fixes #70.
+
+---
+ CMakeLists.txt | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9d6f173..f6e0c3d 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -34,6 +34,12 @@ set_property(TARGET ${PROJECT_NAME} PROPERTY C_STANDARD 99)
+ # Required dependencies
+ pkg_check_modules(REQ_LIBS REQUIRED popt gsl libconfig)
+ pkg_search_module(LOGIN_LIBS REQUIRED libelogind libsystemd>=221)
++
++# Avoid float versioning for libsystemd/libelogind
++string(REPLACE "." ";" LOGIN_LIBS_VERSION_LIST ${LOGIN_LIBS_VERSION})
++list(GET LOGIN_LIBS_VERSION_LIST 0 LOGIN_LIBS_VERSION_MAJOR)
++message(STATUS "Found lib${LOGIN_LIBS_LIBRARIES} version ${LOGIN_LIBS_VERSION_MAJOR}")
++
+ target_link_libraries(${PROJECT_NAME}
+                       m
+                       ${REQ_LIBS_LIBRARIES}
+@@ -44,7 +50,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE
+                            "${LOGIN_LIBS_INCLUDE_DIRS}"
+ )
+ target_compile_definitions(${PROJECT_NAME} PRIVATE
+-    -DLIBSYSTEMD_VERSION=${LOGIN_LIBS_VERSION}
++    -DLIBSYSTEMD_VERSION=${LOGIN_LIBS_VERSION_MAJOR}
+ )
+ list(APPEND COMBINED_LDFLAGS ${REQ_LIBS_LDFLAGS})
+ list(APPEND COMBINED_LDFLAGS ${LOGIN_LIBS_LDFLAGS})
diff --git a/srcpkgs/Clight/template b/srcpkgs/Clight/template
new file mode 100644
index 00000000000..84d98307755
--- /dev/null
+++ b/srcpkgs/Clight/template
@@ -0,0 +1,14 @@
+# Template file for 'Clight'
+pkgname=Clight
+version=3.1
+revision=1
+build_style=cmake
+hostmakedepends="pkg-config"
+makedepends="popt-devel gsl-devel libconfig-devel elogind-devel bash-completion dbus-devel"
+depends="Clightd"
+short_desc="Use your webcam as a light sensor to adjust screen backlight"
+maintainer="Dominic Monroe <monroef4@googlemail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/FedeDP/Clight"
+distfiles="https://github.com/FedeDP/Clight/archive/${version}.tar.gz"
+checksum=842e639b86f898da225104878543b97d2626a3326e663f84333d075f9e718b89

  parent reply	other threads:[~2019-06-06  6:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-05 20:53 [PR PATCH] " voidlinux-github
2019-06-05 21:02 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-05 21:02 ` voidlinux-github
2019-06-06  6:08 ` voidlinux-github [this message]
2019-06-06  6:08 ` voidlinux-github
2019-06-06  7:20 ` [PR PATCH] [Merged]: " voidlinux-github

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=20190606060850.fLwobjPTxr4TulPQ3ocpxwl6Da2MejkXuj2kNUwJ7hY@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).