From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 707AB139085 for ; Sun, 22 Jan 2017 21:01:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82FC023407C; Sun, 22 Jan 2017 21:01:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D1F623407B for ; Sun, 22 Jan 2017 21:01:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C7EEB341667 for ; Sun, 22 Jan 2017 21:01:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3E86C2CDA for ; Sun, 22 Jan 2017 21:01:33 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1485118728.2749083e16c416005352bc0634ca2690a0b44f34.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/device-atlas-api-c/files/, dev-libs/device-atlas-api-c/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/device-atlas-api-c/Manifest dev-libs/device-atlas-api-c/device-atlas-api-c-2.1.ebuild dev-libs/device-atlas-api-c/files/2.1-cmake-install.patch dev-libs/device-atlas-api-c/metadata.xml X-VCS-Directories: dev-libs/device-atlas-api-c/ dev-libs/device-atlas-api-c/files/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 2749083e16c416005352bc0634ca2690a0b44f34 X-VCS-Branch: master Date: Sun, 22 Jan 2017 21:01:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 66a947b5-8c11-4407-aa06-d939780f5c93 X-Archives-Hash: 6c16d437df634f3e9a42d21671ac4eba commit: 2749083e16c416005352bc0634ca2690a0b44f34 Author: Bertrand Jacquin jacquin bzh> AuthorDate: Wed Oct 5 23:45:51 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sun Jan 22 20:58:48 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2749083e dev-libs/device-atlas-api-c: API to detect devices based on the User-Agent HTTP header Package-Manager: portage-2.3.0 (cherry picked from commit b9475e94910837345e1ff1e426c0d573a23131aa) Signed-off-by: Robin H. Johnson gentoo.org> dev-libs/device-atlas-api-c/Manifest | 1 + .../device-atlas-api-c-2.1.ebuild | 51 ++++++++++++++++++++++ .../files/2.1-cmake-install.patch | 20 +++++++++ dev-libs/device-atlas-api-c/metadata.xml | 15 +++++++ 4 files changed, 87 insertions(+) diff --git a/dev-libs/device-atlas-api-c/Manifest b/dev-libs/device-atlas-api-c/Manifest new file mode 100644 index 00000000..8199f8e --- /dev/null +++ b/dev-libs/device-atlas-api-c/Manifest @@ -0,0 +1 @@ +DIST deviceatlas-enterprise-c-2.1.zip 504286 SHA256 a02fc29486d245b1c8d946c663b71ba981e88fee8d037f5bc1bf255deb287974 SHA512 99a8e89f3d1c084a93b184685108ea65d1fd925e0c8b52599a42dbe70af3126103da0a9fd284b14ddf59b996204334d360a12651025413bc4d7f76054779275b WHIRLPOOL 939733a58f352cbeee852ccfea3f2f022310ceb7363a15889d9a6366532102ee700271b6008e0a57ae4d86cafe6354409f9520105e46eaabb5c41f1a7827f1b4 diff --git a/dev-libs/device-atlas-api-c/device-atlas-api-c-2.1.ebuild b/dev-libs/device-atlas-api-c/device-atlas-api-c-2.1.ebuild new file mode 100644 index 00000000..f866a8d --- /dev/null +++ b/dev-libs/device-atlas-api-c/device-atlas-api-c-2.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit unpacker cmake-multilib + +MY_P="deviceatlas-enterprise-c-${PV}" + +DESCRIPTION="API to detect devices based on the User-Agent HTTP header" +HOMEPAGE="https://deviceatlas.com" +SRC_URI="${MY_P}.zip" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="doc examples" + +RDEPEND="dev-libs/libpcre[${MULTILIB_USEDEP}]" +DEPEND="app-arch/unzip + ${RDEPEND}" + +RESTRICT="fetch mirror bindist" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}/${PV}-cmake-install.patch" +) + +pkg_nofetch() { + eerror "Please go to https://deviceatlas.com/deviceatlas-haproxy-module" + eerror "And download DeviceAtlas C API" + eerror "Then place the file in ${DISTDIR}/${MY_P}.zip" +} + +multilib_src_install_all() { + if use doc ; then + local -a HTML_DOCS=( Documentation ) + fi + + if use examples ; then + insinto /usr/share/doc/${P}/examples + doins examples/daexutil.h + doins examples/example{0,1,2,3}.c + doins examples/util.c + doins examples/EXAMPLES.USAGE + fi + + einstalldocs +} diff --git a/dev-libs/device-atlas-api-c/files/2.1-cmake-install.patch b/dev-libs/device-atlas-api-c/files/2.1-cmake-install.patch new file mode 100644 index 00000000..9f51862 --- /dev/null +++ b/dev-libs/device-atlas-api-c/files/2.1-cmake-install.patch @@ -0,0 +1,20 @@ +--- ./CMakeLists.txt 2016-11-08 22:54:33.351677837 +0000 ++++ ./CMakeLists.txt 2016-11-08 23:04:26.737184360 +0000 +@@ -16,6 +16,7 @@ + set(MODEL 64) + endif() + ++include(GNUInstallDirs) + message(STATUS "${CMAKE_BUILD_TYPE} version") + + include_directories(${PCRE_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) +@@ -31,6 +32,9 @@ + + add_subdirectory(examples) + ++install(TARGETS da DESTINATION ${CMAKE_INSTALL_LIBDIR}) ++install(FILES dac.h dac_json.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) ++ + if (EXISTS "${PROJECT_SOURCE_DIR}/tests") + subdirs(tests) + endif() diff --git a/dev-libs/device-atlas-api-c/metadata.xml b/dev-libs/device-atlas-api-c/metadata.xml new file mode 100644 index 00000000..a1a8f31 --- /dev/null +++ b/dev-libs/device-atlas-api-c/metadata.xml @@ -0,0 +1,15 @@ + + + + + bertrand@jacquin.bzh + Bertrand Jacquin + + + proxy-maint@gentoo.org + Proxy Maintainers + + + DeviceAtlas is the de facto standard for device data across the web, telco, advertising and digital marketing sectors. As the only solution that is indexed for both web and mobile operator environments, DeviceAtlas' patented technology provides a common device identifier to understand device traffic across all connected environments. + +