dev-cpp/properties-cpp - 9999 (gentoo-lomiri)

Search

Install

Install this version:

emerge -a =dev-cpp/properties-cpp-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-cpp/properties-cpp-9999

Or alternatively:

emerge --autounmask-write -a =dev-cpp/properties-cpp-9999

Package Information

Description:
A very simple convenience library for handling properties and signals in C++11
Homepage:
https://gitlab.com/ubports/development/core/lib-cpp/properties-cpp
License:
GPL-3

Ebuild Details

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

EAPI=8

inherit lomiri

if [[ ${PV} == 9999 ]]; then
    KEYWORDS=""
    EGIT_REPO_URI="https://gitlab.com/ubports/development/core/lib-cpp/${PN}.git"
    inherit git-r3
else
    KEYWORDS="~amd64"
    SRC_URI="https://gitlab.com/ubports/development/core/lib-cpp/${PN}/-/archive/${PV}/${P}.tar.gz"
fi

DESCRIPTION="A very simple convenience library for handling properties and signals in C++11"
HOMEPAGE="https://gitlab.com/ubports/development/core/lib-cpp/${PN}"
LICENSE="GPL-3"
SLOT="0"
RESTRICT="test mirror"

DEPEND=""
RDEPEND="${DEPEND}"

BDEPEND="
    dev-build/cmake
    dev-build/cmake-extras
    dev-build/samurai
    virtual/pkgconfig
"

src_prepare() {
    # remove hard coded enabling of tests and coverage reports
    sed -i "/enable_testing()/d" CMakeLists.txt  || die
    sed -i "/if(BUILD_TESTING)/,/endif(BUILD_TESTING)/d" CMakeLists.txt  || die
    sed -i "/find_package(CoverageReport)/,/)/d" CMakeLists.txt  || die

    # fix patch version
    sed -i "s/set(PROPERTIES_CPP_VERSION_PATCH 3)/set(PROPERTIES_CPP_VERSION_PATCH 4)/" CMakeLists.txt  || die

    lomiri_src_prepare
}

Inherited Eclasses

Dependencies

BDEPEND

    dev-build/cmake
    dev-build/cmake-extras
    dev-build/samurai
    virtual/pkgconfig