Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-Sphinx: update to 2.3.1
@ 2019-12-28  3:47 voidlinux-github
  2019-12-28  4:53 ` [PR PATCH] [Updated] [WIP] " voidlinux-github
  2019-12-28 17:02 ` [PR PATCH] [Merged]: python3-Sphinx: update to 2.3.1, afew add Python 3.8 patch voidlinux-github
  0 siblings, 2 replies; 3+ messages in thread
From: voidlinux-github @ 2019-12-28  3:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 551 bytes --]

There is a new pull request by sgn against master on the void-packages repository

https://github.com/sgn/void-packages python3-Sphinx-split-out
https://github.com/void-linux/void-packages/pull/17833

python3-Sphinx: update to 2.3.1
- split out from python-Sphinx (2.x.x doesn't support python 2)
- despite their license looks like BSD-2-Clause, their README says it's a BSD-3-Clause
- python3-Sphinx doesn't depends on python3-setuptools (checked the code)

A patch file from https://github.com/void-linux/void-packages/pull/17833.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-Sphinx-split-out-17833.patch --]
[-- Type: text/x-diff, Size: 4502 bytes --]

From 5bdc5de598b820241b3a8275a59c3dff0b0dfab3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Sat, 28 Dec 2019 10:42:14 +0700
Subject: [PATCH] python3-Sphinx: update to 2.3.1

---
 srcpkgs/python-Sphinx/template  | 30 +++++++-----------------------
 srcpkgs/python-Sphinx/update    |  2 +-
 srcpkgs/python3-Sphinx          |  1 -
 srcpkgs/python3-Sphinx/template | 31 +++++++++++++++++++++++++++++++
 4 files changed, 39 insertions(+), 25 deletions(-)
 delete mode 120000 srcpkgs/python3-Sphinx
 create mode 100644 srcpkgs/python3-Sphinx/template

diff --git a/srcpkgs/python-Sphinx/template b/srcpkgs/python-Sphinx/template
index 42969925f9e..ec04e91c9a6 100644
--- a/srcpkgs/python-Sphinx/template
+++ b/srcpkgs/python-Sphinx/template
@@ -4,13 +4,13 @@ version=1.8.5
 revision=2
 archs=noarch
 wrksrc="Sphinx-${version}"
-build_style=python-module
+build_style=python2-module
 pycompile_module="sphinx"
-hostmakedepends="python-setuptools python3-setuptools"
+hostmakedepends="python-setuptools"
 depends="python-setuptools python-docutils python-Jinja2 python-Pygments
  python-six python-Babel python-alabaster python-snowballstemmer python-imagesize
  python-requests python-packaging python-sphinxcontrib-websupport python-typing"
-short_desc="Python2 documentation generator"
+short_desc="Python 2 documentation generator"
 maintainer="Alessio Sergi <al3hex@gmail.com>"
 license="BSD-2-Clause"
 homepage="http://sphinx-doc.org/"
@@ -24,25 +24,9 @@ alternatives="
  sphinx:sphinx-quickstart:/usr/bin/sphinx-quickstart2"
 
 post_install() {
+	mv ${DESTDIR}/usr/bin/sphinx-apidoc ${DESTDIR}/usr/bin/sphinx-apidoc2
+	mv ${DESTDIR}/usr/bin/sphinx-autogen ${DESTDIR}/usr/bin/sphinx-autogen2
+	mv ${DESTDIR}/usr/bin/sphinx-build ${DESTDIR}/usr/bin/sphinx-build2
+	mv ${DESTDIR}/usr/bin/sphinx-quickstart ${DESTDIR}/usr/bin/sphinx-quickstart2
 	vlicense LICENSE
 }
-
-python3-Sphinx_package() {
-	alternatives="
-	 sphinx:sphinx-apidoc:/usr/bin/sphinx-apidoc3
-	 sphinx:sphinx-autogen:/usr/bin/sphinx-autogen3
-	 sphinx:sphinx-build:/usr/bin/sphinx-build3
-	 sphinx:sphinx-quickstart:/usr/bin/sphinx-quickstart3"
-	archs=noarch
-	depends="python3-setuptools python3-docutils python3-Jinja2 python3-Pygments
-	 python3-six python3-Babel python3-alabaster python3-snowballstemmer
-	 python3-imagesize python3-requests python3-packaging
-	 python3-sphinxcontrib-websupport"
-	pycompile_module="sphinx"
-	short_desc="${short_desc/Python2/Python3}"
-	pkg_install() {
-		vmove usr/bin/sphinx-*3
-		vmove usr/lib/python3*
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python-Sphinx/update b/srcpkgs/python-Sphinx/update
index e957dc43055..88d11751195 100644
--- a/srcpkgs/python-Sphinx/update
+++ b/srcpkgs/python-Sphinx/update
@@ -1 +1 @@
-ignore="*a* *b*"
+ignore="2*"
diff --git a/srcpkgs/python3-Sphinx b/srcpkgs/python3-Sphinx
deleted file mode 120000
index 2ebd263145b..00000000000
--- a/srcpkgs/python3-Sphinx
+++ /dev/null
@@ -1 +0,0 @@
-python-Sphinx
\ No newline at end of file
diff --git a/srcpkgs/python3-Sphinx/template b/srcpkgs/python3-Sphinx/template
new file mode 100644
index 00000000000..30d29f5daba
--- /dev/null
+++ b/srcpkgs/python3-Sphinx/template
@@ -0,0 +1,31 @@
+# Template file for 'python3-Sphinx'
+pkgname=python3-Sphinx
+version=2.3.1
+revision=1
+archs=noarch
+wrksrc=Sphinx-${version}
+build_style=python3-module
+pycompile_module=sphinx
+hostmakedepends="python3-setuptools"
+depends="python3-Jinja2 python3-docutils python3-Pygments
+ python3-snowballstemmer python3-Babel python3-alabaster python3-imagesize
+ python3-requests python3-packaging"
+short_desc="Python 3 documentation generator"
+maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
+license="BSD-3-Clause"
+homepage="http://sphinx-doc.org"
+distfiles="${PYPI_SITE}/S/Sphinx/Sphinx-${version}.tar.gz"
+checksum=e6e766b74f85f37a5f3e0773a1e1be8db3fcb799deb58ca6d18b70b0b44542a5
+alternatives="
+ sphinx:sphinx-apidoc:/usr/bin/sphinx-apidoc3
+ sphinx:sphinx-autogen:/usr/bin/sphinx-autogen3
+ sphinx:sphinx-build:/usr/bin/sphinx-build3
+ sphinx:sphinx-quickstart:/usr/bin/sphinx-quickstart3"
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/sphinx-apidoc ${DESTDIR}/usr/bin/sphinx-apidoc3
+	mv ${DESTDIR}/usr/bin/sphinx-autogen ${DESTDIR}/usr/bin/sphinx-autogen3
+	mv ${DESTDIR}/usr/bin/sphinx-build ${DESTDIR}/usr/bin/sphinx-build3
+	mv ${DESTDIR}/usr/bin/sphinx-quickstart ${DESTDIR}/usr/bin/sphinx-quickstart3
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-28 17:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-28  3:47 [PR PATCH] python3-Sphinx: update to 2.3.1 voidlinux-github
2019-12-28  4:53 ` [PR PATCH] [Updated] [WIP] " voidlinux-github
2019-12-28 17:02 ` [PR PATCH] [Merged]: python3-Sphinx: update to 2.3.1, afew add Python 3.8 patch voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).