Skip to content

Commit

Permalink
Add zachjs-sv2v package
Browse files Browse the repository at this point in the history
The recipe is based on 'SymbiFlow/conda-packages' one,
but we forced it to use host's compiler and older
version of Haskell's stack.

Motives were described in this PR:
#12
  • Loading branch information
tjurtsch committed Nov 13, 2020
1 parent d1c84c8 commit 763076f
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ addons:
homebrew:
packages:
update: false
apt:
update: true
packages:
- build-essential

stages:
- name: "No dependencies" # Doesn't depend on anything apart from upstream packages
Expand Down Expand Up @@ -70,6 +74,10 @@ jobs:
os: linux
env:
- PACKAGE=capnproto
- stage: "No dependencies"
os: linux
env:
- PACKAGE=zachjs-sv2v

- stage: "Has first level dependencies"
os: linux
Expand Down
8 changes: 8 additions & 0 deletions zachjs-sv2v/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/bash

set -x
set -e

make
install -D bin/sv2v $PREFIX/bin/zachjs-sv2v

2 changes: 2 additions & 0 deletions zachjs-sv2v/condarc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
channels:
- conda-forge
33 changes: 33 additions & 0 deletions zachjs-sv2v/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('v','') or '0.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}

package:
name: zachjs-sv2v
version: {{ version }}

source:
git_url: https://github.com/zachjs/sv2v.git

build:
# number: 201803050325
number: {{ environ.get('DATE_NUM') }}
# string: 20180305_0325
string: {{ environ.get('DATE_STR') }}
script_env:
- CI
- TRAVIS

requirements:
build:
- stack<2.5.1

test:
commands:
- zachjs-sv2v --help

about:
home: https://github.com/zachjs/sv2v
license: BSD
license_file:
- LICENSE
- NOTICE
summary: 'sv2v converts SystemVerilog (IEEE 1800-2017) to Verilog (IEEE 1364-2005), with an emphasis on supporting synthesizable language constructs.'

0 comments on commit 763076f

Please sign in to comment.