[arch-commits] Commit in lhapdf/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 06:09:53 UTC 2019
Date: Monday, November 4, 2019 @ 06:09:52
Author: felixonmars
Revision: 523313
archrelease: copy trunk to community-staging-x86_64
Added:
lhapdf/repos/community-staging-x86_64/
lhapdf/repos/community-staging-x86_64/PKGBUILD
(from rev 523311, lhapdf/trunk/PKGBUILD)
lhapdf/repos/community-staging-x86_64/fix_typo.patch
(from rev 523311, lhapdf/trunk/fix_typo.patch)
lhapdf/repos/community-staging-x86_64/lhapdf.install
(from rev 523311, lhapdf/trunk/lhapdf.install)
----------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
fix_typo.patch | 12 ++++++++++++
lhapdf.install | 11 +++++++++++
3 files changed, 66 insertions(+)
Copied: lhapdf/repos/community-staging-x86_64/PKGBUILD (from rev 523311, lhapdf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-11-04 06:09:52 UTC (rev 523313)
@@ -0,0 +1,43 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Frank Siegert <frank dot siegert at googlemail dot com>
+# Contributor: JP-Ellis <josh at jpellis dot me>
+pkgname=lhapdf
+pkgver=6.2.3
+pkgrel=4
+pkgdesc="A particle physics tool for evaluating PDFs from discretised data files"
+arch=('x86_64')
+url="https://lhapdf.hepforge.org/"
+license=('GPL3')
+makedepends=('cython')
+depends=('python' 'python2')
+install=lhapdf.install
+source=("https://www.hepforge.org/archive/lhapdf/LHAPDF-${pkgver}.tar.gz"
+ 'fix_typo.patch')
+sha256sums=('d6e63addc56c57b6286dc43ffc56d901516f4779a93a0f1547e14b32cfd82dd1'
+ '6ababeef3831d1bc2f708d0fbbf5e759aa983a83f9bec18706d3cb1ce257b536')
+
+prepare() {
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ sed -e 's/print Cython.Compiler.Version.version/print (Cython.Compiler.Version.version)/g' -i m4/cython.m4
+ patch -Np1 -i "${srcdir}/fix_typo.patch"
+}
+
+build() {
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ autoreconf -i
+ ## need to rebuild Python extension code with up-to-date Cython for Python 3.7
+ ## will eventually be fixed upstream
+ touch wrappers/python/lhapdf.pyx
+ ./configure --prefix=/usr --datadir=/usr/share/lhapdf --docdir=/usr/share/doc/lhapdf --pdfdir=/usr/share/lhapdf/LHAPDF
+ make
+}
+
+check() {
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ make -k check
+}
+
+package() {
+ cd "${srcdir}/LHAPDF-${pkgver}"
+ make DESTDIR="${pkgdir}/" install
+}
Copied: lhapdf/repos/community-staging-x86_64/fix_typo.patch (from rev 523311, lhapdf/trunk/fix_typo.patch)
===================================================================
--- community-staging-x86_64/fix_typo.patch (rev 0)
+++ community-staging-x86_64/fix_typo.patch 2019-11-04 06:09:52 UTC (rev 523313)
@@ -0,0 +1,12 @@
+diff -aur LHAPDF-6.2.3-old/bin/lhapdf LHAPDF-6.2.3-new/bin/lhapdf
+--- LHAPDF-6.2.3-old/bin/lhapdf 2019-05-11 23:06:38.000000000 +0300
++++ LHAPDF-6.2.3-new/bin/lhapdf 2019-05-27 13:38:55.737898779 +0300
+@@ -287,7 +287,7 @@
+ (by default lists all sets available for download; use --installed or --outdated to explore those installed on the current system)"""
+ ap = argparse.ArgumentParser(description=__doc__, usage="%(prog)s list [options] [pattern...]")
+ ap.add_argument("PATTERNS", nargs="*", help="patterns to match PDF sets against")
+- ag = ap.add_add_mutually_exclusive_group()
++ ag = ap.add_mutually_exclusive_group()
+ ag.add_argument("--installed", dest="INSTALLED", action="store_true", help="list installed PDF sets")
+ ag.add_argument("--outdated", dest="OUTDATED", action="store_true", help="list installed, but outdated, PDF sets")
+ ap.add_argument("--codes", dest="CODES", action="store_true", help="additionally show ID codes")
Copied: lhapdf/repos/community-staging-x86_64/lhapdf.install (from rev 523311, lhapdf/trunk/lhapdf.install)
===================================================================
--- community-staging-x86_64/lhapdf.install (rev 0)
+++ community-staging-x86_64/lhapdf.install 2019-11-04 06:09:52 UTC (rev 523313)
@@ -0,0 +1,11 @@
+post_install() {
+ echo 'PDF sets are stored in /usr/share/lhapdf/LHAPDF'
+ echo 'You can download PDF sets with the "lhapdf" command like so:'
+ echo ' $ lhapdf ls'
+ echo ' # sudo lhapdf install CT10'
+}
+
+post_upgrade() {
+ echo 'To update your PDF sets, please run:'
+ echo ' # lhapdf install $(lhapdf list --outdated)'
+}
More information about the arch-commits
mailing list