Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding recipes for magic #18295

Merged
merged 1 commit into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions recipes/magic/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -ex

./configure --prefix="${PREFIX}"
make V=1
make V=1 install

20 changes: 20 additions & 0 deletions recipes/magic/csh.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/scripts/makedbh b/scripts/makedbh
index 01e4fa5..d6299c6 100755
--- a/scripts/makedbh
+++ b/scripts/makedbh
@@ -1,4 +1,4 @@
-#!/bin/csh -f
+#!/usr/bin/env tcsh
#
# makes the "database.h" (1st argument, $1) file from "database.h.in"
# (2nd argument, $2), setting various mask operation definitions
diff --git a/scripts/printmans b/scripts/printmans
index 05e2e1f..25e0265 100755
--- a/scripts/printmans
+++ b/scripts/printmans
@@ -1,4 +1,4 @@
-#!/bin/csh -f
+#!/usr/bin/env tcsh

set cmd=($1)
shift argv
56 changes: 56 additions & 0 deletions recipes/magic/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{% set name = 'magic' %}
{% set version = '8.3.276' %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/RTimothyEdwards/magic/archive/refs/tags/{{ version }}.tar.gz
sha256: 24247d6de94c1668acb7b49d68c43c41bd4f1617846ebbfaaaacfef68e487550
patches:
- csh.patch

build:
number: 0
skip: true # [not linux64]

requirements:
build:
- autoconf
- automake
- make
- tcsh
- python
- {{ compiler('c') }}
host:
- tk
- xorg-libx11
- cairo
run:
# missing run_exports
- xorg-libx11

test:
commands:
- magic -dnull -noconsole --version

about:
home: http://opencircuitdesign.com/magic/
license: MIT
license_family: MIT
license_file: LICENSE
summary: 'Magic VLSI Layout Tool'
description: |
Magic is a venerable VLSI layout tool, written in the 1980's at Berkeley by John Ousterhout, now famous primarily for writing the scripting interpreter language Tcl.
Due largely in part to its liberal Berkeley open-source license, magic has remained popular with universities and small companies.
The open-source license has allowed VLSI engineers with a bent toward programming to implement clever ideas and help magic stay abreast of fabrication technology.
However, it is the well thought-out core algorithms which lend to magic the greatest part of its popularity.
Magic is widely cited as being the easiest tool to use for circuit layout, even for people who ultimately rely on commercial tools for their product design flow.
doc_url: http://opencircuitdesign.com/magic/magic_docs.html
dev_url: https://github.com/RTimothyEdwards/magic

extra:
recipe-maintainers:
- proppy
- curtisma