This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/www-misc/gitea2rss/gitea2rss-9999.ebuild
tastytea 622c47529e
All checks were successful
continuous-integration/drone/push Build is passing
www-misc/gitea2rss: Moved dev-util/gitea2rss to www-misc/gitea2rss.
Package-Manager: Portage-2.3.62, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2019-05-18 02:05:49 +02:00

56 lines
1.0 KiB
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
fi
DESCRIPTION="Turns Gitea releases into RSS feeds."
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"
fi
LICENSE="GPL-3"
SLOT="0"
if [[ "${PV}" == "9999" ]]; then
KEYWORDS=""
else
KEYWORDS="~amd64 ~arm ~x86"
fi
IUSE="test"
RDEPEND="
>=dev-cpp/curlpp-0.8.1
dev-libs/jsoncpp
"
DEPEND="
dev-util/cmake
app-text/asciidoc
${RDEPEND}
"
if [[ "${PV}" != "9999" ]]; then
S="${WORKDIR}/${PN}"
fi
DOCS=("README.adoc" "config/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-utils_src_configure
}