summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Prost-Boucle2021-03-03 09:07:26 +0100
committerAdrien Prost-Boucle2021-03-03 09:07:26 +0100
commitfc66defd335413810ff55d30901aaa115ec13a13 (patch)
tree73ff54fb274462752c29ea0918e5b692fa31a3a6
parent08ca57df230bdf6cade1378437a3b9bec83e5b19 (diff)
downloadaur-fc66defd335413810ff55d30901aaa115ec13a13.tar.gz
Fix gcc-ada dependency + add optional check dependencies
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD22
2 files changed, 28 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 84cd72b1d74..ec578d3a8ae 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,22 @@
# Generated by mksrcinfo v8
-# Mon Dec 2 23:23:56 UTC 2019
+# Wed Mar 3 08:07:12 UTC 2021
pkgbase = ghdl-mcode-git
pkgdesc = VHDL simulator - mcode back-end
- pkgver = 0.37dev.r4250.gd11ad228
+ pkgver = 2.0.0dev.r6030.ga03aeddd
pkgrel = 1
url = https://github.com/ghdl/ghdl
arch = i686
arch = x86_64
license = GPLv2
- makedepends = gcc-ada
+ checkdepends = python-pytest
+ checkdepends = python-pydecor
+ checkdepends = python-pyvhdlmodel
makedepends = git
- provides = ghdl=0.37dev.r4250.gd11ad228
- provides = ghdl-git=0.37dev.r4250.gd11ad228
+ depends = gcc-ada
+ optdepends = python-pydecor: for pyGHDL
+ optdepends = python-pyvhdlmodel: for pyGHDL.dom
+ provides = ghdl=2.0.0dev.r6030.ga03aeddd
+ provides = ghdl-git=2.0.0dev.r6030.ga03aeddd
conflicts = ghdl
conflicts = ghdl-gcc-git
conflicts = ghdl-llvm-git
diff --git a/PKGBUILD b/PKGBUILD
index e77a0fae763..90f919b1b60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Adrien Prost-Boucle <adrien.prost-boucle@laposte.net>
pkgname=ghdl-mcode-git
-pkgver=0.37dev.r4250.gd11ad228
+pkgver=2.0.0dev.r6030.ga03aeddd
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='VHDL simulator - mcode back-end'
@@ -10,7 +10,13 @@ license=('GPLv2')
provides=("ghdl=$pkgver" "ghdl-git=$pkgver")
conflicts=('ghdl' 'ghdl-gcc-git' 'ghdl-llvm-git')
-makedepends=('gcc-ada' 'git')
+makedepends=('git')
+depends=('gcc-ada')
+checkdepends=('python-pytest' 'python-pydecor' 'python-pyvhdlmodel')
+optdepends=(
+ 'python-pydecor: for pyGHDL'
+ 'python-pyvhdlmodel: for pyGHDL.dom'
+)
source=(
"ghdl::git://github.com/ghdl/ghdl.git"
@@ -29,7 +35,7 @@ pkgver() {
#local _gitver=`git log -n 1 --date=short | sed -n -e 's/.*Date:\s*\([0-9-]*\).*/\1/p' | tr -d -`
# Revision number
local _gitrev=`git rev-list --count HEAD`
- # Short hash oatest commit
+ # Short hash of latest commit
local _githash=`git rev-parse --short HEAD`
#echo $_distver.git$_gitver;
@@ -39,7 +45,6 @@ pkgver() {
build() {
cd "${srcdir}/ghdl"
- # Note : Add --enable-openieee to use free (but not complete) implementation of IEEE VHDL libs
./configure \
--prefix=/usr/ \
--enable-libghdl \
@@ -49,6 +54,15 @@ build() {
}
+check() {
+ cd "${srcdir}/ghdl"
+
+ mkdir include
+ ln -s ../src/grt/vpi_user.h include/
+
+ make test
+}
+
package() {
cd "${srcdir}/ghdl"