summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Reffett <creffett@gentoo.org>2012-12-14 17:04:45 +0000
committerChris Reffett <creffett@gentoo.org>2012-12-14 17:04:45 +0000
commit7b2f30323dd00a5dd8de16ff2962ff05f79f251b (patch)
treea4b2acdc5f0d250da967d762b96d998959831ade /dev-util
parentVersion bumps. Tests are not in tar ball anymore. Might have to re-apply patc... (diff)
downloadhistorical-7b2f30323dd00a5dd8de16ff2962ff05f79f251b.tar.gz
historical-7b2f30323dd00a5dd8de16ff2962ff05f79f251b.tar.bz2
historical-7b2f30323dd00a5dd8de16ff2962ff05f79f251b.zip
New package, test dependency of csync
Package-Manager: portage-2.2.0_alpha147/cvs/Linux x86_64 Manifest-Sign-Key: 0x42618354
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/cmocka/ChangeLog11
-rw-r--r--dev-util/cmocka/Manifest15
-rw-r--r--dev-util/cmocka/cmocka-0.2.0_p20121129.ebuild44
-rw-r--r--dev-util/cmocka/files/cmocka-automagicness.patch74
-rw-r--r--dev-util/cmocka/metadata.xml9
5 files changed, 153 insertions, 0 deletions
diff --git a/dev-util/cmocka/ChangeLog b/dev-util/cmocka/ChangeLog
new file mode 100644
index 000000000000..0a081b96fae6
--- /dev/null
+++ b/dev-util/cmocka/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-util/cmocka
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cmocka/ChangeLog,v 1.1 2012/12/14 17:04:36 creffett Exp $
+
+*cmocka-0.2.0_p20121129 (14 Dec 2012)
+*cmocka-9999 (14 Dec 2012)
+
+ 14 Dec 2012; Chris Reffett <creffett@gentoo.org>
+ +cmocka-0.2.0_p20121129.ebuild, +cmocka-9999.ebuild,
+ +files/cmocka-automagicness.patch, +metadata.xml:
+ New package, test dependency of csync
diff --git a/dev-util/cmocka/Manifest b/dev-util/cmocka/Manifest
new file mode 100644
index 000000000000..8b299d29e347
--- /dev/null
+++ b/dev-util/cmocka/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX cmocka-automagicness.patch 2650 SHA256 dc70249408171c380cade877cce7cb17d54c3c7001a5ea4dc22805a919bc1c88 SHA512 bb86ff95619031fea85cc4ecebdce757a2bf0bf14c5daca355f3ce0b25c7761183f23f627bbc75d4a49368b9ac60c026cdd65bf368b96999e7d16b8db1f3d9d7 WHIRLPOOL 928f522fe34cfceb5b9a2f94b1a0088d0f5d4742fa9c7c262d1eae9ad5a16b62af894ce092aa49df8f52711d0849faf4df598c50bd780271756dd46900fd1cfa
+DIST cmocka-0.2.0_p20121129.tar.xz 61388 SHA256 87d67349ca0f79e37137d7b3a094eef1ce59868ecce37356fae67e5ce91eb983 SHA512 83f5f0e4f8a3b4677c4dc3742267a05a4b55f66e394fa04e5c33a078be48285f606dcc29793c9a1273a14dbb63b068f41c93664c6bd78073f8d5240985abf30f WHIRLPOOL 73e5d268e68721414df74cc7d1c22ca7c47d4c699a7df63dd88cecc0556641961b10064b4a7f5e6d353b746e85bcbd74ee5fd7da606c42fe8fc1720b01d60e4b
+EBUILD cmocka-0.2.0_p20121129.ebuild 1042 SHA256 236bad5444938936e5bdd6a6786bcb558e279e9226731d0868f03580fee61dc8 SHA512 7a683645c1879fff6ea8630c77830291064795c3f6305935cb857e18e7b9b7258983f0a209048f147d6edd73d04f746dfd4c8dcc717a145f853b97664dea45c1 WHIRLPOOL 148faa05857036e0411789227632fcdc5e3ff9b7569fdef355d0495b3ef689cf16026325e769fff3e2937e5cdb6ccfcf56124c02d00ab364bbf818854a6f13f5
+MISC ChangeLog 469 SHA256 2500e9b2b9cbaa523148c967b68605e2f532523d94115efa41291ced0e3d099f SHA512 1e23ebec4b35bb5241e67fd19bfe3ba948a81aa23759333165a58ce2122391684b1ffe0de60626c8f3999e37b27ac9a7361781455b065b26381f8ee98baa9a9e WHIRLPOOL e2267521ce8c7e2ce86641d6adfdfa7ca9d52a0338d58d35a8032784ae21de03b3943feab13033af4a467403ab4675dd33633f16e9ec6183713ea9e961a260ef
+MISC metadata.xml 261 SHA256 82c6fb7616f40524286de904eba1a8242d272b12657237f25e72832337c555f1 SHA512 8ea013ad4660d28f51824cf2165076bc712e372df1f5668c4335d3fef06291e6975223b6f8b7a6c1bb66e8bb8e695350d43fcb9123530b30f5d9ee185c7c38ab WHIRLPOOL ed15b49ca2505b81be3c2196e8997c4d49e6d626989873f9f57f96b9cf1ef9623591559509473c7e1febb246ab7f7659bbce0f78020c9a862e3013eda3ae431b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iEYEAREIAAYFAlDLXCYACgkQ23laikJhg1RSdwCgqCVUqCIHx+zpgJ0+TC9dAV2O
+WyoAn3ESbYqT4mAEarFIBCOBVyzNd8Ux
+=RuxG
+-----END PGP SIGNATURE-----
diff --git a/dev-util/cmocka/cmocka-0.2.0_p20121129.ebuild b/dev-util/cmocka/cmocka-0.2.0_p20121129.ebuild
new file mode 100644
index 000000000000..dfc0e6e26860
--- /dev/null
+++ b/dev-util/cmocka/cmocka-0.2.0_p20121129.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/cmocka/cmocka-0.2.0_p20121129.ebuild,v 1.1 2012/12/14 17:04:36 creffett Exp $
+
+EAPI=4
+
+inherit cmake-utils
+DESCRIPTION="The lightweight C unit testing library"
+HOMEPAGE="https://open.cryptomilk.org/projects/cmocka"
+SRC_URI="http://dev.gentoo.org/~creffett/distfiles/${P}.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs"
+
+DEPEND="
+ doc? ( app-doc/doxygen[latex] )
+"
+RDEPEND=""
+
+PATCHES=( "${FILESDIR}/${PN}-automagicness.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with static-libs STATIC_LIB)
+ $(cmake-utils_use test UNIT_TESTING)
+ $(cmake-utils_use_with doc APIDOC)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ if use doc; then
+ pushd ${BUILD_DIR}/doc/
+ doxygen doxy.config
+ rm html/*.md5 latex/*.md5 latex/Manifest man/man3/_*
+ dohtml html/*
+ dodoc latex/*
+ doman man/man3/*.3
+ popd
+ fi
+ cmake-utils_src_install
+}
diff --git a/dev-util/cmocka/files/cmocka-automagicness.patch b/dev-util/cmocka/files/cmocka-automagicness.patch
new file mode 100644
index 000000000000..29ece4563214
--- /dev/null
+++ b/dev-util/cmocka/files/cmocka-automagicness.patch
@@ -0,0 +1,74 @@
+--- a/cmake/Modules/MacroOptionalFindPackage.cmake
++++ b/cmake/Modules/MacroOptionalFindPackage.cmake
+@@ -0,0 +1,48 @@
++# - MACRO_OPTIONAL_FIND_PACKAGE() combines FIND_PACKAGE() with an OPTION()
++# MACRO_OPTIONAL_FIND_PACKAGE( <name> [QUIT] )
++# This macro is a combination of OPTION() and FIND_PACKAGE(), it
++# works like FIND_PACKAGE(), but additionally it automatically creates
++# an option name WITH_<name>, which can be disabled via the cmake GUI.
++# or via -DWITH_<name>=OFF
++# The standard <name>_FOUND variables can be used in the same way
++# as when using the normal FIND_PACKAGE()
++
++# Copyright (c) 2006-2010 Alexander Neundorf, <neundorf@kde.org>
++#
++# Redistribution and use is allowed according to the terms of the BSD license.
++# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
++
++# This is just a helper macro to set a bunch of variables empty.
++# We don't know whether the package uses UPPERCASENAME or CamelCaseName, so we try both:
++macro(_MOFP_SET_EMPTY_IF_DEFINED _name _var)
++ if(DEFINED ${_name}_${_var})
++ set(${_name}_${_var} "")
++ endif(DEFINED ${_name}_${_var})
++
++ string(TOUPPER ${_name} _nameUpper)
++ if(DEFINED ${_nameUpper}_${_var})
++ set(${_nameUpper}_${_var} "")
++ endif(DEFINED ${_nameUpper}_${_var})
++endmacro(_MOFP_SET_EMPTY_IF_DEFINED _package _var)
++
++
++macro (MACRO_OPTIONAL_FIND_PACKAGE _name )
++ option(WITH_${_name} "Search for ${_name} package" ON)
++ if (WITH_${_name})
++ find_package(${_name} ${ARGN})
++ else (WITH_${_name})
++ string(TOUPPER ${_name} _nameUpper)
++ set(${_name}_FOUND FALSE)
++ set(${_nameUpper}_FOUND FALSE)
++
++ _mofp_set_empty_if_defined(${_name} INCLUDE_DIRS)
++ _mofp_set_empty_if_defined(${_name} INCLUDE_DIR)
++ _mofp_set_empty_if_defined(${_name} INCLUDES)
++ _mofp_set_empty_if_defined(${_name} LIBRARY)
++ _mofp_set_empty_if_defined(${_name} LIBRARIES)
++ _mofp_set_empty_if_defined(${_name} LIBS)
++ _mofp_set_empty_if_defined(${_name} FLAGS)
++ _mofp_set_empty_if_defined(${_name} DEFINITIONS)
++ endif (WITH_${_name})
++endmacro (MACRO_OPTIONAL_FIND_PACKAGE)
++
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -34,7 +34,7 @@
+ include(DefineInstallationPaths)
+ include(DefineOptions.cmake)
+ include(CPackConfig.cmake)
+-
++include(MacroOptionalFindPackage)
+ if (UNIT_TESTING)
+ include(AddCMockaTest)
+ endif (UNIT_TESTING)
+--- a/doc/CMakeLists.txt
++++ b/doc/CMakeLists.txt
+@@ -1,5 +1,7 @@
+ #
+ # Build the documentation
+ #
+-include(UseDoxygen OPTIONAL)
+-
++option(WITH_APIDOC "Use doxygen to generate documentation" ON)
++if (WITH_APIDOC)
++ include(UseDoxygen OPTIONAL)
++endif (WITH_APIDOC)
diff --git a/dev-util/cmocka/metadata.xml b/dev-util/cmocka/metadata.xml
new file mode 100644
index 000000000000..f017c1146cff
--- /dev/null
+++ b/dev-util/cmocka/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kde</herd>
+<maintainer>
+ <email>creffett@gentoo.org</email>
+ <name>Chris Reffett</name>
+</maintainer>
+</pkgmetadata>