commit: 1f0e8450b351f67f4289d06f9eecc305d8c5bcf2 Author: brettalcox <brettalcox <AT> gmail <DOT> com> AuthorDate: Thu Oct 5 03:11:14 2023 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Thu Oct 5 03:11:14 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1f0e8450
net-libs/syndication-domination: new package, add 9999 Signed-off-by: brettalcox <brettalcox <AT> gmail.com> net-libs/syndication-domination/metadata.xml | 15 ++++++ .../syndication-domination-9999.ebuild | 54 ++++++++++++++++++++++ 2 files changed, 69 insertions(+) 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> +<pkgmetadata> + <maintainer type="person"> + <email>brettal...@gmail.com</email> + </maintainer> + <upstream> + <remote-id type="gitlab">GabMus/syndication-domination</remote-id> + </upstream> + <use> + <flag name="json-binary"> + Builds a binary executable instead of python bindings + </flag> + </use> +</pkgmetadata> 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 +}