From ec7531c54115342f620a8246bd8179296bcd0048 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 7 Mar 2018 19:59:05 +0000 Subject: gypsy: dep of qt5-location --- abs/extra/gypsy/PKGBUILD | 36 ++++++++++++ abs/extra/gypsy/g_type_init_deprecation.patch | 85 +++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 abs/extra/gypsy/PKGBUILD create mode 100644 abs/extra/gypsy/g_type_init_deprecation.patch diff --git a/abs/extra/gypsy/PKGBUILD b/abs/extra/gypsy/PKGBUILD new file mode 100644 index 0000000..fbb0c94 --- /dev/null +++ b/abs/extra/gypsy/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Antonio Rojas +# Contributor: Hans-Nikolai Viessmann +# Contributor: Nuno Araujo +# Contributor: György Balló + +pkgname=gypsy +pkgver=0.9 +pkgrel=7 +pkgdesc="GPS multiplexing daemon" +arch=(x86_64) +url="https://gypsy.freedesktop.org/" +license=(GPL) +depends=(dbus-glib bluez bluez-libs libgudev) +makedepends=(libxslt) +source=("https://gypsy.freedesktop.org/releases/$pkgname-$pkgver.tar.gz" + g_type_init_deprecation.patch) +md5sums=('e2d186df9c2cc3b70a027043e22acf1a' + 'f42f0bb01f8a278fce81d6f05305b9fb') + +prepare() { + cd $pkgname-$pkgver + + patch -p1 -i ../g_type_init_deprecation.patch +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname + make +} + +package() { + cd $pkgname-$pkgver + + make DESTDIR="$pkgdir" install +} diff --git a/abs/extra/gypsy/g_type_init_deprecation.patch b/abs/extra/gypsy/g_type_init_deprecation.patch new file mode 100644 index 0000000..80511f1 --- /dev/null +++ b/abs/extra/gypsy/g_type_init_deprecation.patch @@ -0,0 +1,85 @@ +diff -ru gypsy-0.9.orig/docs/gypsy-tutorial.html gypsy-0.9/docs/gypsy-tutorial.html +--- gypsy-0.9.orig/docs/gypsy-tutorial.html 2011-08-09 13:20:15.000000000 +0200 ++++ gypsy-0.9/docs/gypsy-tutorial.html 2013-04-30 10:28:42.599711724 +0200 +@@ -97,10 +97,11 @@ + GError *error = NULL; + char *path; + ++ #if !GLIB_CHECK_VERSION(2,35,0) + /* Libgypsy uses GObject, so the type system needs + to be started up before any Gypsy calls */ + g_type_init (); +- ++ #endif + /* Retrieve the default control */ + control = gypsy_control_get_default (); + +diff -ru gypsy-0.9.orig/examples/list-known-gps-devices.c gypsy-0.9/examples/list-known-gps-devices.c +--- gypsy-0.9.orig/examples/list-known-gps-devices.c 2011-10-17 18:32:37.000000000 +0200 ++++ gypsy-0.9/examples/list-known-gps-devices.c 2013-04-30 10:26:59.824754298 +0200 +@@ -21,8 +21,9 @@ + GPtrArray *known_devices; + int i; + ++#if !GLIB_CHECK_VERSION(2,35,0) + g_type_init (); +- ++#endif + discovery = gypsy_discovery_new (); + known_devices = gypsy_discovery_list_devices (discovery, &error); + +diff -ru gypsy-0.9.orig/examples/simple-gps-dbus.c gypsy-0.9/examples/simple-gps-dbus.c +--- gypsy-0.9.orig/examples/simple-gps-dbus.c 2011-08-09 13:20:15.000000000 +0200 ++++ gypsy-0.9/examples/simple-gps-dbus.c 2013-04-30 10:26:20.862069029 +0200 +@@ -122,7 +122,9 @@ + DBusError error; + GMainLoop *mainloop; + ++#if !GLIB_CHECK_VERSION(2,35,0) + g_type_init (); ++#endif + conn = get_connection (); + + dbus_error_init (&error); +diff -ru gypsy-0.9.orig/examples/simple-gps-gypsy.c gypsy-0.9/examples/simple-gps-gypsy.c +--- gypsy-0.9.orig/examples/simple-gps-gypsy.c 2011-08-09 13:20:15.000000000 +0200 ++++ gypsy-0.9/examples/simple-gps-gypsy.c 2013-04-30 10:26:43.778354525 +0200 +@@ -68,8 +68,9 @@ + return 0; + } + ++#if !GLIB_CHECK_VERSION(2,35,0) + g_type_init (); +- ++#endif + control = gypsy_control_get_default (); + path = gypsy_control_create (control, argv[1], &error); + if (path == NULL) { +diff -ru gypsy-0.9.orig/examples/simple-gps-satellites.c gypsy-0.9/examples/simple-gps-satellites.c +--- gypsy-0.9.orig/examples/simple-gps-satellites.c 2011-08-09 13:20:15.000000000 +0200 ++++ gypsy-0.9/examples/simple-gps-satellites.c 2013-04-30 10:27:21.314396881 +0200 +@@ -43,8 +43,9 @@ + return 0; + } + ++#if !GLIB_CHECK_VERSION(2,35,0) + g_type_init (); +- ++#endif + control = gypsy_control_get_default (); + path = gypsy_control_create (control, argv[1], &error); + if (path == NULL) { +diff -ru gypsy-0.9.orig/src/main.c gypsy-0.9/src/main.c +--- gypsy-0.9.orig/src/main.c 2011-10-13 17:44:12.000000000 +0200 ++++ gypsy-0.9/src/main.c 2013-04-30 10:27:42.194049621 +0200 +@@ -188,8 +188,9 @@ + + umask (022); + ++#if !GLIB_CHECK_VERSION(2,35,0) + g_type_init (); +- ++#endif + mainloop = g_main_loop_new (NULL, FALSE); + + conn = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); -- cgit v0.12