net-misc/libqofono - 0.123 (gentoo-lomiri)

Search

Install

Install this version:

emerge -a =net-misc/libqofono-0.123

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

autounmask =net-misc/libqofono-0.123

Or alternatively:

emerge --autounmask-write -a =net-misc/libqofono-0.123

Package Information

Description:
Library for accessing the ofono daemon, and a Qt declarative plugin for it
Homepage:
https://github.com/sailfishos/libqofono
License:
LGPL-2.1

Ebuild Details

Version EAPI Keywords Slot
0.123 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 qmake-utils multibuild

KEYWORDS="~amd64"
SRC_URI="https://github.com/sailfishos/${PN}/archive/refs/tags/${PV}.tar.gz -> ${PN}-${PV}.tar.gz"

DESCRIPTION="Library for accessing the ofono daemon, and a Qt declarative plugin for it"
HOMEPAGE="https://github.com/sailfishos/libqofono"

LICENSE="LGPL-2.1"
SLOT="0"
IUSE="+qt5 qt6"

DEPEND="
    qt5? (
        dev-qt/qtcore:5
    )
    qt6? (
        dev-qt/qtbase:6
    )

"

RDEPEND="${DEPEND}"

BDEPEND="
    dev-build/cmake-extras
    dev-util/intltool
    qt5? (
        dev-qt/qtdeclarative:5
    )
    qt6? (
        dev-qt/qtdeclarative:6
    )
"

pkg_setup() {
	MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) )
}

src_prepare() {
    default

    # disable build of tests for now
    sed -i 's/test ofonotest//' libqofono.pro || die

    multibuild_copy_sources
}

src_configure() {
    my_src_configure() {

        case ${MULTIBUILD_VARIANT} in
            qt5) eqmake5 ;;
            qt6) eqmake6 ;;
        esac
    }
	multibuild_foreach_variant run_in_build_dir my_src_configure
}

src_compile() {
    multibuild_foreach_variant run_in_build_dir emake
}

src_install() {
    multibuild_foreach_variant run_in_build_dir emake INSTALL_ROOT="${D}" install
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-misc/libqofono | euse -E <flag> -p net-misc/libqofono | euse -D <flag> -p net-misc/libqofono

Global/Standard Flags

qt5
Default: Enabled (+)
qt6

Inherited Eclasses

Dependencies

DEPEND

    qt5? (
        dev-qt/qtcore:5
    )
    qt6? (
        dev-qt/qtbase:6
    )

RDEPEND

    qt5? (
        dev-qt/qtcore:5
    )
    qt6? (
        dev-qt/qtbase:6
    )

BDEPEND

    dev-build/cmake-extras
    dev-util/intltool
    qt5? (
        dev-qt/qtdeclarative:5
    )
    qt6? (
        dev-qt/qtdeclarative:6
    )

Manifest for 0.123

Type File Size Source URLs
DIST libqofono-0.123.tar.gz 115947 bytes https://github.com/sailfishos/libqofono/archive/refs/tags/0.123.tar.gz