1
0

dev-libs/libversion: update EAPI 7 -> 8

I also removed the substitution in the build script; they implemented
GNUInstallDirs support, so it installs correctly by default now.
This commit is contained in:
Ryan Fox 2022-12-11 21:42:49 -08:00
parent 3d2f362c2c
commit 8b23077cea
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
2 changed files with 7 additions and 20 deletions

View File

@ -1,4 +1,4 @@
DIST libversion-3.0.1.tar.gz 23143 BLAKE2B d65f4d415e5c17abf49b641bb7ecee08ccd07c747bfddb43c6d0586a6d48bbb4e87b607f0812abb3da7c5696e928c79ebd1c0a00d7baaf5be75caffe7b18a2e7 SHA512 b7b10d2d71eba53972e51cf25b32ef429f703efc83810e4f480db34216bd0dc43382a492af947f6f3da65e1a3b939c9a61fe90f9d1d3b1737a5ba7615934d5b8
EBUILD libversion-3.0.1.ebuild 881 BLAKE2B c9b78be5c47293f4bdf415d9ab158c4acff78df0792d72cceeeb31f7d173088cded48d1caa8e9d4f608497f7598e6a2dd6e9ff100084fd84246688f8b271e0c3 SHA512 844e2b7d8b3567b99bf72382632e43ed761a95c0ae34c525e1c9c99007c9f1175427cf50115f0d60dffb71f0b290735e680169701dcdd16d90bf3b4050a8bebc
EBUILD libversion-9999.ebuild 881 BLAKE2B c9b78be5c47293f4bdf415d9ab158c4acff78df0792d72cceeeb31f7d173088cded48d1caa8e9d4f608497f7598e6a2dd6e9ff100084fd84246688f8b271e0c3 SHA512 844e2b7d8b3567b99bf72382632e43ed761a95c0ae34c525e1c9c99007c9f1175427cf50115f0d60dffb71f0b290735e680169701dcdd16d90bf3b4050a8bebc
EBUILD libversion-9999.ebuild 524 BLAKE2B ce732a47c0f581c2fc331a6aec58f00f8f06eadf49cac949031828ddbe374496b65b51333367217b64e1f0a4d3bdd10e4d9315872d394e76f91cc82b9acd363f SHA512 609a12f128f91f77bb0d982acef253c2cea7330fd882455db2e0ba34daf88342248e18dba0afb446ed32a52bd7b41c4eeb573d45541c9afbbf02c8ae69c67bb9
MISC metadata.xml 441 BLAKE2B 8e06083f90755aa3ea44f3d217c19564ee328492f956b0f9a33fe8168e3681748aff1d3bc882b059423c2c2d88c5d91119e83d00be9049b80fe5afd42ec24324 SHA512 99db212c34a76d117f0166fff4f399bec6786769370855972b27a056d5dafcb6ff1e50395a1e9f462a8b0def99bed236964918123c08e0c089628f73994c286b

View File

@ -1,16 +1,16 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
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
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/repology/libversion.git"
else
SRC_URI="https://github.com/repology/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
DESCRIPTION="Advanced version string comparison library"
@ -21,16 +21,3 @@ 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
}