From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/gammu/files/, app-mobilephone/gammu/
Date: Wed, 18 May 2022 15:14:04 +0000 (UTC) [thread overview]
Message-ID: <1652886841.49ef6c9b1c26984904ff86f75adcc810a1cdbef4.juippis@gentoo> (raw)
commit: 49ef6c9b1c26984904ff86f75adcc810a1cdbef4
Author: Victor Kustov <ktrace <AT> yandex <DOT> ru>
AuthorDate: Tue May 10 14:08:01 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed May 18 15:14:01 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49ef6c9b
app-mobilephone/gammu: bump to 1.42.0
- bump version
- fix cmake warning
- fix gammu-detect
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Victor Kustov <ktrace <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/25423
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
app-mobilephone/gammu/Manifest | 1 +
.../gammu/files/gammu-1.42.0-CMP0110-policy.patch | 12 ++++
.../gammu/files/gammu-1.42.0-gammu-detect.patch | 22 ++++++++
app-mobilephone/gammu/gammu-1.42.0.ebuild | 66 ++++++++++++++++++++++
4 files changed, 101 insertions(+)
diff --git a/app-mobilephone/gammu/Manifest b/app-mobilephone/gammu/Manifest
index 8db479407c06..471863d305f6 100644
--- a/app-mobilephone/gammu/Manifest
+++ b/app-mobilephone/gammu/Manifest
@@ -1 +1,2 @@
DIST gammu-1.41.0.tar.bz2 2167233 BLAKE2B 4b0bf77246cc6a07a52457cff2bae44e63ebfe2715cb0c0b7d89c3d6352bb2df4cd5e7fd9b62d316e316fb1e73108fe561e030b7444eccd601cd0d2541b9f0e9 SHA512 f2c2534d3827216bf015607431938e0cf2524d5f2c670a5f76bb5ab7928962d22de981bbbf2dfa7af833c7903b60a775242048210bac6c35b1a9ee7668db4543
+DIST gammu-1.42.0.tar.bz2 2193946 BLAKE2B 074f870624efbd28aaf9ecb445063ff7ec070cd1498c00a2e93a8842ed2afd5a0bc6475d950885eec883bed158528dda0588809c2d55ef78c83f0eed3e1b4aff SHA512 f440df357578ce7f5ddd17f2f0f6405b4dacbca3e5da65a469f3f1e92c71bf899a7ef0977438c803ed9b1d7d15324d4a43bd9d97d986119a522243e2e6304971
diff --git a/app-mobilephone/gammu/files/gammu-1.42.0-CMP0110-policy.patch b/app-mobilephone/gammu/files/gammu-1.42.0-CMP0110-policy.patch
new file mode 100644
index 000000000000..b67cebd17a41
--- /dev/null
+++ b/app-mobilephone/gammu/files/gammu-1.42.0-CMP0110-policy.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt.orig b/CMakeLists.txt
+index 6cffb02..f7993cf 100644
+--- a/CMakeLists.txt.orig
++++ b/CMakeLists.txt
+@@ -13,6 +13,7 @@ set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+ # Silent some warnings from CMake 2.6
+ cmake_policy(SET CMP0003 NEW)
+ cmake_policy(SET CMP0009 NEW)
++cmake_policy(SET CMP0110 NEW)
+
+ option (COVERAGE "Add flags for Coverage analysis" OFF)
+
diff --git a/app-mobilephone/gammu/files/gammu-1.42.0-gammu-detect.patch b/app-mobilephone/gammu/files/gammu-1.42.0-gammu-detect.patch
new file mode 100644
index 000000000000..03e9ea631732
--- /dev/null
+++ b/app-mobilephone/gammu/files/gammu-1.42.0-gammu-detect.patch
@@ -0,0 +1,22 @@
+diff --git a/gammu-detect/udev.c.orig b/gammu-detect/udev.c
+index 4d25949..e0cd383 100644
+--- a/gammu-detect/udev.c.orig
++++ b/gammu-detect/udev.c
+@@ -189,12 +189,12 @@ void udev_detect(void)
+ client = g_udev_client_new(subsys);
+
+ list = g_udev_client_query_by_subsystem(client, subsys[0]);
+- for (iter = list; iter; iter = g_list_next(iter)) {
+- dump_device_and_parent(G_UDEV_DEVICE(iter->data), 0);
+- if (device_is_valid(G_UDEV_DEVICE(iter->data))) {
+- device_dump_config(G_UDEV_DEVICE(iter->data));
++ for (iter = g_list_first(list); iter; iter = g_list_next(iter)) {
++ dump_device_and_parent(iter->data, 0);
++ if (device_is_valid(iter->data)) {
++ device_dump_config(iter->data);
+ }
+- g_object_unref(G_UDEV_DEVICE(iter->data));
++ g_object_unref(iter->data);
+ }
+ }
+
diff --git a/app-mobilephone/gammu/gammu-1.42.0.ebuild b/app-mobilephone/gammu/gammu-1.42.0.ebuild
new file mode 100644
index 000000000000..ffbcfefd1952
--- /dev/null
+++ b/app-mobilephone/gammu/gammu-1.42.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A tool to handle your cellular phone"
+HOMEPAGE="https://wammu.eu/gammu/"
+SRC_URI="https://dl.cihar.com/${PN}/releases/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bluetooth curl dbi debug irda mysql nls odbc postgres usb"
+
+COMMON_DEPEND="
+ dev-libs/glib:2=
+ dev-libs/libgudev:=
+ virtual/libiconv
+ bluetooth? ( net-wireless/bluez:= )
+ curl? ( net-misc/curl:= )
+ dbi? ( >=dev-db/libdbi-0.8.3:= )
+ mysql? ( dev-db/mysql-connector-c:= )
+ nls? ( sys-devel/gettext )
+ odbc? ( dev-db/unixODBC )
+ postgres? ( dev-db/postgresql:= )
+ usb? ( virtual/libusb:1= )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ irda? ( virtual/os-headers )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ dev-util/dialog
+"
+PATCHES=( "${FILESDIR}/${P}-CMP0110-policy.patch"
+ "${FILESDIR}/${P}-gammu-detect.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DWITH_BLUETOOTH=$(usex bluetooth)
+ -DWITH_CURL=$(usex curl)
+ -DWITH_Gettext=$(usex nls)
+ -DWITH_Iconv=$(usex nls)
+ -DWITH_IRDA=$(usex irda)
+ -DWITH_LibDBI=$(usex dbi)
+ -DWITH_MySQL=$(usex mysql)
+ -DWITH_ODBC=$(usex odbc)
+ -DWITH_Postgres=$(usex postgres)
+ -DWITH_USB=$(usex usb)
+ -DINSTALL_DOC_DIR="share/doc/${PF}"
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ addwrite "/var/lock/LCK..bar"
+ LD_LIBRARY_PATH="${BUILD_DIR}/libgammu" cmake_src_test -j1
+}
+
+src_install() {
+ cmake_src_install
+ docompress -x /usr/share/doc/${PF}/examples/
+}
next reply other threads:[~2022-05-18 15:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-18 15:14 Joonas Niilola [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-03-07 16:58 [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/gammu/files/, app-mobilephone/gammu/ Sam James
2016-02-02 20:13 Sebastian Pipping
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=1652886841.49ef6c9b1c26984904ff86f75adcc810a1cdbef4.juippis@gentoo \
--to=juippis@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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