dev-libs/deviceinfo - 0.2.4 (gentoo-lomiri)

Search

Install

Install this version:

emerge -a =dev-libs/deviceinfo-0.2.4

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

autounmask =dev-libs/deviceinfo-0.2.4

Or alternatively:

emerge --autounmask-write -a =dev-libs/deviceinfo-0.2.4

Package Information

Description:
Library to detect and configure devices
Homepage:
https://gitlab.com/ubports/development/core/deviceinfo
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
0.2.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

inherit lomiri

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

DESCRIPTION="Library to detect and configure devices"
HOMEPAGE="https://gitlab.com/ubports/development/core/${PN}"
LICENSE="GPL-3"
SLOT="0"
RESTRICT="test mirror"

DEPEND="
    dev-cpp/yaml-cpp
"

RDEPEND="${DEPEND}"

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

src_prepare() {
    # remove hard coded coverage report
    sed -i "/find_package(CoverageReport)/d" CMakeLists.txt  || die

    # remove search for libandroid-properties
    sed -i "/pkg_search_module(ANDROIDPROPS libandroid-properties)/,/endif()/d" CMakeLists.txt  || die

    lomiri_src_prepare
}

src_configure() {
    local mycmakeargs=(
        -DDISABLE_TESTS="ON"
        -DWITH_EXTRAS="OFF"
        -DCONFIG_PATH=/etc/lomiri-deviceinfo
    )

    lomiri_src_configure
}

Inherited Eclasses

Dependencies

DEPEND

    dev-cpp/yaml-cpp

RDEPEND

    dev-cpp/yaml-cpp

BDEPEND

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

Manifest for 0.2.4

Type File Size Source URLs
DIST deviceinfo-0.2.4.tar.gz 37866 bytes https://gitlab.com/ubports/development/core/deviceinfo/-/archive/0.2.4/deviceinfo-0.2.4.tar.gz