Skip to content
Snippets Groups Projects
Commit 6288fe71 authored by David Runge's avatar David Runge :chipmunk:
Browse files

upgpkg: 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).
parent 33c89996
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ prepare() {
-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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment