Skip to content

Commit

Permalink
dev-cpp/websocketpp: Port to EAPI 7
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed Aug 11, 2019
1 parent 2b01e7c commit b8a6b9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
3 changes: 0 additions & 3 deletions dev-cpp/websocketpp/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<email>[email protected]</email>
<name>Johannes Huber</name>
</maintainer>
<use>
<flag name="boost">Use <pkg>dev-libs/boost</pkg> instead of C++11</flag>
</use>
<upstream>
<remote-id type="github">zaphoyd/websocketpp</remote-id>
</upstream>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
EAPI=7

inherit cmake-utils

DESCRIPTION="C++/Boost Asio based websocket client/server library"
HOMEPAGE="https://www.zaphoyd.com/websocketpp"
SRC_URI="https://github.com/zaphoyd/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
LICENSE="BSD"
SLOT="0"
IUSE="boost examples test"
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
IUSE="examples test"
RESTRICT="!test? ( test )"

DEPEND=""
RDEPEND="${DEPEND}
boost? ( dev-libs/boost )
"
DEPEND="test? ( dev-libs/boost )"
RDEPEND="dev-libs/boost"

PATCHES=(
"${FILESDIR}"/${PN}-0.7.0-cmake-install.patch
Expand All @@ -29,14 +28,17 @@ PATCHES=(

src_configure() {
local mycmakeargs=(
-DENABLE_CPP11="$(usex !boost)"
-DENABLE_CPP11=ON
-DBUILD_TESTS="$(usex test)"
)

cmake-utils_src_configure
}

src_install() {
use examples && DOCS=( examples/ )
cmake-utils_src_install

if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}

0 comments on commit b8a6b9b

Please sign in to comment.