commit:     ee264810b823158ca41fba8af45445bd9162d057
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 22 17:55:10 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Apr 22 18:07:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee264810

dev-libs/libical: add 3.0.18

Closes: https://bugs.gentoo.org/929417
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-libs/libical/Manifest              |   1 +
 dev-libs/libical/libical-3.0.18.ebuild | 113 +++++++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)

diff --git a/dev-libs/libical/Manifest b/dev-libs/libical/Manifest
index 2a93326acfaa..c7b0779ec931 100644
--- a/dev-libs/libical/Manifest
+++ b/dev-libs/libical/Manifest
@@ -1 +1,2 @@
 DIST libical-3.0.17.tar.gz 909125 BLAKE2B 
002eba515280c685db49d7f6781048ca4f86a22fb44a740b459fd8ae8f7dd669cb8a623df16e87913a397fc9b242d75c999e7aea26f09254982d77f1c9f87ac2
 SHA512 
11fbb4aba7503a3264b0efa30ad56aa923d31ec193bdb0b87b92bc88db9019fa670c8c9ee7998caa3a870e706446a58ead475f31bd703f0d2cb7aabf0f6a3aa7
+DIST libical-3.0.18.tar.gz 908948 BLAKE2B 
0d3a665bce64752bbb1d28afea708643e6f52f19d5e5eae576aac40b720661e5c9593ff1e5ae48ef9a6c1b54259a7848847817ae669bbc8ef6b34bf1c7d90ee6
 SHA512 
53ecf6c14a68d569dd11bfdeb1a072def847a14d189c6af16eab202e004350ee7d9488c6b63e9cb67889e8c2dec90643fef46aec143a915f28270d0752eaa9d5

diff --git a/dev-libs/libical/libical-3.0.18.ebuild 
b/dev-libs/libical/libical-3.0.18.ebuild
new file mode 100644
index 000000000000..09aa9244e951
--- /dev/null
+++ b/dev-libs/libical/libical-3.0.18.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..12} )
+VALA_USE_DEPEND="vapigen"
+inherit cmake python-any-r1 vala
+
+DESCRIPTION="Implementation of basic iCAL protocols"
+HOMEPAGE="https://github.com/libical/libical";
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz";
+
+LICENSE="|| ( MPL-2.0 LGPL-2.1 )"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="doc examples +glib +introspection static-libs test vala"
+
+REQUIRED_USE="introspection? ( glib ) vala? ( introspection )"
+
+RESTRICT="!test? ( test )"
+
+COMMON_DEPEND="
+       dev-libs/icu:=
+       glib? ( dev-libs/glib:2 )
+"
+DEPEND="${COMMON_DEPEND}
+       glib? ( dev-libs/libxml2:2 )
+"
+RDEPEND="${COMMON_DEPEND}
+       sys-libs/timezone-data
+"
+BDEPEND="
+       dev-lang/perl
+       virtual/pkgconfig
+       doc? (
+               app-text/doxygen[dot]
+               glib? ( dev-util/gtk-doc )
+       )
+       introspection? ( dev-libs/gobject-introspection )
+       test? (
+               ${PYTHON_DEPS}
+               glib? ( $(python_gen_any_dep 
'dev-python/pygobject:3[${PYTHON_USEDEP}]') )
+       )
+       vala? ( $(vala_depend) )
+"
+
+DOCS=(
+       AUTHORS README.md ReleaseNotes.txt TEST THANKS TODO
+       doc/{AddingOrModifyingComponents.txt,UsingLibical.md}
+)
+
+PATCHES=( "${FILESDIR}/${PN}-3.0.11-pkgconfig-libdir.patch" )
+
+python_check_deps() {
+       python_has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+       cmake_src_prepare
+       use vala && vala_setup
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_DISABLE_FIND_PACKAGE_BerkeleyDB=ON
+               -DICAL_BUILD_DOCS=$(usex doc)
+               -DLIBICAL_BUILD_EXAMPLES=$(use examples)
+               -DICAL_GLIB=$(usex glib)
+               -DGOBJECT_INTROSPECTION=$(usex introspection)
+               -DSHARED_ONLY=$(usex !static-libs)
+               -DLIBICAL_BUILD_TESTING=$(usex test)
+               -DICAL_GLIB_VAPI=$(usex vala)
+       )
+       if use vala; then
+               mycmakeargs+=(
+                       -DVALAC="${VALAC}"
+                       -DVAPIGEN="${VAPIGEN}"
+               )
+       fi
+       cmake_src_configure
+}
+
+src_compile() {
+       cmake_src_compile
+
+       if use doc; then
+               cmake_src_compile docs
+
+               HTML_DOCS=( "${BUILD_DIR}"/apidocs/html/. )
+       fi
+}
+
+src_test() {
+       local myctestargs=(
+               -E "(icalrecurtest|icalrecurtest-r)" # bug 660282
+       )
+
+       cmake_src_test
+}
+
+src_install() {
+       cmake_src_install
+
+       if use examples; then
+               rm examples/CMakeLists.txt || die
+               dodoc -r examples
+       fi
+}

Reply via email to