You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-libs/libkolab/libkolab-0.5.3.ebuild

47 lines
1006 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
VIRTUALX_REQUIRED="test"
inherit kde4-base multilib
DESCRIPTION="Advanced Kolab Object Handling Library"
HOMEPAGE="http://kolab.org"
SRC_URI="http://mirror.kolabsys.com/pub/releases/${P}.tar.gz"
LICENSE="LGPL-2+ LGPL-2.1+ LGPL-3+"
SLOT="4"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="php python test"
# Tests fail, last checked 0.5.3
RESTRICT="test"
DEPEND="
$(add_kdeapps_dep kdepimlibs 'semantic-desktop(+)')
dev-lang/swig
>=net-libs/libkolabxml-1.0.0
php? ( dev-lang/php )
python? ( dev-lang/python )
"
RDEPEND="${DEPEND}"
src_prepare() {
# not installed by upstream
sed -e "/add_subdirectory(utils)/d" -i CMakeLists.txt || die
kde4-base_src_prepare
}
src_configure() {
local mycmakeargs=(
-DLIB_INSTALL_DIR=$(get_libdir)
$(cmake-utils_use test BUILD_TESTS)
$(cmake-utils_use python PYTHON_BINDINGS)
$(cmake-utils_use php PHP_BINDINGS)
)
kde4-base_src_configure
}