From 5deadca7219297a3c1f90eca00544a00e33efdbc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 22 Jul 2022 20:47:41 +0100 Subject: gentoo auto-resync : 22:07:2022 - 20:47:41 --- app-doc/devmanual/devmanual-0_pre20220625.ebuild | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 app-doc/devmanual/devmanual-0_pre20220625.ebuild (limited to 'app-doc/devmanual/devmanual-0_pre20220625.ebuild') diff --git a/app-doc/devmanual/devmanual-0_pre20220625.ebuild b/app-doc/devmanual/devmanual-0_pre20220625.ebuild new file mode 100644 index 000000000000..f4df71ec1d10 --- /dev/null +++ b/app-doc/devmanual/devmanual-0_pre20220625.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="xml" +inherit python-any-r1 readme.gentoo-r1 + +DESCRIPTION="The Gentoo Development Guide" +HOMEPAGE="https://devmanual.gentoo.org/" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/devmanual.git" +else + # "make dist" in devmanual repo + SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz" + S="${WORKDIR}/${PN}" + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +fi + +LICENSE="CC-BY-SA-4.0" +SLOT="0" +IUSE="+offline test" +RESTRICT="!test? ( test )" + +BDEPEND=">=dev-libs/libxml2-2.9.12 + dev-libs/libxslt + gnome-base/librsvg + media-fonts/open-sans + ${PYTHON_DEPS} + test? ( >=app-text/htmltidy-5.8.0 )" + +PATCHES=( "${FILESDIR}"/${PN}-eclasses.patch ) + +src_compile() { + emake OFFLINE=$(usex offline 1 0) +} + +src_install() { + emake OFFLINE=$(usex offline 1 0) \ + DESTDIR="${D}" \ + htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \ + install + + local DOC_CONTENTS="In order to browse the Gentoo Development Guide in + offline mode, point your browser to the following url: + file://${EPREFIX}/usr/share/doc/${PF}/html/index.html" + if ! has_version app-doc/eclass-manpages; then + DOC_CONTENTS+="\\n\\nThe offline version of the devmanual does not + include the documentation for the eclasses. If you need it, + then emerge app-doc/eclass-manpages." + fi + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} -- cgit v1.2.3