forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device-atlas-api-c-2.1.3.ebuild
50 lines (38 loc) · 1.03 KB
/
device-atlas-api-c-2.1.3.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-multilib
MY_P="deviceatlas-enterprise-c-${PV/_p/_}"
DESCRIPTION="API to detect devices based on the User-Agent HTTP header"
HOMEPAGE="https://deviceatlas.com"
SRC_URI="${MY_P}.tgz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~x86"
IUSE="doc examples"
RDEPEND="dev-libs/libpcre[${MULTILIB_USEDEP}]"
DEPEND="
${RDEPEND}"
RESTRICT="fetch mirror bindist"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}/${PV}-src-cmakelists.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}.tgz"
}
multilib_src_install_all() {
if use doc; then
local -a HTML_DOCS=( Documentation )
fi
if use examples; then
docinto examples
dodoc Examples/daexutil.h
dodoc Examples/example{0,1,2,3,4}.c
dodoc Examples/util.c
dodoc Examples/EXAMPLES.USAGE
fi
einstalldocs
}