[arch-commits] Commit in llvm/trunk (PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Mon May 30 19:01:49 UTC 2022


    Date: Monday, May 30, 2022 @ 19:01:49
  Author: foutrelis
Revision: 447205

upgpkg: llvm 13.0.1-5: drop recommonmark build dep

This is required in order to bump docutils to 0.18, though this means we
can no longer build LLVM docs (man page generation still works however).

Modified:
  llvm/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-30 18:49:37 UTC (rev 447204)
+++ PKGBUILD	2022-05-30 19:01:49 UTC (rev 447205)
@@ -3,7 +3,7 @@
 
 pkgname=('llvm' 'llvm-libs' 'llvm-ocaml')
 pkgver=13.0.1
-pkgrel=4
+pkgrel=5
 _ocaml_ver=4.13.1
 arch=('x86_64')
 url="https://llvm.org/"
@@ -10,8 +10,7 @@
 license=('custom:Apache 2.0 with LLVM Exception')
 makedepends=('cmake' 'ninja' 'libffi' 'libedit' 'ncurses' 'libxml2'
              "ocaml>=$_ocaml_ver" 'ocaml-ctypes' 'ocaml-findlib'
-             'python-setuptools' 'python-psutil' 'python-sphinx'
-             'python-recommonmark')
+             'python-setuptools' 'python-psutil' 'python-sphinx')
 options=('staticlibs' '!lto') # Getting thousands of test failures with LTO
 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
 source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig}
@@ -75,7 +74,7 @@
     -DLLVM_BUILD_TESTS=ON \
     -DLLVM_BUILD_DOCS=ON \
     -DLLVM_ENABLE_SPHINX=ON \
-    -DLLVM_ENABLE_DOXYGEN=OFF \
+    -DSPHINX_OUTPUT_HTML=OFF \
     -DSPHINX_WARNINGS_AS_ERRORS=OFF \
     -DLLVM_BINUTILS_INCDIR=/usr/include
   ninja all ocaml_doc
@@ -99,9 +98,6 @@
   python3 setup.py install --root="$pkgdir" -O1
   popd
 
-  # Remove documentation sources
-  rm -r "$pkgdir"/usr/share/doc/$pkgname/html/{_sources,.buildinfo}
-
   # The runtime libraries go into llvm-libs
   mv -f "$pkgdir"/usr/lib/lib{LLVM,LTO,Remarks}*.so* "$srcdir"
   mv -f "$pkgdir"/usr/lib/LLVMgold.so "$srcdir"
@@ -118,6 +114,9 @@
     cp "$srcdir/llvm-config.h" "$pkgdir/usr/include/llvm/Config/llvm-config.h"
   fi
 
+  # Remove empty documentation directory
+  rmdir "$pkgdir"/usr/share/doc{/llvm,}
+
   install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 



More information about the arch-commits mailing list