[arch-commits] Commit in scons/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Sat Aug 31 17:01:58 UTC 2019


    Date: Saturday, August 31, 2019 @ 17:01:57
  Author: dvzrv
Revision: 361446

upgpkg: scons 3.1.1-2

Adding docbook2x, epydoc, fop, texlive-{bin,latexextra}, graphviz, ghostscript, lynx and python-lxml to makedepends to be able to build man pages correctly (FS#63391). Removing (somehow broken) build of postscript files in prepare() and fixing refentrytitle of man page sources. Building man pages manually in build(), because the documentation build generates empty ones (although the rest of the documentation succeeds).

Modified:
  scons/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-31 09:08:05 UTC (rev 361445)
+++ PKGBUILD	2019-08-31 17:01:57 UTC (rev 361446)
@@ -6,16 +6,17 @@
 
 pkgname=scons
 pkgver=3.1.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Extensible Python-based build utility"
 arch=('any')
 url="https://scons.org"
 license=('MIT')
 depends=('python')
-makedepends=('python-setuptools')
+makedepends=('docbook2x' 'epydoc' 'fop' 'texlive-bin' 'graphviz' 'ghostscript'
+'lynx' 'python-lxml' 'python-setuptools' 'texlive-latexextra')
 # potential additions include ipkg, rpm
-checkdepends=('clang' 'gdc' 'dmd' 'ldc' 'lib32-glibc' 'nasm' 'python-lxml'
-'python-pytest' 'python-virtualenv' 'swig' 'zip')
+checkdepends=('clang' 'gdc' 'dmd' 'ldc' 'lib32-glibc' 'nasm' 'python-pytest'
+'python-virtualenv' 'swig' 'zip')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
 sha512sums=('3347a7ec5c6c7b596c0d51bb4a9654b971734736febe3834df0f40e7839e1f0578dafeae838d5ddd9f3319ac3d17b6790666fa1602c30480eba25122355179a5')
 
@@ -45,15 +46,32 @@
       -e 's/__DEVELOPER__/none/g' \
       -e "s/__VERSION__/${pkgver}/g" \
       -i "src/setup.py"
+  # disabling postscript creation, because it's broken
+  sed -e '614,619d' \
+      -e '/api_ps =/d' \
+      -e 's/api_ps,//' \
+      -i doc/SConscript
+  # fixing refentrytitle, so man pages are rendered with correct file names
+  sed -e 's/refentrytitle>SCONS-TIME/refentrytitle>scons-time/' \
+      -e 's/refentrytitle>SCONSIGN/refentrytitle>sconsign/' \
+      -e 's/refentrytitle>SCONS/refentrytitle>scons/' \
+      -i doc/man/*.xml
 }
 
 build() {
   cd "${pkgname}-${pkgver}"
-  # build man page and move to src directory
-  python bootstrap.py doc/SConscript
-  mv -v build/doc/man/* src/
-  cd src
-  python setup.py build
+  # build documentation
+  (
+    python bootstrap.py SConstruct doc
+    cd src
+    for _xml in {scons,sconsign,scons-time}; do
+      docbook2man "../build/doc/man/${_xml}_db.xml"
+    done
+  )
+  (
+    cd src
+    python setup.py build
+  )
 }
 
 check() {



More information about the arch-commits mailing list