1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="An implementation of basic iCAL protocols"
8 HOMEPAGE="https://github.com/libical/libical"
9 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11 LICENSE="|| ( MPL-1.0 LGPL-2.1 )"
13 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"
14 IUSE="doc examples static-libs"
16 # The GOBJECT_INTROSPECTION build is broken, and upstream has given up
17 # on it at the moment (it's disabled in Travis). It will probably come
18 # back in v2.0.1 or later.
19 # This snippet belongs to RDEPEND:
20 # introspection? ( dev-libs/gobject-introspection )"
21 RDEPEND="dev-libs/icu:="
26 AUTHORS ReadMe.txt ReleaseNotes.txt TEST THANKS TODO
27 doc/{AddingOrModifyingComponents,UsingLibical}.txt
30 PATCHES=( "${FILESDIR}/fix-libdir-location.patch" )
33 # See above, introspection is disabled for v2.0.0 at least.
35 # -DGOBJECT_INTROSPECTION=$(usex introspection true false)
37 use static-libs || mycmakeargs+=( -DSHARED_ONLY=ON )
38 cmake-utils_src_configure
42 cmake-utils_src_install
45 rm examples/CMakeLists.txt || die