diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-03-08 17:59:17 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-03-08 19:22:37 +0100 |
commit | 0f142a4a371f72fdb2ff6ef31029bd325f83e135 (patch) | |
tree | d4aeba1e001576d80b870861dd6be71f1b90d3aa /dev-libs/libical/libical-3.0.8.ebuild | |
parent | acct-user/icinga: fix uid of icinga user (diff) | |
download | gentoo-0f142a4a371f72fdb2ff6ef31029bd325f83e135.tar.gz gentoo-0f142a4a371f72fdb2ff6ef31029bd325f83e135.tar.bz2 gentoo-0f142a4a371f72fdb2ff6ef31029bd325f83e135.zip |
dev-libs/libical: 3.0.8 version bump, add USE glib
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/libical/libical-3.0.8.ebuild')
-rw-r--r-- | dev-libs/libical/libical-3.0.8.ebuild | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/dev-libs/libical/libical-3.0.8.ebuild b/dev-libs/libical/libical-3.0.8.ebuild new file mode 100644 index 000000000000..ea328c4a2882 --- /dev/null +++ b/dev-libs/libical/libical-3.0.8.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +VALA_USE_DEPEND="vapigen" +inherit cmake python-any-r1 vala + +DESCRIPTION="An 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 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" +IUSE="berkdb doc examples +glib +introspection static-libs test vala" + +REQUIRED_USE="introspection? ( glib ) vala? ( introspection )" + +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-lang/perl + virtual/pkgconfig + doc? ( app-doc/doxygen ) + introspection? ( dev-libs/gobject-introspection ) + test? ( ${PYTHON_DEPS} ) + vala? ( $(vala_depend) ) +" +COMMON_DEPEND=" + dev-libs/icu:= + berkdb? ( sys-libs/db:= ) + glib? ( dev-libs/glib:2 ) +" +DEPEND="${COMMON_DEPEND} + glib? ( dev-libs/libxml2:2 ) +" +RDEPEND="${COMMON_DEPEND} + sys-libs/timezone-data +" + +DOCS=( + AUTHORS ReadMe.txt ReleaseNotes.txt TEST THANKS TODO + doc/{AddingOrModifyingComponents,UsingLibical}.txt +) + +PATCHES=( + "${FILESDIR}/${PN}-3.0.4-tests.patch" + "${FILESDIR}/${PN}-3.0.5-pkgconfig-libdir.patch" +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + use examples || cmake_comment_add_subdirectory examples + use vala && vala_src_prepare +} + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package berkdb BDB) + -DICAL_BUILD_DOCS=$(usex doc) + -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 + use doc && cmake_src_compile docs +} + +src_test() { + local myctestargs=( + -E "(icalrecurtest|icalrecurtest-r)" # bug 660282 + ) + + cmake_src_test +} + +src_install() { + use doc && HTML_DOCS=( "${BUILD_DIR}"/apidocs/html/. ) + + cmake_src_install + + if use examples; then + rm examples/CMakeLists.txt || die + dodoc -r examples + fi +} |