1 |
commit: f71600d593db76244922b806ee912ece08d0eb3f |
2 |
Author: Martin Gysel <me <AT> bearsh <DOT> org> |
3 |
AuthorDate: Sat Oct 26 18:29:03 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 1 14:06:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f71600d5 |
7 |
|
8 |
dev-libs/libdivecomputer: version bump, port to EAPI 7 |
9 |
|
10 |
remove tools useflag |
11 |
|
12 |
Closes: https://bugs.gentoo.org/696526 |
13 |
Signed-off-by: Martin Gysel <me <AT> bearsh.org> |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
dev-libs/libdivecomputer/Manifest | 1 + |
17 |
.../libdivecomputer/libdivecomputer-0.6.0.ebuild | 33 ++++++++++++ |
18 |
.../libdivecomputer/libdivecomputer-9999.ebuild | 59 ++++++---------------- |
19 |
dev-libs/libdivecomputer/metadata.xml | 3 -- |
20 |
4 files changed, 49 insertions(+), 47 deletions(-) |
21 |
|
22 |
diff --git a/dev-libs/libdivecomputer/Manifest b/dev-libs/libdivecomputer/Manifest |
23 |
index 86e2bf795ad..4a370131edc 100644 |
24 |
--- a/dev-libs/libdivecomputer/Manifest |
25 |
+++ b/dev-libs/libdivecomputer/Manifest |
26 |
@@ -1,2 +1,3 @@ |
27 |
DIST libdivecomputer-0.4.1.tar.gz 481798 BLAKE2B c4e132087f833dabc8504cd2cdacfe2c5fb29c208855d799cbb095a1ac3c75e7562136a5d47a8ff5717fa7241eec2114812c3c854cb950e0260f9111f873ad9d SHA512 a1104981b1820ea93c3b3e389e42996f9199c5a4c37daf16e9577d8fd29b21440521d1ea5f89ec2df2861b582fd2e748d35eb811ad0d484eacce7d13d39bf88f |
28 |
DIST libdivecomputer-0.4.2.tar.gz 487401 BLAKE2B fb6abdf8ac4a6bc4ab121dfcf4e898aed65a3ab7e8692c4a9525c46e3f7c890eeeac88d4903d7192752175f7c964fd0135cf1d119ffc2a49d572e4abf72d906f SHA512 590aca350d86d17a889f47238ad46f0a6a1353b5f7ed67c64a9bae303a010ab042e94a73a36c6f05f2d03d10c80b1fae49431ad581b3024db83b81711d5d1048 |
29 |
+DIST libdivecomputer-0.6.0.tar.gz 680425 BLAKE2B 9ed951c6cdec07929ea7a9d3b842483ea1c88bff0171bfec1ec5a1a1d21a73580f70034856c97397bd21061d01967e14477ffabdf75b10bd6a736820b17e5b7f SHA512 b199d3e7e89fb2f79e4de5b54b086ae5f8b6bc08d02513e903e8fb008c1a453cf4cd4c4b7a94b1f7053ac53cc7b9085193b0ee0682318594c27ac2cb693c9b3f |
30 |
|
31 |
diff --git a/dev-libs/libdivecomputer/libdivecomputer-0.6.0.ebuild b/dev-libs/libdivecomputer/libdivecomputer-0.6.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..9f8a7f67834 |
34 |
--- /dev/null |
35 |
+++ b/dev-libs/libdivecomputer/libdivecomputer-0.6.0.ebuild |
36 |
@@ -0,0 +1,33 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI="7" |
41 |
+ |
42 |
+if [[ ${PV} = *9999* ]]; then |
43 |
+ EGIT_REPO_URI="https://github.com/libdivecomputer/libdivecomputer" |
44 |
+ inherit autotools git-r3 |
45 |
+else |
46 |
+ SRC_URI="https://www.libdivecomputer.org/releases/${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64 ~x86" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="Library for communication with dive computers from various manufacturers." |
51 |
+HOMEPAGE="https://www.libdivecomputer.org" |
52 |
+LICENSE="LGPL-2.1" |
53 |
+ |
54 |
+SLOT="0" |
55 |
+IUSE="bluetooth" |
56 |
+ |
57 |
+RDEPEND="virtual/libusb:1 |
58 |
+ bluetooth? ( net-wireless/bluez )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ virtual/pkgconfig" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ [[ -v EGIT_REPO_URI ]] && eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ econf $(use_with bluetooth bluez) |
69 |
+} |
70 |
|
71 |
diff --git a/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild b/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild |
72 |
index 05e2cc29858..9f8a7f67834 100644 |
73 |
--- a/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild |
74 |
+++ b/dev-libs/libdivecomputer/libdivecomputer-9999.ebuild |
75 |
@@ -1,62 +1,33 @@ |
76 |
-# Copyright 1999-2016 Gentoo Foundation |
77 |
+# Copyright 1999-2019 Gentoo Authors |
78 |
# Distributed under the terms of the GNU General Public License v2 |
79 |
|
80 |
-EAPI="5" |
81 |
+EAPI="7" |
82 |
|
83 |
if [[ ${PV} = *9999* ]]; then |
84 |
- EGIT_REPO_URI="git://git.libdivecomputer.org/libdivecomputer.git" |
85 |
- GIT_ECLASS="git-2" |
86 |
- AUTOTOOLS_AUTORECONF=1 |
87 |
- KEYWORDS="" |
88 |
+ EGIT_REPO_URI="https://github.com/libdivecomputer/libdivecomputer" |
89 |
+ inherit autotools git-r3 |
90 |
else |
91 |
+ SRC_URI="https://www.libdivecomputer.org/releases/${P}.tar.gz" |
92 |
KEYWORDS="~amd64 ~x86" |
93 |
fi |
94 |
|
95 |
-AUTOTOOLS_IN_SOURCE_BUILD=1 |
96 |
-inherit eutils autotools-utils ${GIT_ECLASS} |
97 |
- |
98 |
-if [[ ${PV} = *9999* ]]; then |
99 |
- SRC_URI="" |
100 |
-else |
101 |
- SRC_URI="http://www.divesoftware.org/libdc/releases/${P}.tar.gz" |
102 |
-fi |
103 |
- |
104 |
-DESCRIPTION="Library for communication with dive computers from various manufacturers" |
105 |
-HOMEPAGE="http://www.divesoftware.org/libdc" |
106 |
+DESCRIPTION="Library for communication with dive computers from various manufacturers." |
107 |
+HOMEPAGE="https://www.libdivecomputer.org" |
108 |
LICENSE="LGPL-2.1" |
109 |
|
110 |
SLOT="0" |
111 |
-IUSE="usb +static-libs -tools" |
112 |
+IUSE="bluetooth" |
113 |
|
114 |
-RDEPEND="usb? ( virtual/libusb:1 )" |
115 |
+RDEPEND="virtual/libusb:1 |
116 |
+ bluetooth? ( net-wireless/bluez )" |
117 |
DEPEND="${RDEPEND} |
118 |
virtual/pkgconfig" |
119 |
|
120 |
-src_configure() { |
121 |
- autotools-utils_src_configure |
122 |
- |
123 |
- if ! use tools ; then |
124 |
- sed -i 's|examples||' Makefile || die "sed failed" |
125 |
- fi |
126 |
+src_prepare() { |
127 |
+ default |
128 |
+ [[ -v EGIT_REPO_URI ]] && eautoreconf |
129 |
} |
130 |
|
131 |
-src_install() { |
132 |
- autotools-utils_src_install |
133 |
- |
134 |
- if use tools ; then |
135 |
- einfo "prefixing tools with 'dctool_'" |
136 |
- pushd "${D}/usr/bin/" |
137 |
- for file in * ; do |
138 |
- mv "${file}" "dctool_${file}" || die "prefixing tools failed" |
139 |
- done |
140 |
- popd |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-pkg_postinst() { |
145 |
- if use tools ; then |
146 |
- elog "The 'tools' USE flag has been enabled," |
147 |
- elog "to avoid file collisions, all ${PN}" |
148 |
- elog "related tools have been prefixed with 'dctool_'" |
149 |
- fi |
150 |
+src_configure() { |
151 |
+ econf $(use_with bluetooth bluez) |
152 |
} |
153 |
|
154 |
diff --git a/dev-libs/libdivecomputer/metadata.xml b/dev-libs/libdivecomputer/metadata.xml |
155 |
index 93908aedd95..f4838fd208b 100644 |
156 |
--- a/dev-libs/libdivecomputer/metadata.xml |
157 |
+++ b/dev-libs/libdivecomputer/metadata.xml |
158 |
@@ -12,7 +12,4 @@ |
159 |
<longdescription lang="en"> |
160 |
Library for communication with dive computers from various manufacturers. |
161 |
</longdescription> |
162 |
- <use> |
163 |
- <flag name="tools">Install tools that can be used to test the library.</flag> |
164 |
- </use> |
165 |
</pkgmetadata> |