Files
guru/media-libs/portsmf/portsmf-239.ebuild
2022-07-23 16:00:29 -07:00

29 lines
615 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://github.com/tenacityteam/portsmf/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/tenacityteam/portsmf.git"
fi
DESCRIPTION="C++ library for Standard Midi Files (SMF)"
HOMEPAGE="https://github.com/tenacityteam/portsmf"
LICENSE="MIT"
SLOT="0"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
sed -i "s/0.1/${PV}/" "${S}/packaging/portSMF.pc.in"
cmake_src_prepare
}