summaryrefslogtreecommitdiff
path: root/packages/net-libs/cppzmq/cppzmq.exlib
blob: 82ded3ec92309507dccb1183e819b23f445d9e9a (plain)
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
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>


require github [ user=zeromq tag=v${PV} ]

SUMMARY="High-level CPP Binding for ZeroMQ"
HOMEPAGE="https://github.com/zeromq/cppzmq"
SLOT="0"
LICENCES="MIT"

export_exlib_phases src_install src_test

MYOPTIONS=""

DEPENDENCIES="
    run+test:
        net-libs/zeromq[>=4] 
"

cppzmq_src_test() {
    edo $(exhost --target)-c++ -c ./zmq.hpp -L ./.libs/ -I ./include/ -o ./test.o
}

cppzmq_src_install() {
    insinto /usr/$(exhost --target)/include/
    doins zmq.hpp zmq_addon.hpp
}