diff options
author | Johannes Huber <johu@gentoo.org> | 2013-10-15 22:28:40 +0000 |
---|---|---|
committer | Johannes Huber <johu@gentoo.org> | 2013-10-15 22:28:40 +0000 |
commit | 9e31e7cbaca7f3b0daf09b63b134967b68392824 (patch) | |
tree | 25b110e93d1ca0f935546a0b05ea0a929c553fca | |
parent | New package. Import from kde overlay, Qt modemmanager abstraction library. Wi... (diff) | |
download | gentoo-2-9e31e7cbaca7f3b0daf09b63b134967b68392824.tar.gz gentoo-2-9e31e7cbaca7f3b0daf09b63b134967b68392824.tar.bz2 gentoo-2-9e31e7cbaca7f3b0daf09b63b134967b68392824.zip |
New package. Import from kde overlay, Qt networkmanager abstraction library. Will be required for kde-misc/plasma-nm.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)
-rw-r--r-- | net-libs/libnm-qt/ChangeLog | 11 | ||||
-rw-r--r-- | net-libs/libnm-qt/files/libnm-qt-0.9.0.1-tests-optional.patch | 20 | ||||
-rw-r--r-- | net-libs/libnm-qt/libnm-qt-0.9.0.1.ebuild | 55 | ||||
-rw-r--r-- | net-libs/libnm-qt/metadata.xml | 8 |
4 files changed, 94 insertions, 0 deletions
diff --git a/net-libs/libnm-qt/ChangeLog b/net-libs/libnm-qt/ChangeLog new file mode 100644 index 000000000000..d0a6b476ab62 --- /dev/null +++ b/net-libs/libnm-qt/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-libs/libnm-qt +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libnm-qt/ChangeLog,v 1.1 2013/10/15 22:28:39 johu Exp $ + +*libnm-qt-0.9.0.1 (15 Oct 2013) + + 15 Oct 2013; Johannes Huber <johu@gentoo.org> +libnm-qt-0.9.0.1.ebuild, + +files/libnm-qt-0.9.0.1-tests-optional.patch, +metadata.xml: + New package. Import from kde overlay, Qt networkmanager abstraction library. + Will be required for kde-misc/plasma-nm. + diff --git a/net-libs/libnm-qt/files/libnm-qt-0.9.0.1-tests-optional.patch b/net-libs/libnm-qt/files/libnm-qt-0.9.0.1-tests-optional.patch new file mode 100644 index 000000000000..581680808aae --- /dev/null +++ b/net-libs/libnm-qt/files/libnm-qt-0.9.0.1-tests-optional.patch @@ -0,0 +1,20 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3f76283..cc05451 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -50,8 +50,13 @@ if (BUILD_EXAMPLES) + add_subdirectory(examples) + endif(BUILD_EXAMPLES) + +-enable_testing(true) +-add_subdirectory(tests) ++option(DISABLE_TESTING "Disable unit tests" FALSE) ++if (DISABLE_TESTING) ++ message(STATUS "Disabling unit tests") ++else() ++ enable_testing(true) ++ add_subdirectory(tests) ++endif() + + set(NetworkManagerQt_HEADERS + accesspoint.h diff --git a/net-libs/libnm-qt/libnm-qt-0.9.0.1.ebuild b/net-libs/libnm-qt/libnm-qt-0.9.0.1.ebuild new file mode 100644 index 000000000000..9ff8746e4263 --- /dev/null +++ b/net-libs/libnm-qt/libnm-qt-0.9.0.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libnm-qt/libnm-qt-0.9.0.1.ebuild,v 1.1 2013/10/15 22:28:39 johu Exp $ + +EAPI=5 + +KDE_REQUIRED="never" +inherit kde4-base + +if [[ ${KDE_BUILD_TYPE} != live ]]; then + KEYWORDS="~amd64 ~x86" + SRC_URI="mirror://kde/unstable/networkmanager-qt/${PV}/src/${P}.tar.xz" +else + KEYWORDS="" +fi + +DESCRIPTION="NetworkManager bindings for Qt" +HOMEPAGE="https://projects.kde.org/projects/extragear/libs/libnm-qt" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="debug doc modemmanager test" + +RDEPEND=" + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + net-misc/mobile-broadband-provider-info + >=net-misc/networkmanager-0.9.8.0 + modemmanager? ( net-libs/libmm-qt ) +" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) +" + +PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" ) + +src_configure() { + local mycmakeargs=( + -DBUILD_EXAMPLES=OFF + $(cmake-utils_use_find_package doc Doxygen) + $(cmake-utils_use !modemmanager DISABLE_MODEMMANAGERQT) + $(cmake-utils_use !test DISABLE_TESTING) + ) + + kde4-base_src_configure +} + +src_install() { + if use doc; then + { cd "${BUILD_DIR}" && doxygen; } || die "Generating documentation failed" + HTML_DOCS=( "${BUILD_DIR}/doc/html/" ) + fi + + cmake-utils_src_install +} diff --git a/net-libs/libnm-qt/metadata.xml b/net-libs/libnm-qt/metadata.xml new file mode 100644 index 000000000000..c5ae96e2c633 --- /dev/null +++ b/net-libs/libnm-qt/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>kde</herd> + <use> + <flag name="modemmanager">Enable support for mobile broadband devices</flag> + </use> +</pkgmetadata> |