From 1f0e8450b351f67f4289d06f9eecc305d8c5bcf2 Mon Sep 17 00:00:00 2001 From: brettalcox Date: Wed, 4 Oct 2023 22:11:14 -0500 Subject: [PATCH] net-libs/syndication-domination: new package, add 9999 Signed-off-by: brettalcox --- net-libs/syndication-domination/metadata.xml | 15 ++++++ .../syndication-domination-9999.ebuild | 54 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 net-libs/syndication-domination/metadata.xml create mode 100644 net-libs/syndication-domination/syndication-domination-9999.ebuild diff --git a/net-libs/syndication-domination/metadata.xml b/net-libs/syndication-domination/metadata.xml new file mode 100644 index 0000000000..81cf0cee77 --- /dev/null +++ b/net-libs/syndication-domination/metadata.xml @@ -0,0 +1,15 @@ + + + + + brettalcox@gmail.com + + + GabMus/syndication-domination + + + + Builds a binary executable instead of python bindings + + + diff --git a/net-libs/syndication-domination/syndication-domination-9999.ebuild b/net-libs/syndication-domination/syndication-domination-9999.ebuild new file mode 100644 index 0000000000..92791e1b5f --- /dev/null +++ b/net-libs/syndication-domination/syndication-domination-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="An RSS/Atom parser, because there's nothing else out there." +HOMEPAGE="https://gitlab.com/gabmus/syndication-domination" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/gabmus/syndication-domination.git" +else + KEYWORDS="~amd64" + SRC_URI="https://gitlab.com/gabmus/syndication-domination/-/archive/${PV}/${P}.tar.bz2" +fi + +LICENSE="AGPL-3" +SLOT="0" +IUSE="debug json-binary +python" +REQUIRED_USE=" + ^^ ( python json-binary ) +" +DEPEND=" + app-text/htmltidy + dev-libs/libfmt + dev-libs/pugixml + python? ( + >=dev-lang/python-3.11 + dev-python/pybind11 + ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_configure() { + local emesonargs=( + --buildtype $(usex debug debug release) + --prefix=/usr + -DHTML_SUPPORT=true + $(meson_use python PYTHON_BINDINGS) + $(meson_use json-binary TO_JSON_BINARY) + ) + meson_src_configure +} + +src_compile() { + meson_src_compile +} + +src_install() { + meson_src_install +}