1 |
commit: f14d0642edab40e1cd9edb198cffdcb3269e8312 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 29 11:57:52 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 29 12:31:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f14d0642 |
7 |
|
8 |
dev-libs/libical: 3.0.3 version bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/656268 |
11 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
12 |
|
13 |
dev-libs/libical/Manifest | 1 + |
14 |
.../files/libical-3.0.3-findicu-pkgconfig.patch | 58 ++++++++++++++ |
15 |
dev-libs/libical/libical-3.0.3.ebuild | 90 ++++++++++++++++++++++ |
16 |
profiles/package.mask | 1 + |
17 |
4 files changed, 150 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/libical/Manifest b/dev-libs/libical/Manifest |
20 |
index a2afb89f3ca..b13528285d1 100644 |
21 |
--- a/dev-libs/libical/Manifest |
22 |
+++ b/dev-libs/libical/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST libical-2.0.0.tar.gz 699099 BLAKE2B 81c1a12faf4436d1edee4ab3f080137135c2ec7ae05efeee70696b89f2122b8f8ff92f78b6ec5e017d31841adb796d467204c299335743a6a8c15eca667b8182 SHA512 0b80f9aa40e0a485371b5949152c10d7fffb6e0dfe8c2aabc3c6e4e97ba0cdd465ae7093343245be60173bc7b24e80e919c0c0e199ff0bb2b14ed94af7087c4f |
25 |
DIST libical-3.0.1.tar.gz 865208 BLAKE2B c03fb922bbd8b86f30ab61c83ba81281ba42aee1f6655cc1b7b03af14afc77ca8b341a666f65d5ef8db771ec9e6242a987074ea98bdea1b4134885e9a529d808 SHA512 764e4f1bdb5f5b8c3e121057f475c7eca7acf5c514ac2c2527ae0ad93cd30a1c809a9e2107be2957247223f1f2936842999579c96ca19cd58b84571a29638091 |
26 |
+DIST libical-3.0.3.tar.gz 866624 BLAKE2B 6d7c11aeb80dbd6b72001484a0ad89ff9b0f892c9400cec3f0d131d1edbabdafa8ef9717d1fed92c4999ba0934e8676e5cc58ebb3cb74fdbb8e5f5c816cc97bb SHA512 319a9e02b34835eb222728cb691b18e4f490b21f7faa55d266f298c07dafb5e15a492fb2105e2c3ab6d60d2affcf430b5b248cc38abc1e3bc29143662676fe70 |
27 |
|
28 |
diff --git a/dev-libs/libical/files/libical-3.0.3-findicu-pkgconfig.patch b/dev-libs/libical/files/libical-3.0.3-findicu-pkgconfig.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..7f0ffc4b428 |
31 |
--- /dev/null |
32 |
+++ b/dev-libs/libical/files/libical-3.0.3-findicu-pkgconfig.patch |
33 |
@@ -0,0 +1,58 @@ |
34 |
+From 5c682db0dd1cfd7090dd191e89613ad5fb9fc078 Mon Sep 17 00:00:00 2001 |
35 |
+From: Allen Winter <allen.winter@××××.com> |
36 |
+Date: Sat, 26 May 2018 09:06:10 -0400 |
37 |
+Subject: [PATCH] cmake/modules/FindICU.cmake - allow pkgconfig to get is a |
38 |
+ hint |
39 |
+ |
40 |
+--- |
41 |
+ cmake/modules/FindICU.cmake | 13 ++++++------- |
42 |
+ 1 file changed, 6 insertions(+), 7 deletions(-) |
43 |
+ |
44 |
+diff --git a/cmake/modules/FindICU.cmake b/cmake/modules/FindICU.cmake |
45 |
+index 12a1812d..53213efe 100644 |
46 |
+--- a/cmake/modules/FindICU.cmake |
47 |
++++ b/cmake/modules/FindICU.cmake |
48 |
+@@ -23,16 +23,12 @@ if(WIN32) |
49 |
+ file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _program_FILES_DIR) |
50 |
+ endif() |
51 |
+ |
52 |
+-if(ICU_INCLUDE_DIR AND ICU_LIBRARY) |
53 |
+- # Already in cache, be silent |
54 |
+- set(ICU_FIND_QUIETLY TRUE) |
55 |
+-endif() |
56 |
+- |
57 |
+-#set the root from the ICU_BASE environment |
58 |
+ file(TO_NATIVE_PATH "$ENV{ICU_BASE}" icu_root) |
59 |
+-#override the root from ICU_BASE defined to cmake |
60 |
+ if(DEFINED ICU_BASE) |
61 |
+ file(TO_NATIVE_PATH "${ICU_BASE}" icu_root) |
62 |
++else() |
63 |
++ find_package(PkgConfig QUIET) |
64 |
++ pkg_check_modules(PC_LibICU QUIET icu-i18n) |
65 |
+ endif() |
66 |
+ |
67 |
+ # Look for the header file. |
68 |
+@@ -42,6 +38,7 @@ find_path( |
69 |
+ HINTS |
70 |
+ ${icu_root}/include |
71 |
+ ${_program_FILES_DIR}/icu/include |
72 |
++ ${PC_LibICU_INCLUDEDIR} |
73 |
+ /usr/local/opt/icu4c/include |
74 |
+ DOC "Include directory for the ICU library" |
75 |
+ ) |
76 |
+@@ -56,6 +53,7 @@ find_library( |
77 |
+ ${icu_root}/lib/ |
78 |
+ ${_program_FILES_DIR}/icu/lib64/ |
79 |
+ ${_program_FILES_DIR}/icu/lib/ |
80 |
++ ${PC_LibICU_LIBDIR} |
81 |
+ /usr/local/opt/icu4c/lib/ |
82 |
+ DOC "Libraries to link against for the common parts of ICU" |
83 |
+ ) |
84 |
+@@ -98,6 +96,7 @@ if(ICU_INCLUDE_DIR AND ICU_LIBRARY) |
85 |
+ HINTS |
86 |
+ ${icu_root}/lib/ |
87 |
+ ${_program_FILES_DIR}/icu/lib/ |
88 |
++ ${PC_LibICU_LIBDIR} |
89 |
+ /usr/local/opt/icu4c/lib/ |
90 |
+ DOC "Libraries to link against for ICU internationalization" |
91 |
+ ) |
92 |
|
93 |
diff --git a/dev-libs/libical/libical-3.0.3.ebuild b/dev-libs/libical/libical-3.0.3.ebuild |
94 |
new file mode 100644 |
95 |
index 00000000000..fe0236af8a4 |
96 |
--- /dev/null |
97 |
+++ b/dev-libs/libical/libical-3.0.3.ebuild |
98 |
@@ -0,0 +1,90 @@ |
99 |
+# Copyright 1999-2018 Gentoo Foundation |
100 |
+# Distributed under the terms of the GNU General Public License v2 |
101 |
+ |
102 |
+EAPI=6 |
103 |
+ |
104 |
+PYTHON_COMPAT=( python3_{4,5,6} ) |
105 |
+inherit cmake-utils python-any-r1 |
106 |
+ |
107 |
+DESCRIPTION="An implementation of basic iCAL protocols" |
108 |
+HOMEPAGE="https://github.com/libical/libical" |
109 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
110 |
+ |
111 |
+LICENSE="|| ( MPL-2.0 LGPL-2.1 )" |
112 |
+SLOT="0/3" |
113 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
114 |
+IUSE="berkdb doc examples static-libs test" |
115 |
+ |
116 |
+# TODO: disabled until useful |
117 |
+# glib? ( |
118 |
+# dev-libs/glib:2 |
119 |
+# dev-libs/libxml2:2 |
120 |
+# ) |
121 |
+# introspection? ( dev-libs/gobject-introspection:= ) |
122 |
+COMMON_DEPEND=" |
123 |
+ dev-libs/icu:= |
124 |
+ berkdb? ( sys-libs/db:= ) |
125 |
+" |
126 |
+DEPEND="${COMMON_DEPEND} |
127 |
+ dev-lang/perl |
128 |
+ virtual/pkgconfig |
129 |
+ doc? ( app-doc/doxygen ) |
130 |
+ test? ( ${PYTHON_DEPS} ) |
131 |
+" |
132 |
+RDEPEND="${COMMON_DEPEND} |
133 |
+ sys-libs/timezone-data |
134 |
+" |
135 |
+ |
136 |
+DOCS=( |
137 |
+ AUTHORS ReadMe.txt ReleaseNotes.txt TEST THANKS TODO |
138 |
+ doc/{AddingOrModifyingComponents,UsingLibical}.txt |
139 |
+) |
140 |
+ |
141 |
+PATCHES=( |
142 |
+ "${FILESDIR}/${PN}-3.0.1-pkgconfig-libdir.patch" |
143 |
+ "${FILESDIR}/${P}-findicu-pkgconfig.patch" |
144 |
+) |
145 |
+ |
146 |
+pkg_setup() { |
147 |
+ use test && python-any-r1_pkg_setup |
148 |
+} |
149 |
+ |
150 |
+src_prepare() { |
151 |
+ cmake-utils_src_prepare |
152 |
+ use examples || cmake_comment_add_subdirectory examples |
153 |
+} |
154 |
+ |
155 |
+src_configure() { |
156 |
+ local mycmakeargs=( |
157 |
+ -DICAL_GLIB=OFF |
158 |
+ -DGOBJECT_INTROSPECTION=OFF |
159 |
+ $(cmake-utils_use_find_package berkdb BDB) |
160 |
+ -DICAL_BUILD_DOCS=$(usex doc) |
161 |
+ -DSHARED_ONLY=$(usex !static-libs) |
162 |
+ ) |
163 |
+# TODO: disabled until useful |
164 |
+# -DICAL_GLIB=$(usex glib) |
165 |
+# -DGOBJECT_INTROSPECTION=$(usex introspection) |
166 |
+ cmake-utils_src_configure |
167 |
+} |
168 |
+ |
169 |
+src_compile() { |
170 |
+ cmake-utils_src_compile |
171 |
+ use doc && cmake-utils_src_compile docs |
172 |
+} |
173 |
+ |
174 |
+src_test() { |
175 |
+ local myctestargs=( -j1 ) |
176 |
+ cmake-utils_src_test |
177 |
+} |
178 |
+ |
179 |
+src_install() { |
180 |
+ use doc && HTML_DOCS=( "${BUILD_DIR}"/apidocs/html/. ) |
181 |
+ |
182 |
+ cmake-utils_src_install |
183 |
+ |
184 |
+ if use examples; then |
185 |
+ rm examples/CMakeLists.txt || die |
186 |
+ dodoc -r examples |
187 |
+ fi |
188 |
+} |
189 |
|
190 |
diff --git a/profiles/package.mask b/profiles/package.mask |
191 |
index cadd7cafe8f..cf0dc8345c6 100644 |
192 |
--- a/profiles/package.mask |
193 |
+++ b/profiles/package.mask |
194 |
@@ -453,6 +453,7 @@ media-fonts/fontawesome:0/5 |
195 |
# Andreas Sturmlechner <asturm@g.o> (21 Dec 2017) |
196 |
# Masked for testing |
197 |
=dev-libs/libical-3.0.1 |
198 |
+~dev-libs/libical-3.0.3 |
199 |
|
200 |
# James Le Cuirot <chewi@g.o> (17 Dec 2017) |
201 |
# Java 9 is not yet fully supported on Gentoo. Packages cannot depend |