[arch-commits] Commit in lhapdf/repos/community-x86_64 (4 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Thu Aug 18 15:20:32 UTC 2022


    Date: Thursday, August 18, 2022 @ 15:20:32
  Author: kgizdov
Revision: 1267373

archrelease: copy trunk to community-x86_64

Added:
  lhapdf/repos/community-x86_64/PKGBUILD
    (from rev 1267372, lhapdf/trunk/PKGBUILD)
  lhapdf/repos/community-x86_64/lhapdf.install
    (from rev 1267372, lhapdf/trunk/lhapdf.install)
Deleted:
  lhapdf/repos/community-x86_64/PKGBUILD
  lhapdf/repos/community-x86_64/lhapdf.install

----------------+
 PKGBUILD       |  100 ++++++++++++++++++++++++++++---------------------------
 lhapdf.install |   22 ++++++------
 2 files changed, 62 insertions(+), 60 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-18 15:20:25 UTC (rev 1267372)
+++ PKGBUILD	2022-08-18 15:20:32 UTC (rev 1267373)
@@ -1,49 +0,0 @@
-# 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.5.2
-pkgrel=1
-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')
-install=lhapdf.install
-source=("https://www.hepforge.org/archive/lhapdf/LHAPDF-${pkgver}.tar.gz")
-sha256sums=('608a2753455e067a9940b5c16bc86ab6c47e2c749bc9dd19796996eb4352b2fd')
-
-prepare() {
-  cd "${srcdir}/LHAPDF-${pkgver}"
-  sed -e 's/print Cython.Compiler.Version.version/print (Cython.Compiler.Version.version)/g' -i m4/cython.m4
-}
-
-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 \
-    --sysconfdir=/etc \
-    --localstatedir=/var \
-    --runstatedir=/run \
-    --datarootdir=/usr/share/${pkgname} \
-    --datadir=/usr/share/${pkgname} \
-    --docdir=/usr/share/doc/${pkgname} \
-    --pdfdir=/usr/share/${pkgname}/LHAPDF \
-    --localedir=/usr/share/locale
-  make
-}
-
-check() {
-  cd "${srcdir}/LHAPDF-${pkgver}"
-  make -k check
-}
-
-package() {
-  cd "${srcdir}/LHAPDF-${pkgver}"
-  make DESTDIR="${pkgdir}/" install
-}

Copied: lhapdf/repos/community-x86_64/PKGBUILD (from rev 1267372, lhapdf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-18 15:20:32 UTC (rev 1267373)
@@ -0,0 +1,51 @@
+# 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.5.2
+pkgrel=2
+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-numpy')
+install=lhapdf.install
+source=("https://www.hepforge.org/archive/lhapdf/LHAPDF-${pkgver}.tar.gz")
+sha256sums=('608a2753455e067a9940b5c16bc86ab6c47e2c749bc9dd19796996eb4352b2fd')
+
+prepare() {
+  cd "${srcdir}/LHAPDF-${pkgver}"
+  sed -e 's/print Cython.Compiler.Version.version/print (Cython.Compiler.Version.version)/g' -i m4/cython.m4
+}
+
+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 \
+    --sysconfdir=/etc \
+    --localstatedir=/var \
+    --runstatedir=/run \
+    --datarootdir=/usr/share/${pkgname} \
+    --datadir=/usr/share/${pkgname} \
+    --docdir=/usr/share/doc/${pkgname} \
+    --pdfdir=/usr/share/${pkgname}/LHAPDF \
+    --localedir=/usr/share/locale
+  # for some reason Python build fails otherwise
+  export RIVET_LOCAL=ON
+  make
+}
+
+check() {
+  cd "${srcdir}/LHAPDF-${pkgver}"
+  make -k check
+}
+
+package() {
+  cd "${srcdir}/LHAPDF-${pkgver}"
+  make DESTDIR="${pkgdir}/" install
+}

Deleted: lhapdf.install
===================================================================
--- lhapdf.install	2022-08-18 15:20:25 UTC (rev 1267372)
+++ lhapdf.install	2022-08-18 15:20:32 UTC (rev 1267373)
@@ -1,11 +0,0 @@
-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)'
-}

Copied: lhapdf/repos/community-x86_64/lhapdf.install (from rev 1267372, lhapdf/trunk/lhapdf.install)
===================================================================
--- lhapdf.install	                        (rev 0)
+++ lhapdf.install	2022-08-18 15:20:32 UTC (rev 1267373)
@@ -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