diff options
author | Alexander Tsoy <alexander@tsoy.me> | 2017-12-19 18:14:02 +0300 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-12-21 21:41:57 +0100 |
commit | d19987701b8b988b2c2e6ee716339479ad8592f1 (patch) | |
tree | 951f3883b46b5579e4629cdb447fd2f304a958d1 /dev-libs/libical/libical-2.0.0-r3.ebuild | |
parent | net-firewall/arno-iptables-firewall: regenerate Manifest file. (diff) | |
download | gentoo-d19987701b8b988b2c2e6ee716339479ad8592f1.tar.gz gentoo-d19987701b8b988b2c2e6ee716339479ad8592f1.tar.bz2 gentoo-d19987701b8b988b2c2e6ee716339479ad8592f1.zip |
dev-libs/libical: fix libical.pc to prevent overlinking
Move pthread and ICU libs to *.private sections in libical.pc. Also
fixes absolute paths to ICU libraries.
Closes: https://bugs.gentoo.org/599244
Closes: https://github.com/gentoo/gentoo/pull/6582
Diffstat (limited to 'dev-libs/libical/libical-2.0.0-r3.ebuild')
-rw-r--r-- | dev-libs/libical/libical-2.0.0-r3.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/libical/libical-2.0.0-r3.ebuild b/dev-libs/libical/libical-2.0.0-r3.ebuild new file mode 100644 index 000000000000..d3d88590688d --- /dev/null +++ b/dev-libs/libical/libical-2.0.0-r3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="An implementation of basic iCAL protocols" +HOMEPAGE="https://github.com/libical/libical" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( MPL-1.0 LGPL-2.1 )" +SLOT="0/2" +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" +IUSE="doc examples static-libs" + +# The GOBJECT_INTROSPECTION build is broken, and upstream has given up +# on it at the moment (it's disabled in Travis). It will probably come +# back in v2.0.1 or later. +# This snippet belongs to RDEPEND: +# introspection? ( dev-libs/gobject-introspection )" +RDEPEND="dev-libs/icu:=" +DEPEND="${RDEPEND} + dev-lang/perl" + +DOCS=( + AUTHORS ReadMe.txt ReleaseNotes.txt TEST THANKS TODO + doc/{AddingOrModifyingComponents,UsingLibical}.txt +) + +PATCHES=( + "${FILESDIR}/${P}-libical.pc-set-full-version.patch" + "${FILESDIR}/${P}-libical.pc-icu-remove-full-paths.patch" + "${FILESDIR}/${P}-libical.pc-icu-move-to-requires.patch" + "${FILESDIR}/${P}-libical.pc-fix-libdir-location.patch" +) + +src_configure() { + # See above, introspection is disabled for v2.0.0 at least. + #local mycmakeargs=( + # -DGOBJECT_INTROSPECTION=$(usex introspection true false) + #) + use static-libs || mycmakeargs+=( -DSHARED_ONLY=ON ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if use examples; then + rm examples/CMakeLists.txt || die + dodoc -r examples + fi +} |