diff options
author | Chris Reffett <creffett@gentoo.org> | 2013-06-22 21:30:54 +0000 |
---|---|---|
committer | Chris Reffett <creffett@gentoo.org> | 2013-06-22 21:30:54 +0000 |
commit | 66f33820f3d8b6c59568a2b65df258ffc90983ad (patch) | |
tree | ae7a446b483ac47eb73854e096ba093e2fa03bfe /kde-misc | |
parent | Version bump to 3.10_rc7 (diff) | |
download | gentoo-2-66f33820f3d8b6c59568a2b65df258ffc90983ad.tar.gz gentoo-2-66f33820f3d8b6c59568a2b65df258ffc90983ad.tar.bz2 gentoo-2-66f33820f3d8b6c59568a2b65df258ffc90983ad.zip |
Add from kde overlay, clean up, add patch to handle test automagicness
(Portage version: 2.2.0_alpha183/cvs/Linux x86_64, signed Manifest commit with key 42618354)
Diffstat (limited to 'kde-misc')
-rw-r--r-- | kde-misc/socket-sentry/ChangeLog | 10 | ||||
-rw-r--r-- | kde-misc/socket-sentry/files/socket-sentry-0.9.3-automagictests.patch | 20 | ||||
-rw-r--r-- | kde-misc/socket-sentry/metadata.xml | 5 | ||||
-rw-r--r-- | kde-misc/socket-sentry/socket-sentry-0.9.3.ebuild | 37 |
4 files changed, 72 insertions, 0 deletions
diff --git a/kde-misc/socket-sentry/ChangeLog b/kde-misc/socket-sentry/ChangeLog new file mode 100644 index 000000000000..972a5d97ce80 --- /dev/null +++ b/kde-misc/socket-sentry/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for kde-misc/socket-sentry +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/kde-misc/socket-sentry/ChangeLog,v 1.1 2013/06/22 21:30:54 creffett Exp $ + +*socket-sentry-0.9.3 (22 Jun 2013) + + 22 Jun 2013; Chris Reffett <creffett@gentoo.org> + +files/socket-sentry-0.9.3-automagictests.patch, +metadata.xml, + +socket-sentry-0.9.3.ebuild: + Add from kde overlay, clean up, add patch to handle test automagicness diff --git a/kde-misc/socket-sentry/files/socket-sentry-0.9.3-automagictests.patch b/kde-misc/socket-sentry/files/socket-sentry-0.9.3-automagictests.patch new file mode 100644 index 000000000000..050e7b2efd25 --- /dev/null +++ b/kde-misc/socket-sentry/files/socket-sentry-0.9.3-automagictests.patch @@ -0,0 +1,20 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,7 +42,7 @@ + # The link libraries should contain the code under test. The TEST_SUPPORT_LIBS are also linked + # automatically. + function (add_qtestlib_tests test_source_files) +- if (DEFINED TEST_SUPPORT_LIBS) ++ if (DEFINED TEST_SUPPORT_LIBS AND WITH_TESTS) + foreach(test_file_src ${test_source_files}) + get_filename_component(test_file_path ${test_file_src} PATH) + get_filename_component(test_file_base ${test_file_src} NAME_WE) +@@ -54,7 +54,7 @@ + target_link_libraries( ${test_exe} ${TEST_SUPPORT_LIBS} ${ARGN} ) + add_test(${test_file_base} ${EXECUTABLE_OUTPUT_PATH}/${test_exe} ) + endforeach(test_file_src) +- endif (DEFINED TEST_SUPPORT_LIBS) ++ endif (DEFINED TEST_SUPPORT_LIBS AND WITH_TESTS) + endfunction(add_qtestlib_tests) + + add_subdirectory (socketsentry-service) diff --git a/kde-misc/socket-sentry/metadata.xml b/kde-misc/socket-sentry/metadata.xml new file mode 100644 index 000000000000..8d1e86a9cefb --- /dev/null +++ b/kde-misc/socket-sentry/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>kde</herd> +</pkgmetadata> diff --git a/kde-misc/socket-sentry/socket-sentry-0.9.3.ebuild b/kde-misc/socket-sentry/socket-sentry-0.9.3.ebuild new file mode 100644 index 000000000000..19bbcdd1ff43 --- /dev/null +++ b/kde-misc/socket-sentry/socket-sentry-0.9.3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-misc/socket-sentry/socket-sentry-0.9.3.ebuild,v 1.1 2013/06/22 21:30:54 creffett Exp $ + +EAPI=5 + +inherit kde4-base + +MY_PN="socketsentry" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A KDE plasmoid that displays real-time network traffic on your Linux computer." +HOMEPAGE="http://code.google.com/p/socket-sentry" +SRC_URI="http://socket-sentry.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-3+" +KEYWORDS="~amd64 ~x86" +SLOT="4" +IUSE="debug test" + +RDEPEND=" + >=net-libs/libpcap-0.8 +" +DEPEND="${RDEPEND} + test? ( dev-cpp/gmock dev-cpp/gtest ) +" + +PATCHES=( "${FILESDIR}/${PN}-0.9.3-automagictests.patch" ) + +S="${WORKDIR}/${MY_P}" + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_with test TESTS) + ) + cmake-utils_src_configure +} |