Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/gammu/, app-mobilephone/gammu/files/
Date: Mon, 16 Oct 2017 11:13:56
Message-Id: 1508152421.8d0bc939e335e51a0d595db992f081537fb9eb63.kensington@gentoo
1 commit: 8d0bc939e335e51a0d595db992f081537fb9eb63
2 Author: coyote <coyote <AT> bks <DOT> tv>
3 AuthorDate: Mon Sep 4 15:22:22 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 16 11:13:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d0bc939
7
8 app-mobilephone/gammu: bump version to 1.38.4
9
10 Switch to EAPI=6, exclude unneeded patches, fix automagic to ODBC.
11
12 Closes: https://bugs.gentoo.org/608002
13
14 app-mobilephone/gammu/Manifest | 1 +
15 .../gammu/files/gammu-1.38.4-smsd.patch | 22 ++++++++
16 app-mobilephone/gammu/gammu-1.38.4.ebuild | 63 ++++++++++++++++++++++
17 3 files changed, 86 insertions(+)
18
19 diff --git a/app-mobilephone/gammu/Manifest b/app-mobilephone/gammu/Manifest
20 index 08f608eeed4..25de9f8692e 100644
21 --- a/app-mobilephone/gammu/Manifest
22 +++ b/app-mobilephone/gammu/Manifest
23 @@ -1,2 +1,3 @@
24 DIST gammu-1.33.0.tar.bz2 6535262 SHA256 b326223e36a334dbaed68252a9cf2d90fd898d6de4d1085dcf9c2320881aece3 SHA512 42252a36c7ad5a2945fcf23fcb1b5bb0201d27e8830d3b4a7f4c36bf00f12f5a0f7797e17098bda8d526d4ddc3b1808c0786dfae0feef9424516fa68bf2f3f1e WHIRLPOOL 27c0110da7b686bc7dd19f4f897c59d4e66aa6dbec78dec208fa8c90f70b80c1375c7b8a4b54fe40295d388de61efb11695823a503d1f85a46797c97ddf988fa
25 DIST gammu-1.36.8.tar.bz2 2095289 SHA256 0ed9c91b4cc5844cad04531e765bc1194cb02bc3e69e6658cd88bfb1cad74f80 SHA512 4ac86b783570db0105e18ef05fc9408e85d1234ab7de720a232a416ad867d3afbe89db7ed408c06d57f8bb38a2e272f86386f11a89e56f1d750da9e9b579ba09 WHIRLPOOL 36172cbf129647b2de48dbbe14122e71fc4f46e2f6ddb29ce546a1e37ea5c2ee0cad28ee37b29b7ddfb9605e6984c6d80d50108bfe0962417da35a1c5b2688ef
26 +DIST gammu-1.38.4.tar.bz2 2132767 SHA256 31ca9ce966841a9aba1af8397d22d2ae0ab00a6fc9e30211ea040ef4303ad767 SHA512 1d4a8e34d3bbc7e4d9797db1acd9be2e92eaec57a87e856ebd168444228a1e89942e69baf1569a0e5645dadea6947338d9e55ae96f632885e95ec1ce74d121ff WHIRLPOOL 731fb8f6d7e04d0040b59ba62485ed3ea1cb8a8b0e6d1009579bb80f6c39109d1b9cbc54ce0c40a1fdb00dbd2e6bede60bef03188e36bcbb5f464483b1decfe9
27
28 diff --git a/app-mobilephone/gammu/files/gammu-1.38.4-smsd.patch b/app-mobilephone/gammu/files/gammu-1.38.4-smsd.patch
29 new file mode 100644
30 index 00000000000..cae4afbb6c5
31 --- /dev/null
32 +++ b/app-mobilephone/gammu/files/gammu-1.38.4-smsd.patch
33 @@ -0,0 +1,22 @@
34 +diff -BurpN gammu-1.36.8.orig/smsd/uid.c gammu-1.38.4/smsd/uid.c
35 +--- gammu-1.38.4.orig/smsd/uid.c 2017-06-18 14:33:32.000000000 +0300
36 ++++ gammu-1.38.4/smsd/uid.c 2017-10-10 01:48:20.696098522 +0300
37 +@@ -54,7 +54,7 @@
38 + if (pwd == NULL) {
39 + /* Try to handle it as a number */
40 + uid = strtol(name, &endptr, 10);
41 +- if (*endptr == 0 && uid > 0) {
42 ++ if (*endptr == 0 && uid >= 0) {
43 + pwd = getpwuid(uid);
44 + }
45 + }
46 +@@ -85,7 +85,7 @@
47 + /* Try to handle it as a number */
48 + if (grp == NULL) {
49 + gid = strtol(name, &endptr, 10);
50 +- if (*endptr == 0 && gid > 0) {
51 ++ if (*endptr == 0 && gid >= 0) {
52 + grp = getgrgid(gid);
53 + }
54 + }
55 +
56
57 diff --git a/app-mobilephone/gammu/gammu-1.38.4.ebuild b/app-mobilephone/gammu/gammu-1.38.4.ebuild
58 new file mode 100644
59 index 00000000000..a7afec787ad
60 --- /dev/null
61 +++ b/app-mobilephone/gammu/gammu-1.38.4.ebuild
62 @@ -0,0 +1,63 @@
63 +# Copyright 1999-2017 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +
68 +inherit cmake-utils eutils
69 +
70 +DESCRIPTION="A tool to handle your cellular phone"
71 +HOMEPAGE="https://wammu.eu/gammu/"
72 +SRC_URI="https://dl.cihar.com/${PN}/releases/${P}.tar.bz2"
73 +
74 +LICENSE="GPL-2"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86"
77 +IUSE="bluetooth curl dbi debug irda mysql nls odbc postgres usb"
78 +
79 +COMMON_DEPEND="
80 + dev-libs/glib:2=
81 + virtual/libgudev:=
82 + bluetooth? ( net-wireless/bluez:= )
83 + curl? ( net-misc/curl:= )
84 + dbi? ( >=dev-db/libdbi-0.8.3:= )
85 + mysql? ( virtual/mysql:= )
86 + postgres? ( dev-db/postgresql:= )
87 + usb? ( virtual/libusb:1= )
88 +"
89 +DEPEND="
90 + ${COMMON_DEPEND}
91 + irda? ( virtual/os-headers )
92 + nls? ( sys-devel/gettext )
93 + odbc? ( dev-db/unixODBC )
94 +"
95 +RDEPEND="
96 + ${COMMON_DEPEND}
97 + dev-util/dialog
98 + virtual/libiconv
99 +"
100 +PATCHES=(
101 + "${FILESDIR}/${P}-smsd.patch"
102 +)
103 +
104 +src_configure() {
105 + local mycmakeargs=(
106 + -DWITH_BLUETOOTH=$(usex bluetooth)
107 + -DWITH_CURL=$(usex curl)
108 + -DWITH_Gettext=$(usex nls)
109 + -DWITH_Iconv=$(usex nls)
110 + -DWITH_IRDA=$(usex irda)
111 + -DWITH_LibDBI=$(usex dbi)
112 + -DWITH_MySQL=$(usex mysql)
113 + -DWITH_ODBC=$(usex odbc)
114 + -DWITH_Postgres=$(usex postgres)
115 + -DWITH_USB=$(usex usb)
116 + -DBUILD_SHARED_LIBS=ON
117 + -DINSTALL_DOC_DIR="share/doc/${PF}"
118 + )
119 + cmake-utils_src_configure
120 +}
121 +
122 +src_test() {
123 + addwrite "/run/lock/LCK..bar"
124 + MAKEOPTS+=" -j1" LD_LIBRARY_PATH="${BUILD_DIR}/libgammu" cmake-utils_src_test
125 +}