From 40c408e211591c1902eb53cefbf86bb9c05a949e Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 27 Oct 2020 12:28:45 +0100 Subject: [PATCH] www-misc/gitea2rss: Version bump 0.6.0. --- www-misc/gitea2rss/Manifest | 1 + www-misc/gitea2rss/gitea2rss-0.6.0.ebuild | 54 +++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 www-misc/gitea2rss/gitea2rss-0.6.0.ebuild diff --git a/www-misc/gitea2rss/Manifest b/www-misc/gitea2rss/Manifest index a0d802f..31b6de7 100644 --- a/www-misc/gitea2rss/Manifest +++ b/www-misc/gitea2rss/Manifest @@ -1 +1,2 @@ DIST gitea2rss-0.5.2.tar.gz 22874 BLAKE2B 89d25e7d500fd77d9007914e8961f33f73bc67b4835efc4051f7417bb19ad4501d92a6e1c807f844afe6e19619bce65b21e4873fe6309a96aadb328bee20c1c0 SHA512 6729b997d07b2bc7d63bc019f69c933d5f30ff4217485b22cf437fdbd8b6f214ba20f0bfa62a94d0a8295937e2c94b299ee2917f3e6f979ded0605518b720970 +DIST gitea2rss-0.6.0.tar.gz 22771 BLAKE2B 5fde25f9f640599a64ae2aca9c90a8e7a83120ea792380864d43b19144160a8a739832ba254884b5bfa01c17603bedc5d9076c10293545664e6f423b44eff40b SHA512 39cbd310b1b12450b0d827a84e1fb897637518e5e14a2da0fbfe6e217cb1deb76d768345a6658ae1bf3f8ce7641d59d6df62e799d62ceb6651b3a2d859716298 diff --git a/www-misc/gitea2rss/gitea2rss-0.6.0.ebuild b/www-misc/gitea2rss/gitea2rss-0.6.0.ebuild new file mode 100644 index 0000000..3bd4aa1 --- /dev/null +++ b/www-misc/gitea2rss/gitea2rss-0.6.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 +fi + +DESCRIPTION="Generates RSS feeds from Gitea releases or tags" +HOMEPAGE="https://schlomp.space/tastytea/gitea2rss" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://schlomp.space/tastytea/gitea2rss.git" +else + SRC_URI="https://schlomp.space/tastytea/gitea2rss/archive/${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}" +fi + +LICENSE="GPL-3" +SLOT="0" +if [[ "${PV}" == "9999" ]]; then + KEYWORDS="" +else + KEYWORDS="~amd64 ~arm ~x86" +fi +IUSE="test" + +RDEPEND=" + net-misc/curl[ssl] + dev-libs/jsoncpp +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + app-text/asciidoc +" + +RESTRICT="!test? ( test )" + +DOCS=("README.adoc" "doc/nginx-example.conf") + +src_configure() { + local mycmakeargs=( + -DWITH_TESTS="$(usex test)" + ) + if use test; then + # Don't run tests that need a network connection. + mycmakeargs+=(-DEXTRA_TEST_ARGS="~[http]") + fi + + cmake_src_configure +}