dev-libs/xpathselect - 1.4 (gentoo-unity7)

Search

Install

Install this version:

emerge -a =dev-libs/xpathselect-1.4

Package Information

Description:
Select objects in an object tree using XPath queries
Homepage:
https://launchpad.net/xpathselect
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
1.4 8 amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

UVER=+15.10.20150824.1
UREV=0ubuntu2

inherit cmake ubuntu-versionator

DESCRIPTION="Select objects in an object tree using XPath queries"
HOMEPAGE="https://launchpad.net/xpathselect"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
	>=sys-devel/gcc-5.2
	>=sys-libs/glibc-2.14
"
DEPEND="
	dev-libs/boost:=

	test? ( dev-cpp/gtest )
"

S="${S}${UVER}"

src_prepare() {
	# Fix build with CMake 4 #
	sed -i "/cmake_minimum_required/{s/2\.6/3.10/}" CMakeLists.txt || die

	# Make test optional #
	use test || cmake_comment_add_subdirectory test

	ubuntu-versionator_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-Wno-dev
	)
	cmake_src_configure

	use test && echo 'subdirs("test")' > "${BUILD_DIR}"/CTestTestfile.cmake
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-libs/xpathselect | euse -E <flag> -p dev-libs/xpathselect | euse -D <flag> -p dev-libs/xpathselect

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/boost:=

	test? ( dev-cpp/gtest )

RDEPEND

	>=sys-devel/gcc-5.2
	>=sys-libs/glibc-2.14