media-libs/mbelib: cmake-utils -> cmake

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Yury Martynov <email@linxon.ru>
This commit is contained in:
Yury Martynov 2020-07-19 19:24:31 +03:00
parent 49915d3fa9
commit c6a7f5be95
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
3 changed files with 32 additions and 24 deletions

View file

@ -1,21 +1,16 @@
# Copyright 1999-2020 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=7
inherit cmake-utils multilib
inherit cmake multilib
HOMEPAGE="https://github.com/szechyjs/mbelib"
DESCRIPTION="P25 Phase 1 and ProVoice vocoder"
LICENSE="BSD"
SLOT=0
IUSE="test"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/szechyjs/mbelib.git"
KEYWORDS=""
if [[ ${PV} == *9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/szechyjs/mbelib.git"
else
COMMIT="9a04ed5c78176a9965f3d43f7aa1b1f5330e771f"
SRC_URI="https://github.com/szechyjs/mbelib/archive/9a04ed5c78176a9965f3d43f7aa1b1f5330e771f.tar.gz -> ${P}-r1.tar.gz"
@ -23,16 +18,21 @@ else
KEYWORDS="~amd64 ~x86"
fi
LICENSE="BSD"
SLOT=0
IUSE="test"
src_prepare() {
sed -i -e '/TARGET_LINK_LIBRARIES(mbe-static m)/d' \
-e '/ADD_LIBRARY(mbe-static STATIC ${SRCS})/d' \
-e 's#mbe-static ##g' CMakeLists.txt
cmake-utils_src_prepare
-e 's#mbe-static ##g' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
mycmakeargs=(
CMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)"
-DDISABLE_TEST="$(usex test OFF ON)"
)
cmake-utils_src_configure
cmake_src_configure
}

View file

@ -1,21 +1,16 @@
# Copyright 1999-2020 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=7
inherit cmake-utils multilib
inherit cmake multilib
HOMEPAGE="https://github.com/szechyjs/mbelib"
DESCRIPTION="P25 Phase 1 and ProVoice vocoder"
LICENSE="BSD"
SLOT=0
IUSE="test"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/szechyjs/mbelib.git"
KEYWORDS=""
if [[ ${PV} == *9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/szechyjs/mbelib.git"
else
COMMIT="9a04ed5c78176a9965f3d43f7aa1b1f5330e771f"
SRC_URI="https://github.com/szechyjs/mbelib/archive/9a04ed5c78176a9965f3d43f7aa1b1f5330e771f.tar.gz -> ${P}-r1.tar.gz"
@ -23,16 +18,21 @@ else
KEYWORDS="~amd64 ~x86"
fi
LICENSE="BSD"
SLOT=0
IUSE="test"
src_prepare() {
sed -i -e '/TARGET_LINK_LIBRARIES(mbe-static m)/d' \
-e '/ADD_LIBRARY(mbe-static STATIC ${SRCS})/d' \
-e 's#mbe-static ##g' CMakeLists.txt
cmake-utils_src_prepare
-e 's#mbe-static ##g' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
mycmakeargs=(
CMAKE_INSTALL_LIBDIR="/usr/$(get_libdir)"
-DDISABLE_TEST="$(usex test OFF ON)"
)
cmake-utils_src_configure
cmake_src_configure
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>