commit:     1708f36056b33c7a49fad2e1e13b1713507b6e2f
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Sun Oct  8 08:17:14 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Oct  8 08:21:38 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1708f360

dev-libs/gpds: new package, add 1.6.0, 1.7.0

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 dev-libs/gpds/Manifest          |  2 ++
 dev-libs/gpds/gpds-1.6.0.ebuild | 42 +++++++++++++++++++++++++++++++++++++++++
 dev-libs/gpds/gpds-1.7.0.ebuild | 42 +++++++++++++++++++++++++++++++++++++++++
 dev-libs/gpds/metadata.xml      | 17 +++++++++++++++++
 4 files changed, 103 insertions(+)

diff --git a/dev-libs/gpds/Manifest b/dev-libs/gpds/Manifest
new file mode 100644
index 0000000000..85b2531aa5
--- /dev/null
+++ b/dev-libs/gpds/Manifest
@@ -0,0 +1,2 @@
+DIST gpds-1.6.0.tar.gz 874971 BLAKE2B 
bc139365d5ed2ece5ab1b21c47830477e497a2a4bd8d489b801ceab91f815d022f1f8a1241d2724264d651c55d88674c7a4d4e7f8ee55e6f8049c48fb950c3ff
 SHA512 
bf916c5542c9dc13e6febbe605fd2268f14dec94e29ead604359b51b8adbfc12538f905024b43b4d838ba39033beab89d89693a571a1e0a482e44ccdb6e32133
+DIST gpds-1.7.0.tar.gz 874784 BLAKE2B 
6ab3edb5cda6e578695d3c7b79b57e8995e777bfafac603813ba06890811ac1ff0a3b41f7b8efe7dfc0a675c5799d60c9889760fa6ddab82a01e0219ab96eb9b
 SHA512 
c51c9a96363a213084997d5705a2899ad3183527a1fb4567b1eef2ad68b7f3ad2c70068f7e648471a56c377a518be30cadcba7d8e2a928a6ad1d1300dc40b102

diff --git a/dev-libs/gpds/gpds-1.6.0.ebuild b/dev-libs/gpds/gpds-1.6.0.ebuild
new file mode 100644
index 0000000000..92cd1d1aa4
--- /dev/null
+++ b/dev-libs/gpds/gpds-1.6.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2023 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="static-libs test"
+RESTRICT="!test? ( test )"
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+DOCS=( license.txt readme.md )
+
+src_configure() {
+       local mycmakeargs=(
+               -DGPDS_BUILD_TESTS=$(usex test)
+               -DGPDS_FEATURE_SPDLOG=ON
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
+}

diff --git a/dev-libs/gpds/gpds-1.7.0.ebuild b/dev-libs/gpds/gpds-1.7.0.ebuild
new file mode 100644
index 0000000000..92cd1d1aa4
--- /dev/null
+++ b/dev-libs/gpds/gpds-1.7.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2023 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="static-libs test"
+RESTRICT="!test? ( test )"
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND=""
+
+DOCS=( license.txt readme.md )
+
+src_configure() {
+       local mycmakeargs=(
+               -DGPDS_BUILD_TESTS=$(usex test)
+               -DGPDS_FEATURE_SPDLOG=ON
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       cmake_src_install
+       use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a || die
+}

diff --git a/dev-libs/gpds/metadata.xml b/dev-libs/gpds/metadata.xml
new file mode 100644
index 0000000000..65ab933314
--- /dev/null
+++ b/dev-libs/gpds/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Huang Rui</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">simulton/gpds</remote-id>
+       </upstream>
+       <longdescription lang="en">
+               GPDS is a General Purpose Data Serializer implemented as a very 
small
+               C++ library. It allows to serialize C++ classes to and from 
XML/YAML
+               files in a generic format that can be processed by other 
XML/YAML
+               processing software (or just for the sake of readability).
+       </longdescription>
+</pkgmetadata>

Reply via email to