1
0
flewkey-overlay/dev-libs/libversion/libversion-3.0.1.ebuild
Ryan Fox 8850d9bd4a
dev-libs/libversion: New package
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Ryan Fox <flewkey@2a03.party>
2021-06-13 02:31:07 +00:00

37 lines
881 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://github.com/repology/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
else
inherit git-r3
EGIT_REPO_URI="https://github.com/repology/libversion.git"
fi
DESCRIPTION="Advanced version string comparison library"
HOMEPAGE="https://github.com/repology/libversion"
LICENSE="MIT"
SLOT="0"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_prepare() {
sed -i "s/LIBRARY DESTINATION lib/LIBRARY DESTINATION $(get_libdir)/" "${S}/libversion/CMakeLists.txt"
sed -i "s/ARCHIVE DESTINATION lib/ARCHIVE DESTINATION $(get_libdir)/" "${S}/libversion/CMakeLists.txt"
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
"-DPKGCONFIGDIR=$(get_libdir)/pkgconfig"
)
cmake_src_configure
}