[arch-commits] Commit in scons/repos/staging-any (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 10:44:49 UTC 2020
Date: Thursday, November 12, 2020 @ 10:44:48
Author: foutrelis
Revision: 400499
archrelease: copy trunk to staging-any
Added:
scons/repos/staging-any/PKGBUILD
(from rev 400498, scons/trunk/PKGBUILD)
Deleted:
scons/repos/staging-any/PKGBUILD
----------+
PKGBUILD | 192 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 96 insertions(+), 96 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 10:44:45 UTC (rev 400498)
+++ PKGBUILD 2020-11-12 10:44:48 UTC (rev 400499)
@@ -1,96 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-# 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.2
-pkgrel=3
-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' 'rpm-tools' 'swig' 'zip')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
-sha512sums=('b096501ea37e62f596f16b46b4022ad7979f359b10849d4c5fa17731a6c3ec34e0890374de175a8aa7539ae677777142ccf5dfae39a74696efcdbcc00e89bccf')
-
-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')"
- # change globals in all scripts
- for _script in $(find src/ -type f -iname "*.py"); do
- 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 "${_script}"
- done
- # copy scripts to correct locations
- for _script in scons{,ign,-time,-configure-cache}; do
- cp -v "src/script/${_script}.py" "src/script/${_script}"
- done
- # 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 || echo "Tests passing with 'NO RESULT' count as failed."
-}
-
-package() {
- local py_ver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
- cd "${pkgname}-${pkgver}/src"
- python setup.py install --prefix=/usr \
- --skip-build \
- --optimize=1 \
- --standard-lib \
- --install-data=/usr/share \
- --root="$pkgdir"
- # strip $pkgdir from embedded paths:
- python -m compileall -d "/usr/lib/python${py_ver}" \
- "${pkgdir}/usr/lib/python${py_ver}"
- python -O -m compileall -d "/usr/lib/python${py_ver}" \
- "${pkgdir}/usr/lib/python${py_ver}"
- 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/staging-any/PKGBUILD (from rev 400498, scons/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 10:44:48 UTC (rev 400499)
@@ -0,0 +1,96 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# 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.2
+pkgrel=4
+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' 'rpm-tools' 'swig' 'zip')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('b096501ea37e62f596f16b46b4022ad7979f359b10849d4c5fa17731a6c3ec34e0890374de175a8aa7539ae677777142ccf5dfae39a74696efcdbcc00e89bccf')
+
+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')"
+ # change globals in all scripts
+ for _script in $(find src/ -type f -iname "*.py"); do
+ 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 "${_script}"
+ done
+ # copy scripts to correct locations
+ for _script in scons{,ign,-time,-configure-cache}; do
+ cp -v "src/script/${_script}.py" "src/script/${_script}"
+ done
+ # 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 || echo "Tests passing with 'NO RESULT' count as failed."
+}
+
+package() {
+ local py_ver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ cd "${pkgname}-${pkgver}/src"
+ python setup.py install --prefix=/usr \
+ --skip-build \
+ --optimize=1 \
+ --standard-lib \
+ --install-data=/usr/share \
+ --root="$pkgdir"
+ # strip $pkgdir from embedded paths:
+ python -m compileall -d "/usr/lib/python${py_ver}" \
+ "${pkgdir}/usr/lib/python${py_ver}"
+ python -O -m compileall -d "/usr/lib/python${py_ver}" \
+ "${pkgdir}/usr/lib/python${py_ver}"
+ 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