Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: ThemeChanger
@ 2021-10-21 18:20 ALEX11BR
  2021-10-21 18:22 ` [PR PATCH] [Updated] " ALEX11BR
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ALEX11BR @ 2021-10-21 18:20 UTC (permalink / raw)
  To: ml

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

There is a new pull request by ALEX11BR against master on the void-packages repository

https://github.com/ALEX11BR/void-packages AddThemeChanger
https://github.com/void-linux/void-packages/pull/33676

New package: ThemeChanger
Once again, here to add my application ThemeChanger to your repos. For various reasons could not properly put these changes in the previous PR, so here I am (again for the Nth time). This time I applied the suggestion to move all the modules to `libdir`. Hope it's all right this time...

<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-AddThemeChanger-33676.patch --]
[-- Type: text/x-diff, Size: 3381 bytes --]

From 76b4c117a6601dcee41b30359bb55e25c6a809ca Mon Sep 17 00:00:00 2001
From: Popa Ioan Alexandru <alexioanpopa11@gmail.com>
Date: Thu, 21 Oct 2021 21:16:05 +0300
Subject: [PATCH] New package: ThemeChanger

---
 srcpkgs/ThemeChanger/patches/usrlib.patch | 49 +++++++++++++++++++++++
 srcpkgs/ThemeChanger/template             | 16 ++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 srcpkgs/ThemeChanger/patches/usrlib.patch
 create mode 100644 srcpkgs/ThemeChanger/template

diff --git a/srcpkgs/ThemeChanger/patches/usrlib.patch b/srcpkgs/ThemeChanger/patches/usrlib.patch
new file mode 100644
index 000000000000..c1aded21f475
--- /dev/null
+++ b/srcpkgs/ThemeChanger/patches/usrlib.patch
@@ -0,0 +1,49 @@
+From 514a41f59cfa9f350900440637b3a0a46e8c53f8 Mon Sep 17 00:00:00 2001
+From: Popa Ioan Alexandru <alexioanpopa11@gmail.com>
+Date: Thu, 21 Oct 2021 00:36:53 +0300
+Subject: [PATCH] Patch for Void Linux so that the compiled C module stays in
+ /usr/lib; with it all the other modules
+
+---
+ src/meson.build     | 4 +++-
+ src/themechanger.in | 3 ++-
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/meson.build b/src/meson.build
+index 8d5dc46..6279359 100644
+--- a/src/meson.build
++++ b/src/meson.build
+@@ -1,5 +1,6 @@
+ pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
+-moduledir = join_paths(pkgdatadir, 'themechanger')
++libdir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name())
++moduledir = join_paths(libdir, meson.project_name())
+ gnome = import('gnome')
+ 
+ gnome.compile_resources('themechanger',
+@@ -16,6 +17,7 @@ conf.set('PYTHON', python.path())
+ conf.set('VERSION', meson.project_version())
+ conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
+ conf.set('pkgdatadir', pkgdatadir)
++conf.set('libdir', libdir)
+ conf.set('gtkversion', '3.0')
+ 
+ pythondep = python.dependency(version: '>= 3.6')
+diff --git a/src/themechanger.in b/src/themechanger.in
+index 99bb087..4c8c37d 100755
+--- a/src/themechanger.in
++++ b/src/themechanger.in
+@@ -8,8 +8,9 @@ import signal
+ VERSION = '@VERSION@'
+ pkgdatadir = '@pkgdatadir@'
+ localedir = '@localedir@'
++libdir = '@libdir@'
+ 
+-sys.path.insert(1, pkgdatadir)
++sys.path.insert(1, libdir)
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
+ 
+ if __name__ == '__main__':
+-- 
+2.33.0
+
diff --git a/srcpkgs/ThemeChanger/template b/srcpkgs/ThemeChanger/template
new file mode 100644
index 000000000000..d85585151935
--- /dev/null
+++ b/srcpkgs/ThemeChanger/template
@@ -0,0 +1,16 @@
+# Template file for 'ThemeChanger'
+pkgname=ThemeChanger
+version=0.10.2
+revision=1
+build_style=meson
+hostmakedepends="pkg-config python3 glib-devel"
+makedepends="gdk-pixbuf-devel libXcursor-devel python3-devel python3-gobject-devel"
+depends="gtk+3 python3-gobject"
+short_desc="Theme changing utility for Linux"
+maintainer="Popa Ioan Alexandru <alexioanpopa11@gmail.com>"
+license="GPL-2.0-or-later"
+homepage="https://github.com/ALEX11BR/ThemeChanger"
+distfiles="https://github.com/ALEX11BR/ThemeChanger/archive/refs/tags/v${version}.tar.gz"
+checksum="de5b3171b91d39af8becf09e42f81af80d9414a7ec2023b2e96a46bae6f9aa69"
+nocross="Meson can't properly cross-compile Python C modules (https://github.com/mesonbuild/meson/issues/7049)"
+python_version=3
\ No newline at end of file

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-23  2:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 18:20 [PR PATCH] New package: ThemeChanger ALEX11BR
2021-10-21 18:22 ` [PR PATCH] [Updated] " ALEX11BR
2021-10-21 18:24 ` ALEX11BR
2022-06-09  2:12 ` github-actions
2022-06-23  2:15 ` [PR PATCH] [Closed]: " github-actions

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).