diff options
-rw-r--r-- | app-doc/eclass-manpages/Manifest | 1 | ||||
-rw-r--r-- | app-doc/eclass-manpages/eclass-manpages-20220716.ebuild | 51 | ||||
-rw-r--r-- | app-doc/eclass-manpages/eclass-manpages-99999999.ebuild | 42 | ||||
-rw-r--r-- | eclass/toolchain-funcs.eclass | 2 |
4 files changed, 82 insertions, 14 deletions
diff --git a/app-doc/eclass-manpages/Manifest b/app-doc/eclass-manpages/Manifest index 45de19802f1c..3e4a8d1c3247 100644 --- a/app-doc/eclass-manpages/Manifest +++ b/app-doc/eclass-manpages/Manifest @@ -1,2 +1,3 @@ DIST eclass-manpages-20220316.tar.xz 402108 BLAKE2B 6730248793ccb479da966fd20212ee60b9ca75a8eb4bcf9872517fef10821c2fe0232e17707411d2b66366813fc31a5917157239a79002820376d397899ea6b1 SHA512 0d89f02de5812854c75987e1b9718de58f642585ef4a6dea9b907549ff5d52b13d62cbe70fbbfe4339fc5f15f6114505d20f715f7a583c2cebfab4dd27a7ac1d DIST eclass-manpages-20220417.tar.xz 403944 BLAKE2B db0607e65f5e87d566bd632b4fa6e48522593907f8fb76f598a552fb23bf53ced466b467b45fc07154edc0e757dc92b9387484003dd847bdd63ea3a6f6635459 SHA512 ad9bcc55f9b7df7565d4d309d37e59553871a7116b3f00b87f6e29648bf4b235ec64a036348f76167ca1ce4d2b899b70176d1844d6e8bb325154e1d1a1dc951f +DIST eclass-manpages-20220716.tar.xz 409748 BLAKE2B 8e9c9ffc2d7d72647578cb876f0cb4e4a6c72cfe2236c435a7c232dc14638bd3ff98d085d06faec3c353e7d3263ee057736e6f8b5dff53d9890fa82d43d26002 SHA512 b4a45356a7441c258524c18a916df4b06d9317bc6ecb8e521d2cc43bcd7938e94ef266724c570456692e9f089332e0fb23e6d2d625a72424cfb479497b34f78d diff --git a/app-doc/eclass-manpages/eclass-manpages-20220716.ebuild b/app-doc/eclass-manpages/eclass-manpages-20220716.ebuild new file mode 100644 index 000000000000..4bbfc72582a4 --- /dev/null +++ b/app-doc/eclass-manpages/eclass-manpages-20220716.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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" +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" + +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 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" } diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 17c075895d55..d725f2f47e59 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -601,8 +601,8 @@ _tc-has-openmp() { } # @FUNCTION: tc-has-openmp -# @DEPRECATED: tc-check-openmp # @USAGE: [toolchain prefix] +# @DEPRECATED: tc-check-openmp # @DESCRIPTION: # See if the toolchain supports OpenMP. This function is deprecated and will be # removed on 2023-01-01. |