1 |
commit: fca438d6d05126e7ff981a5dda43b53bbf37b835 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 27 18:08:49 2018 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 27 18:40:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fca438d6 |
7 |
|
8 |
dev-libs/openobex: fix version.h and docs |
9 |
|
10 |
- Fix version.h to contain valib version information, invalid one |
11 |
after switch to cmake cause bug 660400. |
12 |
- Build and install doxygen API docs correctly. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/660400 |
15 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
16 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
17 |
|
18 |
.../openobex/files/openobex-1.7.2-version.h.patch | 13 +++++++ |
19 |
dev-libs/openobex/openobex-1.7.2-r1.ebuild | 41 ++++++++++++++++++++++ |
20 |
2 files changed, 54 insertions(+) |
21 |
|
22 |
diff --git a/dev-libs/openobex/files/openobex-1.7.2-version.h.patch b/dev-libs/openobex/files/openobex-1.7.2-version.h.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..cfcf68595b4 |
25 |
--- /dev/null |
26 |
+++ b/dev-libs/openobex/files/openobex-1.7.2-version.h.patch |
27 |
@@ -0,0 +1,13 @@ |
28 |
+--- openobex-1.7.2-Source/include/openobex/version.h.in.orig 2013-07-21 21:27:14.000000000 +0400 |
29 |
++++ openobex-1.7.2-Source/include/openobex/version.h.in 2018-10-27 19:35:53.921795023 +0300 |
30 |
+@@ -1,6 +1,6 @@ |
31 |
+ |
32 |
+-#define OPENOBEX_VERSION "@VERSION@" |
33 |
++#define OPENOBEX_VERSION "@openobex_VERSION@" |
34 |
+ |
35 |
+-#define OPENOBEX_VERSION_MAJOR @VERSION_MAJOR@ |
36 |
+-#define OPENOBEX_VERSION_MINOR @VERSION_MINOR@ |
37 |
+-#define OPENOBEX_VERSION_PATCH @VERSION_PATCH@ |
38 |
++#define OPENOBEX_VERSION_MAJOR @openobex_VERSION_MAJOR@ |
39 |
++#define OPENOBEX_VERSION_MINOR @openobex_VERSION_MINOR@ |
40 |
++#define OPENOBEX_VERSION_PATCH @openobex_VERSION_PATCH@ |
41 |
|
42 |
diff --git a/dev-libs/openobex/openobex-1.7.2-r1.ebuild b/dev-libs/openobex/openobex-1.7.2-r1.ebuild |
43 |
new file mode 100644 |
44 |
index 00000000000..814f435076c |
45 |
--- /dev/null |
46 |
+++ b/dev-libs/openobex/openobex-1.7.2-r1.ebuild |
47 |
@@ -0,0 +1,41 @@ |
48 |
+# Copyright 1999-2018 Gentoo Authors |
49 |
+# Distributed under the terms of the GNU General Public License v2 |
50 |
+ |
51 |
+EAPI=6 |
52 |
+ |
53 |
+inherit cmake-utils udev |
54 |
+ |
55 |
+DESCRIPTION="Implementation of the OBEX protocol used for transferring data to mobile devices" |
56 |
+HOMEPAGE="https://sourceforge.net/projects/openobex/" |
57 |
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-Source.tar.gz" |
58 |
+ |
59 |
+LICENSE="GPL-2 LGPL-2.1" |
60 |
+SLOT="0/2" |
61 |
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
62 |
+IUSE="bluetooth doc irda usb" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ bluetooth? ( net-wireless/bluez:= ) |
66 |
+ usb? ( virtual/libusb:= )" |
67 |
+DEPEND="${RDEPEND} |
68 |
+ virtual/pkgconfig |
69 |
+ doc? ( app-doc/doxygen )" |
70 |
+ |
71 |
+S="${WORKDIR}/${P}-Source" |
72 |
+ |
73 |
+PATCHES=( "${FILESDIR}/${P}-version.h.patch" ) |
74 |
+DOCS=( AUTHORS ChangeLog README UPGRADING.txt ) |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local mycmakeargs=( |
78 |
+ -DBUILD_DOCUMENTATION=$(usex doc) |
79 |
+ -DOPENOBEX_BLUETOOTH=$(usex bluetooth) |
80 |
+ -DOPENOBEX_IRDA=$(usex irda) |
81 |
+ -DOPENOBEX_USB=$(usex usb) |
82 |
+ |
83 |
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" |
84 |
+ -DCMAKE_INSTALL_UDEVRULESDIR="$(get_udevdir)/rules.d" |
85 |
+ ) |
86 |
+ |
87 |
+ cmake-utils_src_configure |
88 |
+} |