Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-misc/gitea2rss/
Date: Mon, 17 May 2021 22:08:48
Message-Id: 1621289260.366bc628682ac4b2c34d3ae43686a0baca5112ca.tastytea@gentoo
1 commit: 366bc628682ac4b2c34d3ae43686a0baca5112ca
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Mon May 17 21:54:17 2021 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Mon May 17 22:07:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=366bc628
7
8 www-misc/gitea2rss: New package.
9
10 Generates RSS feeds from Gitea releases, tags and commits.
11
12 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
13
14 www-misc/gitea2rss/Manifest | 1 +
15 www-misc/gitea2rss/gitea2rss-0.7.0.ebuild | 59 +++++++++++++++++++++++++++++++
16 www-misc/gitea2rss/metadata.xml | 11 ++++++
17 3 files changed, 71 insertions(+)
18
19 diff --git a/www-misc/gitea2rss/Manifest b/www-misc/gitea2rss/Manifest
20 new file mode 100644
21 index 000000000..f924f06f9
22 --- /dev/null
23 +++ b/www-misc/gitea2rss/Manifest
24 @@ -0,0 +1 @@
25 +DIST gitea2rss-0.7.0.tar.gz 25135 BLAKE2B f39e59aaa1381155ba1ec9c7bf831120a3c1504458515854d66e38cdc5d76bd436aeb055c85136c7010b22a65e87482d604f3542a6cf9f00cf9b6a906afa8cfc SHA512 1041897d3e1cbe60f75330403abf27b990923f2f47ea5c9d513dcf50a4e92a457ab2989067e4d29b8bbe16b4be39fdb74e87b337f49825607831c5e4090a0a80
26
27 diff --git a/www-misc/gitea2rss/gitea2rss-0.7.0.ebuild b/www-misc/gitea2rss/gitea2rss-0.7.0.ebuild
28 new file mode 100644
29 index 000000000..a50a8f05d
30 --- /dev/null
31 +++ b/www-misc/gitea2rss/gitea2rss-0.7.0.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake
39 +
40 +if [[ "${PV}" == "9999" ]]; then
41 + inherit git-r3
42 +fi
43 +
44 +DESCRIPTION="Generates RSS feeds from Gitea releases, tags and commits"
45 +HOMEPAGE="https://schlomp.space/tastytea/gitea2rss"
46 +if [[ "${PV}" == "9999" ]]; then
47 + EGIT_REPO_URI="https://schlomp.space/tastytea/gitea2rss.git"
48 +else
49 + SRC_URI="https://schlomp.space/tastytea/gitea2rss/archive/${PV}.tar.gz -> ${P}.tar.gz"
50 + S="${WORKDIR}/${PN}"
51 +fi
52 +
53 +LICENSE="GPL-3"
54 +SLOT="0"
55 +if [[ "${PV}" != "9999" ]]; then
56 + KEYWORDS="~amd64 ~arm ~x86"
57 +fi
58 +IUSE="test"
59 +
60 +RDEPEND="
61 + net-misc/curl[ssl]
62 + dev-libs/jsoncpp
63 +"
64 +DEPEND="
65 + ${RDEPEND}
66 + test? ( dev-cpp/catch )
67 +"
68 +BDEPEND="
69 + virtual/pkgconfig
70 + app-text/asciidoc
71 +"
72 +
73 +RESTRICT="!test? ( test )"
74 +
75 +DOCS=("README.adoc" "doc/nginx-example.conf")
76 +
77 +src_configure() {
78 + local mycmakeargs=(
79 + -DWITH_TESTS="$(usex test)"
80 + )
81 + if use test; then
82 + # Don't run tests that need a network connection.
83 + mycmakeargs+=(-DEXTRA_TEST_ARGS="~[http]")
84 + fi
85 +
86 + cmake_src_configure
87 +}
88 +
89 +src_test() {
90 + BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test
91 +}
92
93 diff --git a/www-misc/gitea2rss/metadata.xml b/www-misc/gitea2rss/metadata.xml
94 new file mode 100644
95 index 000000000..3b365639d
96 --- /dev/null
97 +++ b/www-misc/gitea2rss/metadata.xml
98 @@ -0,0 +1,11 @@
99 +<?xml version="1.0" encoding="UTF-8"?>
100 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
101 +<pkgmetadata>
102 + <maintainer type="person">
103 + <email>gentoo@××××××××.de</email>
104 + <name>Ronny (tastytea) Gutbrod</name>
105 + </maintainer>
106 + <upstream>
107 + <bugs-to>https://schlomp.space/tastytea/gitea2rss/issues</bugs-to>
108 + </upstream>
109 +</pkgmetadata>