dev-libs/gpds: add 1.9.0

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2024-10-04 18:17:34 +08:00
parent 54795f8f05
commit b3bb4ed7d5
2 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A general purpose data serializer"
HOMEPAGE="https://gpds.simulton.com"
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/simulton/${PN}.git"
else
SRC_URI="https://github.com/simulton/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
S="${WORKDIR}/${PN}-${PV}"
fi
LICENSE="MIT"
SLOT="0"
IUSE="examples static-libs test"
RESTRICT="!test? ( test )"
DEPEND="${RDEPEND}"
DOCS=( license.txt readme.md )
src_configure() {
local mycmakeargs=(
-DGPDS_BUILD_STATIC=$(usex static-libs)
-DGPDS_BUILD_SHARED=ON
-DGPDS_BUILD_TESTS=$(usex test)
-DGPDS_BUILD_EXAMPLES=$(usex examples)
)
cmake_src_configure
}
src_install() {
cmake_src_install
}