50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
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
|
|
}
|