1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools eutils
8 DESCRIPTION="Utility functions for OsmocomBB, OpenBSC and related projects"
9 HOMEPAGE="http://bb.osmocom.org/trac/wiki/libosmocore"
11 if [[ ${PV} == 9999* ]]; then
13 EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
16 SRC_URI="http://cgit.osmocom.org/cgit/libosmocore/snapshot/${P}.tar.bz2"
17 KEYWORDS="~amd64 ~arm ~x86"
20 LICENSE="GPL-2 LGPL-3"
22 IUSE="embedded pcsc-lite"
24 RDEPEND="embedded? ( sys-libs/talloc )
25 pcsc-lite? ( sys-apps/pcsc-lite )"
30 # set correct version in pkgconfig files
31 sed -i "s/UNKNOWN/${PV}/" git-version-gen || die
33 epatch "${FILESDIR}"/${PN}-0.6.0-automake-1.13.patch
39 $(use_enable embedded) \
40 $(use_enable pcsc-lite pcsc)
45 # install to correct documentation directory
46 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die