From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/eclass-manpages/
Date: Sat, 16 Jul 2022 19:57:20 +0000 (UTC) [thread overview]
Message-ID: <1658001419.9e2c1b2c21827fefc11cde8e31a6a3c65bd105af.sam@gentoo> (raw)
commit: 9e2c1b2c21827fefc11cde8e31a6a3c65bd105af
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 19:56:59 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 19:56:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e2c1b2c
app-doc/eclass-manpages: use live template
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../eclass-manpages-20220716.ebuild | 42 ++++++++++++++++++----
.../eclass-manpages-99999999.ebuild | 42 +++++++++++++++-------
2 files changed, 65 insertions(+), 19 deletions(-)
diff --git a/app-doc/eclass-manpages/eclass-manpages-20220716.ebuild b/app-doc/eclass-manpages/eclass-manpages-20220716.ebuild
index 3f301df02e67..4bbfc72582a4 100644
--- a/app-doc/eclass-manpages/eclass-manpages-20220716.ebuild
+++ b/app-doc/eclass-manpages/eclass-manpages-20220716.ebuild
@@ -3,19 +3,49 @@
EAPI=8
+# Instructions to make a dist tarball:
+# git clone https://github.com/mgorny/eclass-to-manpage && cd eclass-to-manpage
+# make dist ECLASSDIR=~/g/eclass/
+
DESCRIPTION="Collection of Gentoo eclass manpages"
HOMEPAGE="https://github.com/mgorny/eclass-to-manpage"
-SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
+if [[ ${PV} == *9999* ]] ; then
+ EGIT_REPO_URI="https://anongit.gentoo.org/git/repo/gentoo.git
+ https://github.com/gentoo/gentoo.git"
+ inherit git-r3
+
+ MY_ECLASSDIR="eclass"
+else
+ SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
+
+ # Keep the keywords stable. No need to change to ~arch.
+ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
+
+ MY_ECLASSDIR="."
+fi
LICENSE="GPL-2"
SLOT="0"
-# Keep the keywords stable. No need to change to ~arch.
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
-BDEPEND="app-arch/xz-utils
- sys-apps/gawk
+BDEPEND="sys-apps/gawk
sys-apps/groff"
+src_unpack() {
+ if [[ ${PV} == *9999* ]] ; then
+ git-r3_fetch
+ git-r3_fetch "https://github.com/mgorny/eclass-to-manpage"
+
+ git-r3_checkout '' '' '' eclass
+ git-r3_checkout "https://github.com/mgorny/eclass-to-manpage"
+ else
+ default
+ fi
+}
+
+src_compile() {
+ emake ECLASSDIR=${MY_ECLASSDIR}
+}
+
src_install() {
- emake install DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
+ emake install ECLASSDIR=${MY_ECLASSDIR} DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
}
diff --git a/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild
index 2339dc038f41..4bbfc72582a4 100644
--- a/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild
+++ b/app-doc/eclass-manpages/eclass-manpages-99999999.ebuild
@@ -1,35 +1,51 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit git-r3
+# Instructions to make a dist tarball:
+# git clone https://github.com/mgorny/eclass-to-manpage && cd eclass-to-manpage
+# make dist ECLASSDIR=~/g/eclass/
DESCRIPTION="Collection of Gentoo eclass manpages"
HOMEPAGE="https://github.com/mgorny/eclass-to-manpage"
-SRC_URI=""
-EGIT_REPO_URI="https://anongit.gentoo.org/git/repo/gentoo.git
- https://github.com/gentoo/gentoo.git"
+if [[ ${PV} == *9999* ]] ; then
+ EGIT_REPO_URI="https://anongit.gentoo.org/git/repo/gentoo.git
+ https://github.com/gentoo/gentoo.git"
+ inherit git-r3
+
+ MY_ECLASSDIR="eclass"
+else
+ SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
+
+ # Keep the keywords stable. No need to change to ~arch.
+ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
+
+ MY_ECLASSDIR="."
+fi
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS=""
BDEPEND="sys-apps/gawk
sys-apps/groff"
src_unpack() {
- git-r3_fetch
- git-r3_fetch "https://github.com/mgorny/eclass-to-manpage"
-
- git-r3_checkout '' '' '' eclass
- git-r3_checkout "https://github.com/mgorny/eclass-to-manpage"
+ if [[ ${PV} == *9999* ]] ; then
+ git-r3_fetch
+ git-r3_fetch "https://github.com/mgorny/eclass-to-manpage"
+
+ git-r3_checkout '' '' '' eclass
+ git-r3_checkout "https://github.com/mgorny/eclass-to-manpage"
+ else
+ default
+ fi
}
src_compile() {
- emake ECLASSDIR=eclass
+ emake ECLASSDIR=${MY_ECLASSDIR}
}
src_install() {
- emake install ECLASSDIR=eclass DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
+ emake install ECLASSDIR=${MY_ECLASSDIR} DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
}
next reply other threads:[~2022-07-16 19:57 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-16 19:57 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-05 1:05 [gentoo-commits] repo/gentoo:master commit in: app-doc/eclass-manpages/ Sam James
2024-12-10 4:55 Sam James
2024-11-17 5:30 Sam James
2024-11-17 5:30 Sam James
2024-11-15 21:31 Sam James
2024-11-11 13:08 Sam James
2024-11-09 7:11 Sam James
2024-11-01 1:10 Matt Turner
2024-10-15 1:37 Sam James
2024-09-01 11:05 Sam James
2024-08-11 23:07 Sam James
2024-06-14 10:52 Sam James
2024-06-14 10:52 Sam James
2024-05-12 23:26 Sam James
2024-04-23 21:43 Sam James
2024-04-23 21:10 Sam James
2024-02-29 7:52 Sam James
2024-02-29 7:52 Sam James
2024-02-07 0:51 Sam James
2023-09-19 19:50 Sam James
2023-06-24 5:02 Sam James
2023-06-24 5:02 Sam James
2023-06-01 1:37 Sam James
2023-06-01 1:37 Sam James
2023-05-30 3:44 Sam James
2023-05-12 23:31 Sam James
2023-04-17 21:19 Sam James
2023-04-17 21:19 Sam James
2023-03-29 11:38 Sam James
2023-03-29 2:05 Sam James
2023-03-29 2:05 Sam James
2023-03-09 7:38 Arthur Zamarin
2023-02-22 14:48 Sam James
2023-01-10 6:17 Sam James
2022-09-25 4:39 Sam James
2022-09-25 4:39 Sam James
2022-08-24 21:24 Sam James
2022-07-25 8:56 Ulrich Müller
2022-07-25 8:56 Ulrich Müller
2022-07-25 8:56 Ulrich Müller
2022-07-25 8:56 Ulrich Müller
2022-07-16 19:57 Sam James
2022-04-17 20:34 Ulrich Müller
2022-04-17 20:34 Ulrich Müller
2022-03-16 17:33 Sam James
2022-03-16 17:33 Sam James
2021-10-02 9:56 Ulrich Müller
2021-10-02 9:55 Ulrich Müller
2021-10-02 9:55 Ulrich Müller
2021-07-12 14:24 Ulrich Müller
2021-07-12 14:24 Ulrich Müller
2021-07-12 14:24 Ulrich Müller
2021-01-04 11:04 Ulrich Müller
2021-01-04 11:04 Ulrich Müller
2020-09-13 18:48 Ulrich Müller
2020-09-13 18:48 Ulrich Müller
2020-07-04 6:51 Michał Górny
2020-02-13 17:09 Ulrich Müller
2019-12-22 11:56 Ulrich Müller
2019-12-15 12:31 Ulrich Müller
2019-12-15 12:31 Ulrich Müller
2019-11-06 8:45 Michał Górny
2019-11-06 8:45 Michał Górny
2019-09-08 6:43 Michał Górny
2019-09-08 6:43 Michał Górny
2019-07-28 8:25 Michał Górny
2019-07-28 6:41 Michał Górny
2019-07-14 6:56 Michał Górny
2019-06-05 6:53 Michał Górny
2019-06-02 6:40 Michał Górny
2019-03-29 8:57 Mikle Kolyada
2019-03-29 8:49 Michał Górny
2019-03-29 8:16 Michał Górny
2019-03-19 6:08 Michał Górny
2019-03-14 12:47 Michał Górny
2019-03-14 12:39 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1658001419.9e2c1b2c21827fefc11cde8e31a6a3c65bd105af.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox