[arch-commits] Commit in libhandy/repos/extra-x86_64 (3 files)

Jan Steffens heftig at archlinux.org
Thu Mar 25 23:16:40 UTC 2021


    Date: Thursday, March 25, 2021 @ 23:16:40
  Author: heftig
Revision: 411011

archrelease: copy trunk to extra-x86_64

Added:
  libhandy/repos/extra-x86_64/0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch
    (from rev 411009, libhandy/trunk/0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch)
  libhandy/repos/extra-x86_64/PKGBUILD
    (from rev 411009, libhandy/trunk/PKGBUILD)
Deleted:
  libhandy/repos/extra-x86_64/PKGBUILD

---------------------------------------------------------------+
 0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch |   42 ++++
 PKGBUILD                                                      |   93 +++++-----
 2 files changed, 91 insertions(+), 44 deletions(-)

Copied: libhandy/repos/extra-x86_64/0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch (from rev 411009, libhandy/trunk/0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch)
===================================================================
--- 0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch	                        (rev 0)
+++ 0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch	2021-03-25 23:16:40 UTC (rev 411011)
@@ -0,0 +1,42 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Thu, 25 Mar 2021 23:09:19 +0000
+Subject: [PATCH] meson: Avoid a trailing slash on libdir and datadir
+
+When package_subdir is empty. This gets passed into the produced
+pkg-config file and then confuses meson.
+
+https://gitlab.gnome.org/GNOME/gnome-characters/-/issues/86
+---
+ meson.build | 16 ++++++++++------
+ 1 file changed, 10 insertions(+), 6 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 73c07a9..d06ed77 100644
+--- a/meson.build
++++ b/meson.build
+@@ -103,14 +103,18 @@ add_project_arguments(
+ 
+ # Setup various paths that subdirectory meson.build files need
+ package_subdir = get_option('package_subdir') # When used as subproject
+-datadir        = get_option('datadir')  / package_subdir
+-libdir         = get_option('libdir')  / package_subdir
+-girdir         = get_option('datadir') / package_subdir / 'gir-1.0'
+-typelibdir     = get_option('libdir')  / package_subdir / 'girepository-1.0'
+ if package_subdir != ''
+-  vapidir = get_option('datadir') / package_subdir / 'vapi'
++  datadir    = get_option('datadir') / package_subdir
++  libdir     = get_option('libdir')  / package_subdir
++  girdir     = get_option('datadir') / package_subdir / 'gir-1.0'
++  typelibdir = get_option('libdir')  / package_subdir / 'girepository-1.0'
++  vapidir    = get_option('datadir') / package_subdir / 'vapi'
+ else
+-  vapidir = get_option('datadir') / 'vala' / 'vapi'
++  datadir    = get_option('datadir')
++  libdir     = get_option('libdir')
++  girdir     = get_option('datadir') / 'gir-1.0'
++  typelibdir = get_option('libdir')  / 'girepository-1.0'
++  vapidir    = get_option('datadir') / 'vala' / 'vapi'
+ endif
+ 
+ glade_catalog_feature = get_option('glade_catalog')

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-25 23:16:40 UTC (rev 411010)
+++ PKGBUILD	2021-03-25 23:16:40 UTC (rev 411011)
@@ -1,44 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
-# Contributor: Balló György <ballogyor+arch at gmail dot com>
-
-pkgname=libhandy
-pkgver=1.2.0
-pkgrel=1
-pkgdesc="Library full of GTK+ widgets for mobile phones"
-url="https://gitlab.gnome.org/GNOME/libhandy"
-arch=(x86_64)
-license=(LGPL)
-depends=(glib2 gtk3)
-makedepends=(git gobject-introspection meson vala glade)
-checkdepends=(xorg-server-xvfb)
-provides=(libhandy-1.so)
-_commit=7b38a860ffcec6c2ad28153358cc3d037ddb618f  # tags/1.2.0^0
-source=("git+https://gitlab.gnome.org/GNOME/libhandy.git#commit=$_commit")
-sha256sums=('SKIP')
-
-prepare() {
-  cd libhandy
-}
-
-pkgver() {
-  cd libhandy
-  git describe --tags | sed 's/^v//;s/-/+/g'
-}
-
-build() {
-  arch-meson libhandy build \
-    -D gtk_doc=true
-  meson compile -C build
-}
-
-check() {
-  dbus-run-session xvfb-run \
-    -s '-screen 0 1920x1080x24 -nolisten local' \
-    meson test -C build --print-errorlogs
-}
-
-package() {
-  DESTDIR="$pkgdir" meson install -C build
-}
-
-# vim:set sw=2 et:

Copied: libhandy/repos/extra-x86_64/PKGBUILD (from rev 411009, libhandy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-03-25 23:16:40 UTC (rev 411011)
@@ -0,0 +1,49 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=libhandy
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="Library full of GTK+ widgets for mobile phones"
+url="https://gitlab.gnome.org/GNOME/libhandy"
+arch=(x86_64)
+license=(LGPL)
+depends=(glib2 gtk3)
+makedepends=(git gobject-introspection meson vala glade)
+checkdepends=(xorg-server-xvfb)
+provides=(libhandy-1.so)
+_commit=7b38a860ffcec6c2ad28153358cc3d037ddb618f  # tags/1.2.0^0
+source=("git+https://gitlab.gnome.org/GNOME/libhandy.git#commit=$_commit"
+        0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch)
+sha256sums=('SKIP'
+            'ac4f3a4501a93dd47a6b7790204b39d4e77d2037452ff114980b106929b764eb')
+
+prepare() {
+  cd libhandy
+
+  # https://gitlab.gnome.org/GNOME/gnome-characters/-/issues/86
+  git apply -3 ../0001-meson-Avoid-a-trailing-slash-on-libdir-and-datadir.patch
+}
+
+pkgver() {
+  cd libhandy
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+build() {
+  arch-meson libhandy build \
+    -D gtk_doc=true
+  meson compile -C build
+}
+
+check() {
+  dbus-run-session xvfb-run \
+    -s '-screen 0 1920x1080x24 -nolisten local' \
+    meson test -C build --print-errorlogs
+}
+
+package() {
+  DESTDIR="$pkgdir" meson install -C build
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list