summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-11-06 19:14:51 +0100
committerUlrich Müller <ulm@gentoo.org>2023-11-06 19:19:44 +0100
commit9994316821c7cbf81f05f86f59fb159b202bad00 (patch)
treecc3f3eefe4d583ecac52d17928e3852bf4749282 /app-doc
parentdev-python/pykka: Bump to 4.0.1 (diff)
downloadgentoo-9994316821c7cbf81f05f86f59fb159b202bad00.tar.gz
gentoo-9994316821c7cbf81f05f86f59fb159b202bad00.tar.bz2
gentoo-9994316821c7cbf81f05f86f59fb159b202bad00.zip
app-doc/devmanual: add 0_pre20231106
Update PYTHON_COMPAT. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/devmanual/Manifest1
-rw-r--r--app-doc/devmanual/devmanual-0_pre20231106.ebuild60
-rw-r--r--app-doc/devmanual/devmanual-9999.ebuild2
3 files changed, 62 insertions, 1 deletions
diff --git a/app-doc/devmanual/Manifest b/app-doc/devmanual/Manifest
index b7c9b231462d..3203fa07ba8e 100644
--- a/app-doc/devmanual/Manifest
+++ b/app-doc/devmanual/Manifest
@@ -1 +1,2 @@
DIST devmanual-0_pre20230121.tar.xz 185536 BLAKE2B e099b3644ee84148f6ab7630934beb80420501aae76774949ec16529d64716c09bfc26a0e7a3641c5cc2809adbf00e5560b04182840799e229b30182e4920dd6 SHA512 370cb49d5b257f8efc872bc5c85a53aabb3a01fc0fc8d1f65144e27a5ff578286a25987e62fc9874dfdda7bf4864e7921d31e97f43db12e75bd59b429314d369
+DIST devmanual-0_pre20231106.tar.xz 187040 BLAKE2B 20992be79db2b581234a813740bd59c697af624d6edc86e29375078b63cdc13bed3eae116e21d2b82d568703983860cae7be00649f24eb90f2a6f6b7837525d7 SHA512 0434e0155876dff01105ac014528d8abaa19631c5b260d2c8c995c417053403ae652d4e082d0a08549994e3238024ed2592b145c6b0435ed84f87397fb7aeacc
diff --git a/app-doc/devmanual/devmanual-0_pre20231106.ebuild b/app-doc/devmanual/devmanual-0_pre20231106.ebuild
new file mode 100644
index 000000000000..13af86d6e06c
--- /dev/null
+++ b/app-doc/devmanual/devmanual-0_pre20231106.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9,10,11,12} )
+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
+}
diff --git a/app-doc/devmanual/devmanual-9999.ebuild b/app-doc/devmanual/devmanual-9999.ebuild
index f48fa93aeb42..13af86d6e06c 100644
--- a/app-doc/devmanual/devmanual-9999.ebuild
+++ b/app-doc/devmanual/devmanual-9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{9,10,11} )
+PYTHON_COMPAT=( python3_{9,10,11,12} )
PYTHON_REQ_USE="xml(+)"
inherit python-any-r1 readme.gentoo-r1