mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake-multilib
|
|
|
|
MY_PV="${PV%.*}${PV##*.}"
|
|
DESCRIPTION="Low bit rate speech codec"
|
|
HOMEPAGE="https://freedv.org/ https://www.rowetel.com/?page_id=452 https://github.com/drowe67/codec2"
|
|
SRC_URI="https://github.com/drowe67/codec2/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}"/${PN}-${MY_PV}
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0/1.0"
|
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
|
|
IUSE="examples test"
|
|
|
|
# Not yet passing, but infrastructure added to run
|
|
# Needs Octave dependencies like "signal"?
|
|
# https://github.com/drowe67/codec2/commit/9a129f1b3ad12ecbf3df7f4460f496ee11e49c08#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R155
|
|
RESTRICT="test"
|
|
|
|
#BDEPEND="test? ( sci-mathematics/octave )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-fix-build-with-Os.patch
|
|
)
|
|
|
|
multilib_src_configure() {
|
|
local mycmakeargs=(
|
|
-DUNITTEST=$(usex test)
|
|
-DINSTALL_EXAMPLES=$(usex examples)
|
|
)
|
|
cmake_src_configure
|
|
}
|