1 |
commit: 19d0a72327ca484229e7a7d95d8b1b2d0e870fd1 |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 2 14:25:08 2016 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 14:35:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19d0a723 |
7 |
|
8 |
app-mobilephone/gammu: bump to 1.36.8, fix #536722 |
9 |
|
10 |
Python support is now handled by dev-python/python-gammu |
11 |
|
12 |
Package-Manager: portage-2.2.27 |
13 |
|
14 |
app-mobilephone/gammu/Manifest | 1 + |
15 |
.../gammu/files/gammu-1.36.8-bashcompdir.patch | 12 ++++ |
16 |
app-mobilephone/gammu/gammu-1.36.8.ebuild | 79 ++++++++++++++++++++++ |
17 |
app-mobilephone/gammu/metadata.xml | 9 ++- |
18 |
4 files changed, 98 insertions(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/app-mobilephone/gammu/Manifest b/app-mobilephone/gammu/Manifest |
21 |
index 40e50c6..08f608e 100644 |
22 |
--- a/app-mobilephone/gammu/Manifest |
23 |
+++ b/app-mobilephone/gammu/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST gammu-1.33.0.tar.bz2 6535262 SHA256 b326223e36a334dbaed68252a9cf2d90fd898d6de4d1085dcf9c2320881aece3 SHA512 42252a36c7ad5a2945fcf23fcb1b5bb0201d27e8830d3b4a7f4c36bf00f12f5a0f7797e17098bda8d526d4ddc3b1808c0786dfae0feef9424516fa68bf2f3f1e WHIRLPOOL 27c0110da7b686bc7dd19f4f897c59d4e66aa6dbec78dec208fa8c90f70b80c1375c7b8a4b54fe40295d388de61efb11695823a503d1f85a46797c97ddf988fa |
26 |
+DIST gammu-1.36.8.tar.bz2 2095289 SHA256 0ed9c91b4cc5844cad04531e765bc1194cb02bc3e69e6658cd88bfb1cad74f80 SHA512 4ac86b783570db0105e18ef05fc9408e85d1234ab7de720a232a416ad867d3afbe89db7ed408c06d57f8bb38a2e272f86386f11a89e56f1d750da9e9b579ba09 WHIRLPOOL 36172cbf129647b2de48dbbe14122e71fc4f46e2f6ddb29ce546a1e37ea5c2ee0cad28ee37b29b7ddfb9605e6984c6d80d50108bfe0962417da35a1c5b2688ef |
27 |
|
28 |
diff --git a/app-mobilephone/gammu/files/gammu-1.36.8-bashcompdir.patch b/app-mobilephone/gammu/files/gammu-1.36.8-bashcompdir.patch |
29 |
new file mode 100644 |
30 |
index 0000000..aceef3d |
31 |
--- /dev/null |
32 |
+++ b/app-mobilephone/gammu/files/gammu-1.36.8-bashcompdir.patch |
33 |
@@ -0,0 +1,12 @@ |
34 |
+diff -BurpN gammu-1.36.8.orig/contrib/CMakeLists.txt gammu-1.36.8/contrib/CMakeLists.txt |
35 |
+--- gammu-1.36.8.orig/contrib/CMakeLists.txt 2015-12-08 13:38:11.000000000 +0300 |
36 |
++++ gammu-1.36.8/contrib/CMakeLists.txt 2016-01-16 15:49:45.870431342 +0300 |
37 |
+@@ -85,7 +85,7 @@ endif (INSTALL_PHP_EXAMPLES) |
38 |
+ if (INSTALL_BASH_COMPLETION) |
39 |
+ macro_optional_find_package (BashCompletion) |
40 |
+ if (NOT BASH_COMPLETION_FOUND) |
41 |
+- set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d" CACHE PATH "Location of bash_completion.d") |
42 |
++ set (BASH_COMPLETION_COMPLETIONSDIR "/usr/share/bash-completion/completions" CACHE PATH "Location of bash_completion.d") |
43 |
+ endif (NOT BASH_COMPLETION_FOUND) |
44 |
+ install ( |
45 |
+ FILES bash-completion/gammu |
46 |
|
47 |
diff --git a/app-mobilephone/gammu/gammu-1.36.8.ebuild b/app-mobilephone/gammu/gammu-1.36.8.ebuild |
48 |
new file mode 100644 |
49 |
index 0000000..2db6755 |
50 |
--- /dev/null |
51 |
+++ b/app-mobilephone/gammu/gammu-1.36.8.ebuild |
52 |
@@ -0,0 +1,79 @@ |
53 |
+# Copyright 1999-2016 Gentoo Foundation |
54 |
+# Distributed under the terms of the GNU General Public License v2 |
55 |
+# $Id$ |
56 |
+ |
57 |
+EAPI=5 |
58 |
+ |
59 |
+inherit eutils cmake-utils |
60 |
+ |
61 |
+DESCRIPTION="A tool to handle your cellular phone" |
62 |
+HOMEPAGE="http://wammu.eu/gammu/" |
63 |
+SRC_URI="http://dl.cihar.com/${PN}/releases/${P}.tar.bz2" |
64 |
+ |
65 |
+LICENSE="GPL-2" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~x86" |
68 |
+IUSE="bluetooth curl dbi debug irda mysql nls postgres usb" |
69 |
+ |
70 |
+# TODO: figure out a way to disable gudev |
71 |
+RDEPEND="dev-libs/glib:2= |
72 |
+ virtual/libgudev:= |
73 |
+ bluetooth? ( net-wireless/bluez:= ) |
74 |
+ curl? ( net-misc/curl:= ) |
75 |
+ dbi? ( >=dev-db/libdbi-0.8.3:= ) |
76 |
+ mysql? ( virtual/mysql:= ) |
77 |
+ postgres? ( dev-db/postgresql:=[server] ) |
78 |
+ usb? ( virtual/libusb:1= ) |
79 |
+ dev-util/dialog" |
80 |
+DEPEND="${RDEPEND} |
81 |
+ irda? ( virtual/os-headers ) |
82 |
+ nls? ( sys-devel/gettext )" |
83 |
+ |
84 |
+# sys-devel/gettext is needed for creating .mo files |
85 |
+# Supported languages and translated documentation |
86 |
+# Be sure all languages are prefixed with a single space! |
87 |
+MY_AVAILABLE_LINGUAS=" af ar bg bn ca cs da de el en_GB es et fi fr gl he hu id it ko nl pl pt_BR ro ru sk sv sw tr zh_CN zh_TW" |
88 |
+IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ epatch "${FILESDIR}/${PN}-skip-locktest.patch" \ |
92 |
+ "${FILESDIR}/${PN}-1.36.8-bashcompdir.patch" |
93 |
+ |
94 |
+ local lang support_linguas=no |
95 |
+ for lang in ${MY_AVAILABLE_LINGUAS} ; do |
96 |
+ if use linguas_${lang} ; then |
97 |
+ support_linguas=yes |
98 |
+ break |
99 |
+ fi |
100 |
+ done |
101 |
+ # install all languages when all selected LINGUAS aren't supported |
102 |
+ if [ "${support_linguas}" = "yes" ]; then |
103 |
+ for lang in ${MY_AVAILABLE_LINGUAS} ; do |
104 |
+ if ! use linguas_${lang} ; then |
105 |
+ rm -rf locale/${lang} || die |
106 |
+ fi |
107 |
+ done |
108 |
+ fi |
109 |
+} |
110 |
+ |
111 |
+src_configure() { |
112 |
+ # debug flag is used inside cmake-utils.eclass |
113 |
+ local mycmakeargs=( |
114 |
+ $(cmake-utils_use_with bluetooth Bluez) |
115 |
+ $(cmake-utils_use_with irda IRDA) |
116 |
+ $(cmake-utils_use_with curl CURL) |
117 |
+ $(cmake-utils_use_with usb USB) |
118 |
+ $(cmake-utils_use_with mysql MySQL) |
119 |
+ $(cmake-utils_use_with postgres Postgres) |
120 |
+ $(cmake-utils_use_with dbi LibDBI) |
121 |
+ $(cmake-utils_use_with nls GettextLibs) |
122 |
+ $(cmake-utils_use_with nls Iconv) |
123 |
+ -DBUILD_SHARED_LIBS=ON |
124 |
+ -DINSTALL_DOC_DIR="share/doc/${PF}" |
125 |
+ ) |
126 |
+ cmake-utils_src_configure |
127 |
+} |
128 |
+ |
129 |
+src_test() { |
130 |
+ LD_LIBRARY_PATH="${WORKDIR}/${PN}_build/common" cmake-utils_src_test |
131 |
+} |
132 |
|
133 |
diff --git a/app-mobilephone/gammu/metadata.xml b/app-mobilephone/gammu/metadata.xml |
134 |
index 33356c6..65a0f7a 100644 |
135 |
--- a/app-mobilephone/gammu/metadata.xml |
136 |
+++ b/app-mobilephone/gammu/metadata.xml |
137 |
@@ -1,7 +1,10 @@ |
138 |
<?xml version="1.0" encoding="UTF-8"?> |
139 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
140 |
<pkgmetadata> |
141 |
-<use> |
142 |
- <flag name="irda">Enables infrared support</flag> |
143 |
-</use> |
144 |
+ <use> |
145 |
+ <flag name="irda">Enables infrared support</flag> |
146 |
+ </use> |
147 |
+ <upstream> |
148 |
+ <remote-id type="github">gammu/gammu</remote-id> |
149 |
+ </upstream> |
150 |
</pkgmetadata> |