1 # Contributor: LUO, Jian <jian (dot) luo (dot) cn _(at)_ gmail (dot) com>
6 pkgdesc="a Python-Based Hardware Description Language"
8 url="http://www.myhdl.org"
9 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
10 conditional_expression.patch)
12 makedepends=('iverilog')
13 optdepends=('iverilog: for Co-Simulation with Icarus Verilog')
15 md5sums=('7d4d0fc0f28ccc48b256734b57d71e2a'
16 'b137948aeefc37e5d012458c25d4ad6d')
19 cd $startdir/src/$pkgname-$pkgver
20 # Patch for conditional expression
21 patch -Np0 -i $srcdir/conditional_expression.patch || return 1
22 # Build and install python files
23 python setup.py install --root=$pkgdir --prefix=/usr
26 install -m 0644 -D ./LICENSE.txt $startdir/pkg/usr/share/licenses/$pkgname/LICENSE.txt
28 # Make cosimulation modules for Icarus Verilog
29 cd $startdir/src/$pkgname-$pkgver/cosimulation/icarus
31 install -m 0755 -D ./myhdl.vpi $pkgdir/usr/lib/ivl/myhdl.vpi
33 # vim: ts=2 sw=2 et ft=sh