[arch-commits] Commit in lld/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Apr 11 07:06:36 UTC 2020
Date: Saturday, April 11, 2020 @ 07:06:36
Author: foutrelis
Revision: 379996
archrelease: copy trunk to staging-x86_64
Added:
lld/repos/staging-x86_64/
lld/repos/staging-x86_64/PKGBUILD
(from rev 379995, lld/trunk/PKGBUILD)
lld/repos/staging-x86_64/sphinx2.patch
(from rev 379995, lld/trunk/sphinx2.patch)
---------------+
PKGBUILD | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sphinx2.patch | 13 +++++++++++
2 files changed, 79 insertions(+)
Copied: lld/repos/staging-x86_64/PKGBUILD (from rev 379995, lld/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-11 07:06:36 UTC (rev 379996)
@@ -0,0 +1,66 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Jan "heftig" Steffens <jan.steffens at gmail.com>
+
+pkgname=lld
+pkgver=10.0.0
+pkgrel=1
+pkgdesc="Linker from the LLVM project"
+arch=('x86_64')
+url="https://lld.llvm.org/"
+license=('custom:Apache 2.0 with LLVM Exception')
+depends=('llvm-libs')
+makedepends=('llvm' 'cmake' 'ninja' 'python-sphinx')
+_source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
+source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig}
+ $_source_base/llvm-$pkgver.src.tar.xz{,.sig}
+ sphinx2.patch)
+sha256sums=('b9a0d7c576eeef05bc06d6e954938a01c5396cee1d1e985891e0b1cf16e3d708'
+ 'SKIP'
+ 'df83a44b3a9a71029049ec101fb0077ecbbdf5fe41e395215025779099a98fdf'
+ 'SKIP'
+ '7f7cca66a16c5a4aca132bfa1d86a7a2ff33612ec47d3422dc91ad4cc1810646')
+validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans at chromium.org>
+validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver.src"
+ mkdir build
+
+ # https://bugs.llvm.org/show_bug.cgi?id=41789
+ patch -Np1 -i ../sphinx2.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver.src/build"
+
+ cmake .. -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPYTHON_EXECUTABLE=/usr/bin/python \
+ -DBUILD_SHARED_LIBS=ON \
+ -DLLVM_LINK_LLVM_DYLIB=ON \
+ -DLLVM_INCLUDE_TESTS=ON \
+ -DLLVM_BUILD_TESTS=ON \
+ -DLLVM_BUILD_DOCS=ON \
+ -DLLVM_ENABLE_SPHINX=ON \
+ -DLLVM_EXTERNAL_LIT=/usr/bin/lit \
+ -DLLVM_MAIN_SRC_DIR="$srcdir/llvm-$pkgver.src"
+ ninja
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver.src/build"
+ ninja check-lld
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver.src/build"
+
+ DESTDIR="$pkgdir" ninja install
+ install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # Remove documentation sources
+ rm -r "$pkgdir"/usr/share/doc/$pkgname/html/{_sources,.buildinfo}
+}
+
+# vim:set ts=2 sw=2 et:
Copied: lld/repos/staging-x86_64/sphinx2.patch (from rev 379995, lld/trunk/sphinx2.patch)
===================================================================
--- staging-x86_64/sphinx2.patch (rev 0)
+++ staging-x86_64/sphinx2.patch 2020-04-11 07:06:36 UTC (rev 379996)
@@ -0,0 +1,13 @@
+diff --git a/docs/conf.py b/docs/conf.py
+index 62404b275..b5a3cdc68 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -134,7 +134,7 @@ html_last_updated_fmt = '%Y-%m-%d'
+ #html_use_smartypants = True
+
+ # Custom sidebar templates, maps document names to template names.
+-html_sidebars = {'index': 'indexsidebar.html'}
++html_sidebars = {'index': ['localtoc.html', 'relations.html', 'sourcelink.html', 'indexsidebar.html', 'searchbox.html']}
+
+ # Additional templates that should be rendered to pages, maps page names to
+ # template names.
More information about the arch-commits
mailing list