mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-21 07:52:21 -04:00
Generates RSS feeds from Gitea releases, tags and commits. Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
60 lines
1.1 KiB
Bash
60 lines
1.1 KiB
Bash
# Copyright 1999-2021 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, tags and commits"
|
|
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="~amd64 ~arm ~x86"
|
|
fi
|
|
IUSE="test"
|
|
|
|
RDEPEND="
|
|
net-misc/curl[ssl]
|
|
dev-libs/jsoncpp
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
test? ( dev-cpp/catch )
|
|
"
|
|
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
|
|
}
|
|
|
|
src_test() {
|
|
BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test
|
|
}
|