summaryrefslogtreecommitdiff
blob: cdc73da4d484a58fd70534342375ca254529204b (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
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit autotools cmake-utils

DESCRIPTION="The ${PN} is a library that provides application layer protocol support using modern C++ techniques."
HOMEPAGE="http://cpp-netlib.github.com/"
SRC_URI="https://github.com/downloads/${PN}/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples test"

DEPEND="dev-libs/boost"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/0001-cmake-fixes.patch
}

src_configure() {
	local mycmakeargs=(
		-DBUILD_SHARED_LIBS=ON
	)
	cmake-utils_src_configure
}

src_install() {
	# emake DESTDIR="${D}" install || die "install failed"
	mkdir -p "${D}"/usr/include/boost
	cp -r boost/* "${D}"/usr/include/boost/
	mkdir -p "${D}"/usr/lib64
	cp ${CMAKE_BUILD_DIR}/libs/network/src/*.so "${D}"/usr/lib64/
}