[arch-commits] Commit in scons/repos/extra-any (PKGBUILD PKGBUILD)

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


    Date: Saturday, August 31, 2019 @ 17:03:01
  Author: dvzrv
Revision: 361447

archrelease: copy trunk to extra-any

Added:
  scons/repos/extra-any/PKGBUILD
    (from rev 361446, scons/trunk/PKGBUILD)
Deleted:
  scons/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |  172 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 95 insertions(+), 77 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-31 17:01:57 UTC (rev 361446)
+++ PKGBUILD	2019-08-31 17:03:01 UTC (rev 361447)
@@ -1,77 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: Ray Rashif <schiv at archlinux.org>
-# Contributor: damir <damir at archlinux.org>
-# Contributor: Lukas Sabota <punkrockguy318 at comcast.net>
-# Contributor: Brice Carpentier <brice at dlfp.org>
-
-pkgname=scons
-pkgver=3.1.1
-pkgrel=1
-pkgdesc="Extensible Python-based build utility"
-arch=('any')
-url="https://scons.org"
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-# potential additions include ipkg, rpm
-checkdepends=('clang' 'gdc' 'dmd' 'ldc' 'lib32-glibc' 'nasm' 'python-lxml'
-'python-pytest' 'python-virtualenv' 'swig' 'zip')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
-sha512sums=('3347a7ec5c6c7b596c0d51bb4a9654b971734736febe3834df0f40e7839e1f0578dafeae838d5ddd9f3319ac3d17b6790666fa1602c30480eba25122355179a5')
-
-prepare() {
-  cd "${pkgname}-${pkgver}"
-  # emulate a release
-  local _copyright='Copyright (c) 2001 - 2019 The SCons Foundation'
-  local _date_of_release="$(grep "RELEASE ${pkgver}" src/CHANGES.txt | cut -d ',' -f2)"
-  local _date="$(date -d "${_date_of_release}" +'%Y-%m-%d %H:%M:%S')"
-  # copy scripts to correct locations and change their globals
-  for _script in scons{,ign,-time,-configure-cache}; do
-    cp -v "src/script/${_script}.py" "src/script/${_script}"
-    sed -e "s|__COPYRIGHT__|${_copyright}|g" \
-        -e "s|__FILE__|/src/script/${_script}|g" \
-        -e 's/__REVISION__/none/g' \
-        -e "s|__DATE__|${_date}|g" \
-        -e 's/__BUILDSYS__/none/g' \
-        -e 's/__DEVELOPER__/none/g' \
-        -e "s/__VERSION__/${pkgver}/g" \
-        -i "src/script/${_script}"
-  done
-  sed -e "s|__COPYRIGHT__|${_copyright}|g" \
-      -e 's|__FILE__|/src/setup.py|g' \
-      -e 's/__REVISION__/none/g' \
-      -e "s|__DATE__|${_date}|g" \
-      -e 's/__BUILDSYS__/none/g' \
-      -e 's/__DEVELOPER__/none/g' \
-      -e "s/__VERSION__/${pkgver}/g" \
-      -i "src/setup.py"
-}
-
-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
-}
-
-check() {
-  cd "${pkgname}-${pkgver}"
-  python runtest.py -a -t || msg "Tests passing with 'NO RESULT' count as failed."
-}
-
-package() {
-  cd "${pkgname}-${pkgver}/src"
-  python setup.py install --prefix=/usr \
-                          --skip-build \
-                          --optimize=1 \
-                          --standard-lib \
-                          --install-data=/usr/share \
-                          --root="$pkgdir"
-  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
-  install -vDm 644 {CHANGES,README,RELEASE}.txt \
-    -t "${pkgdir}/usr/share/doc/${pkgname}/"
-  # removing Windows only script
-  rm -vf "${pkgdir}/usr/bin/scons"*.bat
-}

Copied: scons/repos/extra-any/PKGBUILD (from rev 361446, scons/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-31 17:03:01 UTC (rev 361447)
@@ -0,0 +1,95 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Ray Rashif <schiv at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+# Contributor: Lukas Sabota <punkrockguy318 at comcast.net>
+# Contributor: Brice Carpentier <brice at dlfp.org>
+
+pkgname=scons
+pkgver=3.1.1
+pkgrel=2
+pkgdesc="Extensible Python-based build utility"
+arch=('any')
+url="https://scons.org"
+license=('MIT')
+depends=('python')
+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-pytest'
+'python-virtualenv' 'swig' 'zip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('3347a7ec5c6c7b596c0d51bb4a9654b971734736febe3834df0f40e7839e1f0578dafeae838d5ddd9f3319ac3d17b6790666fa1602c30480eba25122355179a5')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # emulate a release
+  local _copyright='Copyright (c) 2001 - 2019 The SCons Foundation'
+  local _date_of_release="$(grep "RELEASE ${pkgver}" src/CHANGES.txt | cut -d ',' -f2)"
+  local _date="$(date -d "${_date_of_release}" +'%Y-%m-%d %H:%M:%S')"
+  # copy scripts to correct locations and change their globals
+  for _script in scons{,ign,-time,-configure-cache}; do
+    cp -v "src/script/${_script}.py" "src/script/${_script}"
+    sed -e "s|__COPYRIGHT__|${_copyright}|g" \
+        -e "s|__FILE__|/src/script/${_script}|g" \
+        -e 's/__REVISION__/none/g' \
+        -e "s|__DATE__|${_date}|g" \
+        -e 's/__BUILDSYS__/none/g' \
+        -e 's/__DEVELOPER__/none/g' \
+        -e "s/__VERSION__/${pkgver}/g" \
+        -i "src/script/${_script}"
+  done
+  sed -e "s|__COPYRIGHT__|${_copyright}|g" \
+      -e 's|__FILE__|/src/setup.py|g' \
+      -e 's/__REVISION__/none/g' \
+      -e "s|__DATE__|${_date}|g" \
+      -e 's/__BUILDSYS__/none/g' \
+      -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 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() {
+  cd "${pkgname}-${pkgver}"
+  python runtest.py -a -t || msg "Tests passing with 'NO RESULT' count as failed."
+}
+
+package() {
+  cd "${pkgname}-${pkgver}/src"
+  python setup.py install --prefix=/usr \
+                          --skip-build \
+                          --optimize=1 \
+                          --standard-lib \
+                          --install-data=/usr/share \
+                          --root="$pkgdir"
+  install -vDm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -vDm 644 {CHANGES,README,RELEASE}.txt \
+    -t "${pkgdir}/usr/share/doc/${pkgname}/"
+  # removing Windows only script
+  rm -vf "${pkgdir}/usr/bin/scons"*.bat
+}



More information about the arch-commits mailing list