1
0

dev-libs/libversion: New package

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Ryan Fox <flewkey@2a03.party>
This commit is contained in:
Ryan Fox 2021-06-13 01:43:45 +00:00
parent 6e309559ca
commit 8850d9bd4a
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
4 changed files with 91 additions and 0 deletions

View File

@ -0,0 +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
MISC metadata.xml 441 BLAKE2B 8e06083f90755aa3ea44f3d217c19564ee328492f956b0f9a33fe8168e3681748aff1d3bc882b059423c2c2d88c5d91119e83d00be9049b80fe5afd42ec24324 SHA512 99db212c34a76d117f0166fff4f399bec6786769370855972b27a056d5dafcb6ff1e50395a1e9f462a8b0def99bed236964918123c08e0c089628f73994c286b

View File

@ -0,0 +1,36 @@
# 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
}

View File

@ -0,0 +1,36 @@
# 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
}

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>flewkey@2a03.party</email>
<name>Ryan Fox</name>
</maintainer>
<upstream>
<remote-id type="github">repology/libversion</remote-id>
<maintainer status="active">
<email>amdmi3@amdmi3.ru</email>
<name>Dmitry Marakasov</name>
</maintainer>
</upstream>
</pkgmetadata>