[arch-commits] Commit in ghdl/repos/community-x86_64 (PKGBUILD PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Fri Feb 19 15:08:53 UTC 2021


    Date: Friday, February 19, 2021 @ 15:08:53
  Author: ffy00
Revision: 865858

archrelease: copy trunk to community-x86_64

Added:
  ghdl/repos/community-x86_64/PKGBUILD
    (from rev 865857, ghdl/trunk/PKGBUILD)
Deleted:
  ghdl/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  382 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 195 insertions(+), 187 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-19 15:08:49 UTC (rev 865857)
+++ PKGBUILD	2021-02-19 15:08:53 UTC (rev 865858)
@@ -1,187 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-pkgbase=ghdl
-pkgname=('ghdl-mcode' 'ghdl-llvm' 'ghdl-gcc' 'python-pyghdl')
-_gcc=10.2.0
-_isl=0.23
-pkgver=1.0.0
-pkgrel=1
-pkgdesc='VHDL simulator'
-arch=('x86_64')
-url='https://github.com/ghdl/ghdl'
-license=('GPL2')
-depends=('gcc-ada')
-makedepends=('gmp' 'mpfr' 'libmpc' 'zlib' 'llvm' 'clang' 'python-setuptools')
-validpgpkeys=('33C235A34C46AA3FFB293709A328C3A2C3C45C06'  # Jakub Jelinek <jakub at redhat.com>
-              '13975A70E63C361C73AE69EF6EEB81F8981C74C7') # richard.guenther at gmail.com
-source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
-        "https://ftp.gnu.org/gnu/gcc/gcc-$_gcc/gcc-$_gcc.tar.xz"{,.sig}
-        "http://isl.gforge.inria.fr/isl-$_isl.tar.bz2")
-sha512sums=('efaa277132de3caeafedace137b58fa05bfa61567f12480092b1e8f74a4438e40c85c6e21cd0c5d65fbba3d116b65265e3939a8b5df951baf74837c1eca3196f'
-            '42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e'
-            'SKIP'
-            '05dfbdbbe852e2440b272808b23210374ce4ce46298eeb4c18ca8725db834b0da607338a371e3d07a78585fc7e0de182e75bf09dff11477937228bd97b7b83f7')
-
-prepare() {
-  cd "$srcdir"
-
-  cp -r $pkgbase-$pkgver ghdl-mcode
-  cp -r $pkgbase-$pkgver ghdl-llvm
-  cp -r $pkgbase-$pkgver ghdl-gcc
-  cp -r $pkgbase-$pkgver pyghdl
-
-  mkdir gcc-build
-
-  cd gcc-$_gcc
-
-  ln -s ../isl-$_isl isl
-
-  echo $_gcc > gcc/BASE-VER
-
-  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
-  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
-}
-
-_configure() {
-  ./configure \
-      --prefix=/usr \
-      --disable-werror \
-      --enable-checks \
-      --enable-libghdl \
-      --enable-synth $@
-}
-
-build() {
-  export GNATMAKE="gnatmake $MAKEFLAGS"
-
-  echo 'Building ghdl-mcode...'
-  cd "$srcdir"/ghdl-mcode
-
-  _configure
-
-  make
-
-  echo 'Building ghdl-llvm...'
-  cd "$srcdir"/ghdl-llvm
-
-  _configure --with-llvm-config
-
-  make
-
-  echo 'Building ghdl-gcc...'
-  cd "$srcdir"/ghdl-gcc
-
-  _configure --with-gcc="$srcdir"/gcc-$_gcc
-
-  make copy-sources
-
-  cd "$srcdir"/gcc-build
-
-  "$srcdir"/gcc-$_gcc/configure \
-      --prefix=/usr \
-      --libdir=/usr/lib \
-      --libexecdir=/usr/lib \
-      --enable-languages=vhdl \
-      --enable-default-pie \
-      --enable-default-ssp \
-      --with-isl \
-      --enable-plugin \
-      --enable-lto \
-      --disable-bootstrap \
-      --disable-multilib \
-      --disable-libada \
-      --disable-libsanitizer \
-      --disable-libssp \
-      --disable-libquadmath \
-      --disable-libgomp \
-      --disable-libvtv \
-      --with-pkgversion='Arch Linux Repositories' \
-      --with-bugurl='https://bugs.archlinux.org/'
-
-  make
-
-  cd "$srcdir"/ghdl-gcc
-
-  make \
-      GHDL_GCC_BIN="$srcdir"/gcc-build/gcc/ghdl \
-      GHDL1_GCC_BIN="--GHDL1=$srcdir/gcc-build/gcc/ghdl1" \
-      ghdllib
-
-  echo 'Building pyghdl...'
-  cd "$srcdir"/pyghdl
-
-  python setup.py build
-}
-
-#check() {
-#  cd $pkgbase-$pkgver/testsuite
-#
-#  echo 'Running tests for ghdl-mcode...'
-#  GHDL="$srcdir"/ghdl-mcode/ghdl_mcode ./testsuite.sh
-#
-#  echo 'Running tests for ghdl-llvm...'
-#  GHDL="$srcdir"/ghdl-llvm/ghdl1-llvm ./testsuite.sh
-#
-#  echo 'Running tests for ghdl-gcc...'
-#  GHDL="$srcdir"/gcc-build/gcc/ghdl ./testsuite.sh
-#}
-
-package_ghdl-mcode() {
-  pkgdesc="$pkgdesc (mcode backend)"
-  provides=('ghdl')
-  conflicts=('ghdl')
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_ghdl-llvm() {
-  pkgdesc="$pkgdesc (LLVM backend)"
-  depends+=('llvm-libs')
-  provides=('ghdl')
-  conflicts=('ghdl')
-  options=(!emptydirs)
-
-  cd $pkgname
-
-  make DESTDIR="$pkgdir" install
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ -type f -and \( -executable -o -name '*.o' \) -exec strip '{}' \;
-}
-
-package_ghdl-gcc() {
-  pkgdesc="$pkgdesc (GCC backend)"
-  options=(!emptydirs)
-
-  cd "$srcdir"/gcc-build
-
-  make DESTDIR="$pkgdir" install
-
-  # Remove files that conflict with the system gcc -- we only want to install the ghdl plugin
-  for FILE in $(find "$pkgdir" -not -type d); do
-    if [ -f /"${FILE#"$pkgdir"}" ]; then
-      rm -f "$FILE"
-    fi
-  done
-
-  find "$pkgdir"/usr/share -not -type d -not -name '*ghdl*' -delete
-  rm -rf "$pkgdir"/usr/lib64
-
-  # strip binaries
-  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc -type f -and \( -executable -o -name '*.o' \) -exec strip '{}' \;
-
-  cd "$srcdir"/ghdl-gcc
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_python-pyghdl() {
-  pkgdesc='Python bindings for GHDL'
-  depends=('ghdl' 'python-pydecor' 'python-pyvhdlmodel')
-
-  cd pyghdl
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}

Copied: ghdl/repos/community-x86_64/PKGBUILD (from rev 865857, ghdl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-02-19 15:08:53 UTC (rev 865858)
@@ -0,0 +1,195 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgbase=ghdl
+pkgname=('ghdl-mcode' 'ghdl-llvm' 'ghdl-gcc' 'python-pyghdl')
+_gcc=10.2.0
+_isl=0.23
+pkgver=1.0.0
+pkgrel=2
+pkgdesc='VHDL simulator'
+arch=('x86_64')
+url='https://github.com/ghdl/ghdl'
+license=('GPL2')
+depends=('gcc-ada')
+makedepends=('gmp' 'mpfr' 'libmpc' 'zlib' 'llvm' 'clang' 'python-setuptools')
+validpgpkeys=('33C235A34C46AA3FFB293709A328C3A2C3C45C06'  # Jakub Jelinek <jakub at redhat.com>
+              '13975A70E63C361C73AE69EF6EEB81F8981C74C7') # richard.guenther at gmail.com
+source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+        'fix-llvm11.patch::https://github.com/ghdl/ghdl/commit/a45cd97fa291b442002d70ac7e0968a24b0815f9.patch'
+        "https://ftp.gnu.org/gnu/gcc/gcc-$_gcc/gcc-$_gcc.tar.xz"{,.sig}
+        "http://isl.gforge.inria.fr/isl-$_isl.tar.bz2")
+sha512sums=('efaa277132de3caeafedace137b58fa05bfa61567f12480092b1e8f74a4438e40c85c6e21cd0c5d65fbba3d116b65265e3939a8b5df951baf74837c1eca3196f'
+            '5a0a811dbe21f5caa07b9497ce9d5ac13133f9101f7433ac7e6afb56379c7d624c97aaa43043e31ca88157abc57c0d8b3f78f508ef4a9ec620c9adbcf157a47e'
+            '42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e'
+            'SKIP'
+            '05dfbdbbe852e2440b272808b23210374ce4ce46298eeb4c18ca8725db834b0da607338a371e3d07a78585fc7e0de182e75bf09dff11477937228bd97b7b83f7')
+
+prepare() {
+  cd "$srcdir"
+
+  cd $pkgbase-$pkgver
+  patch -p1 -i ../fix-llvm11.patch
+  cd ..
+
+  cp -r $pkgbase-$pkgver ghdl-mcode
+  cp -r $pkgbase-$pkgver ghdl-llvm
+  cp -r $pkgbase-$pkgver ghdl-gcc
+  cp -r $pkgbase-$pkgver pyghdl
+
+  mkdir gcc-build
+
+  cd gcc-$_gcc
+
+  ln -s ../isl-$_isl isl
+
+  echo $_gcc > gcc/BASE-VER
+
+  # hack! - some configure tests for header files using "$CPP $CPPFLAGS"
+  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+}
+
+_configure() {
+  ./configure \
+      --prefix=/usr \
+      --disable-werror \
+      --enable-checks \
+      --enable-libghdl \
+      --enable-synth $@
+}
+
+build() {
+  export GNATMAKE="gnatmake $MAKEFLAGS"
+
+  echo 'Building ghdl-mcode...'
+  cd "$srcdir"/ghdl-mcode
+
+  _configure
+
+  make
+
+  echo 'Building ghdl-llvm...'
+  cd "$srcdir"/ghdl-llvm
+
+  _configure --with-llvm-config
+
+  make
+
+  echo 'Building ghdl-gcc...'
+  cd "$srcdir"/ghdl-gcc
+
+  _configure --with-gcc="$srcdir"/gcc-$_gcc
+
+  make copy-sources
+
+  cd "$srcdir"/gcc-build
+
+  "$srcdir"/gcc-$_gcc/configure \
+      --prefix=/usr \
+      --libdir=/usr/lib \
+      --libexecdir=/usr/lib \
+      --enable-languages=vhdl \
+      --enable-default-pie \
+      --enable-default-ssp \
+      --with-isl \
+      --enable-plugin \
+      --enable-lto \
+      --disable-bootstrap \
+      --disable-multilib \
+      --disable-libada \
+      --disable-libsanitizer \
+      --disable-libssp \
+      --disable-libquadmath \
+      --disable-libgomp \
+      --disable-libvtv \
+      --with-pkgversion='Arch Linux Repositories' \
+      --with-bugurl='https://bugs.archlinux.org/'
+
+  make
+
+  cd "$srcdir"/ghdl-gcc
+
+  make \
+      GHDL_GCC_BIN="$srcdir"/gcc-build/gcc/ghdl \
+      GHDL1_GCC_BIN="--GHDL1=$srcdir/gcc-build/gcc/ghdl1" \
+      ghdllib
+
+  echo 'Building pyghdl...'
+  cd "$srcdir"/pyghdl
+
+  python setup.py build
+}
+
+#check() {
+#  cd $pkgbase-$pkgver/testsuite
+#
+#  echo 'Running tests for ghdl-mcode...'
+#  GHDL="$srcdir"/ghdl-mcode/ghdl_mcode ./testsuite.sh
+#
+#  echo 'Running tests for ghdl-llvm...'
+#  GHDL="$srcdir"/ghdl-llvm/ghdl1-llvm ./testsuite.sh
+#
+#  echo 'Running tests for ghdl-gcc...'
+#  GHDL="$srcdir"/gcc-build/gcc/ghdl ./testsuite.sh
+#}
+
+package_ghdl-mcode() {
+  pkgdesc="$pkgdesc (mcode backend)"
+  provides=('ghdl')
+  conflicts=('ghdl')
+
+  cd $pkgname
+
+  make DESTDIR="$pkgdir" install
+}
+
+package_ghdl-llvm() {
+  pkgdesc="$pkgdesc (LLVM backend)"
+  depends+=('llvm-libs')
+  provides=('ghdl')
+  conflicts=('ghdl')
+  options=(!emptydirs)
+
+  cd $pkgname
+
+  make DESTDIR="$pkgdir" install
+
+  # strip binaries
+  find "$pkgdir"/usr/bin/ -type f -and \( -executable -o -name '*.o' \) -exec strip '{}' \;
+}
+
+package_ghdl-gcc() {
+  pkgdesc="$pkgdesc (GCC backend)"
+  provides=('ghdl')
+  conflicts=('ghdl')
+  options=(!emptydirs)
+
+  cd "$srcdir"/gcc-build
+
+  make DESTDIR="$pkgdir" install
+
+  # Remove files that conflict with the system gcc -- we only want to install the ghdl plugin
+  for FILE in $(find "$pkgdir" -not -type d); do
+    if [ -f /"${FILE#"$pkgdir"}" ]; then
+      rm -f "$FILE"
+    fi
+  done
+
+  find "$pkgdir"/usr/share -not -type d -not -name '*ghdl*' -delete
+  rm -rf "$pkgdir"/usr/lib64
+
+  # strip binaries
+  find "$pkgdir"/usr/bin/ "$pkgdir"/usr/lib/gcc -type f -and \( -executable -o -name '*.o' \) -exec strip '{}' \;
+
+  cd "$srcdir"/ghdl-gcc
+
+  make DESTDIR="$pkgdir" install
+}
+
+package_python-pyghdl() {
+  pkgdesc='Python bindings for GHDL'
+  depends=('ghdl' 'python-pydecor' 'python-pyvhdlmodel')
+
+  cd pyghdl
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}


More information about the arch-commits mailing list