1 |
commit: 62e0925ef3d5cd8072258cbfac969c1bef054982 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 19 15:49:33 2015 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 19 15:59:32 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62e0925e |
7 |
|
8 |
dev-embedded/libftdi: Fix version in pkg-config file with USE=-doc |
9 |
|
10 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
11 |
|
12 |
.../libftdi/files/libftdi-0.20-cmake-version.patch | 38 ++++++++++++++++++++++ |
13 |
dev-embedded/libftdi/libftdi-0.20.ebuild | 2 +- |
14 |
2 files changed, 39 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-embedded/libftdi/files/libftdi-0.20-cmake-version.patch b/dev-embedded/libftdi/files/libftdi-0.20-cmake-version.patch |
17 |
new file mode 100644 |
18 |
index 0000000..1be51da |
19 |
--- /dev/null |
20 |
+++ b/dev-embedded/libftdi/files/libftdi-0.20-cmake-version.patch |
21 |
@@ -0,0 +1,38 @@ |
22 |
+From e18b700743217e8c505e97762e0f66a4f6a90425 Mon Sep 17 00:00:00 2001 |
23 |
+From: Maciej Grela <maciej.grela@×××××.com> |
24 |
+Date: Wed, 20 Jun 2012 23:08:50 +0200 |
25 |
+Subject: [PATCH] Fix libftdi.pc file generation when building with |
26 |
+ -DDOCUMENTATION=OFF |
27 |
+ |
28 |
+--- |
29 |
+ CMakeLists.txt | 5 +++-- |
30 |
+ 1 file changed, 3 insertions(+), 2 deletions(-) |
31 |
+ |
32 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
33 |
+index 4c43a48..07f8bb9 100644 |
34 |
+--- a/CMakeLists.txt |
35 |
++++ b/CMakeLists.txt |
36 |
+@@ -2,7 +2,9 @@ |
37 |
+ project(libftdi) |
38 |
+ set(MAJOR_VERSION 0) |
39 |
+ set(MINOR_VERSION 20) |
40 |
++set(PACKAGE libftdi) |
41 |
+ set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}) |
42 |
++set(VERSION ${VERSION_STRING}) |
43 |
+ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") |
44 |
+ |
45 |
+ # CMake |
46 |
+@@ -116,12 +118,11 @@ add_custom_target(dist |
47 |
+ |
48 |
+ option(DOCUMENTATION "Generate API documentation with Doxygen" ON) |
49 |
+ |
50 |
++ |
51 |
+ find_package(Doxygen) |
52 |
+ if(DOCUMENTATION AND DOXYGEN_FOUND) |
53 |
+ |
54 |
+ # Set variables |
55 |
+- set(PACKAGE libftdi) |
56 |
+- set(VERSION ${VERSION_STRING}) |
57 |
+ set(top_srcdir ${CMAKE_SOURCE_DIR}) |
58 |
+ |
59 |
+ # Find doxy config |
60 |
|
61 |
diff --git a/dev-embedded/libftdi/libftdi-0.20.ebuild b/dev-embedded/libftdi/libftdi-0.20.ebuild |
62 |
index acc14c0..fe3eab8 100644 |
63 |
--- a/dev-embedded/libftdi/libftdi-0.20.ebuild |
64 |
+++ b/dev-embedded/libftdi/libftdi-0.20.ebuild |
65 |
@@ -35,7 +35,7 @@ src_prepare() { |
66 |
-e '/SET(LIB_SUFFIX /d' \ |
67 |
CMakeLists.txt || die |
68 |
|
69 |
- epatch "${FILESDIR}"/${P}-cmake-include.patch |
70 |
+ epatch "${FILESDIR}"/${P}-cmake-{include,version}.patch |
71 |
} |
72 |
|
73 |
src_configure() { |