commit: f1993849df511986aa8d3bec53ac9ba4ebe49969
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 1 11:24:09 2024 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Nov 1 11:24:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1993849
app-doc/devmanual: add 0_pre20241031
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-doc/devmanual/Manifest | 1 +
app-doc/devmanual/devmanual-0_pre20241031.ebuild | 58 ++++++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/app-doc/devmanual/Manifest b/app-doc/devmanual/Manifest
index ab50a79b02ba..7f91da457ed7 100644
--- a/app-doc/devmanual/Manifest
+++ b/app-doc/devmanual/Manifest
@@ -1 +1,2 @@
DIST devmanual-0_pre20231106.tar.xz 187040 BLAKE2B
20992be79db2b581234a813740bd59c697af624d6edc86e29375078b63cdc13bed3eae116e21d2b82d568703983860cae7be00649f24eb90f2a6f6b7837525d7
SHA512
0434e0155876dff01105ac014528d8abaa19631c5b260d2c8c995c417053403ae652d4e082d0a08549994e3238024ed2592b145c6b0435ed84f87397fb7aeacc
+DIST devmanual-0_pre20241031.tar.xz 187940 BLAKE2B
48ee136dcad8cf2766ea00cd8440b30e8e5a0460480f242417935c4b43bc46df0b36166d6a65a11a875d0ab4399dd8825cd75be3f1d32905d1243ecef6f51717
SHA512
0a9ac7978f0415f5c7cf6cb9faeecb42d91939b69522b2693122da714c9917186d5eff0eb44af14ecf433c525288a0863fdacdfa4b2baa486a600c97987660d0
diff --git a/app-doc/devmanual/devmanual-0_pre20241031.ebuild
b/app-doc/devmanual/devmanual-0_pre20241031.ebuild
new file mode 100644
index 000000000000..eb6eb3a9d985
--- /dev/null
+++ b/app-doc/devmanual/devmanual-0_pre20241031.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+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 ~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 )"
+
+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
+}