aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettalcox <brettalcox@gmail.com>2023-10-05 11:59:06 -0500
committerbrettalcox <brettalcox@gmail.com>2023-10-05 11:59:06 -0500
commit7db4fe8999d59beb815feb4bc58c5694c0fbe690 (patch)
tree0e06cb6f4beae09963b747625338dab6f1e742b4 /net-libs
parentprofiles: mask app-misc/pup for removal (diff)
downloadguru-7db4fe8999d59beb815feb4bc58c5694c0fbe690.tar.gz
guru-7db4fe8999d59beb815feb4bc58c5694c0fbe690.tar.bz2
guru-7db4fe8999d59beb815feb4bc58c5694c0fbe690.zip
net-libs/syndication-domination: adding 1.0
additionally, cleaned up the existing ebuild to properly (and conditionally) pull in python, and simplifying existing USE flags Signed-off-by: brettalcox <brettalcox@gmail.com>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/syndication-domination/Manifest2
-rw-r--r--net-libs/syndication-domination/syndication-domination-1.0.ebuild67
-rw-r--r--net-libs/syndication-domination/syndication-domination-9999.ebuild25
3 files changed, 88 insertions, 6 deletions
diff --git a/net-libs/syndication-domination/Manifest b/net-libs/syndication-domination/Manifest
new file mode 100644
index 000000000..2c595e094
--- /dev/null
+++ b/net-libs/syndication-domination/Manifest
@@ -0,0 +1,2 @@
+DIST 75920321.patch 4208 BLAKE2B c24362cdc5f01858608476bddab3004f3acd9cc9a555ca52abedbeb009952f7a84db4e18db36c731fc2d6212f3cfa21cc9881b4b7472bb7465787b49f9bef7e3 SHA512 cbe5f1def629fe21f232566d8e812c4b8c48be4c5fb68b5c60b6c91ae49dde8cf561e14abb3b52b1ca9ad2560b921f3e834498d9d0c0eee198d7da60a689da4f
+DIST syndication-domination-1.0.tar.bz2 46908 BLAKE2B cd7d70c61277e315fa03e16af5190c8b87140c8d5d80c3b58a0d7d2026403558b74be0a1cfb8e9c450204bb4842970844c308d33676a65e0f7cbbda77cf821f0 SHA512 6fa093144c6a86c6e81ad7530527d171dac8bc011f9aa2895b254eef8e288e251dfc9dab8d2fa598182df825b53cd8ef583736c8b6971375904543ab93d76b7e
diff --git a/net-libs/syndication-domination/syndication-domination-1.0.ebuild b/net-libs/syndication-domination/syndication-domination-1.0.ebuild
new file mode 100644
index 000000000..8e62e74f7
--- /dev/null
+++ b/net-libs/syndication-domination/syndication-domination-1.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_11 )
+
+inherit meson python-single-r1
+
+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
+ https://gitlab.com/gabmus/syndication-domination/-/commit/75920321.patch
+ "
+ #required for gfeeds
+ PATCHES="${DISTDIR}/75920321.patch"
+fi
+
+LICENSE="AGPL-3"
+SLOT="0"
+IUSE="debug json-binary +python"
+REQUIRED_USE="
+ python? ( ${PYTHON_REQUIRED_USE} )
+ !python? ( json-binary )
+"
+DEPEND="
+ app-text/htmltidy
+ dev-libs/libfmt
+ dev-libs/pugixml
+ python? (
+ $(python_gen_cond_dep '
+ dev-python/cython[${PYTHON_USEDEP}]
+ ')
+ )
+
+"
+RDEPEND="
+ ${DEPEND}
+ python? ( ${PYTHON_DEPS} )
+"
+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
+}
diff --git a/net-libs/syndication-domination/syndication-domination-9999.ebuild b/net-libs/syndication-domination/syndication-domination-9999.ebuild
index 92791e1b5..8e62e74f7 100644
--- a/net-libs/syndication-domination/syndication-domination-9999.ebuild
+++ b/net-libs/syndication-domination/syndication-domination-9999.ebuild
@@ -3,7 +3,9 @@
EAPI=8
-inherit meson
+PYTHON_COMPAT=( python3_11 )
+
+inherit meson python-single-r1
DESCRIPTION="An RSS/Atom parser, because there's nothing else out there."
HOMEPAGE="https://gitlab.com/gabmus/syndication-domination"
@@ -13,25 +15,36 @@ if [[ ${PV} == 9999 ]]; then
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"
+ SRC_URI="
+ https://gitlab.com/gabmus/syndication-domination/-/archive/${PV}/${P}.tar.bz2
+ https://gitlab.com/gabmus/syndication-domination/-/commit/75920321.patch
+ "
+ #required for gfeeds
+ PATCHES="${DISTDIR}/75920321.patch"
fi
LICENSE="AGPL-3"
SLOT="0"
IUSE="debug json-binary +python"
REQUIRED_USE="
- ^^ ( python json-binary )
+ python? ( ${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
+ $(python_gen_cond_dep '
+ dev-python/cython[${PYTHON_USEDEP}]
+ ')
)
+
+"
+RDEPEND="
+ ${DEPEND}
+ python? ( ${PYTHON_DEPS} )
"
-RDEPEND="${DEPEND}"
BDEPEND=""
src_configure() {