Skip to content
New issue

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

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

Already on GitHub? # to your account

misc/magic: remove conda-forge deps #195

Merged
merged 6 commits into from
Mar 29, 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
4 changes: 4 additions & 0 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
OS_NAME: "linux"
steps:
- uses: actions/checkout@v2
- name: 'Install csh'
run: |
sudo apt update
sudo apt install -y csh
- uses: hdl/conda-ci@master

#2
Expand Down
3 changes: 0 additions & 3 deletions misc/magic/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ case "${UNAME_OUT}" in
exit;;
esac

tcsh=`which tcsh`
ln -s $tcsh $(dirname $tcsh)/csh

./configure --prefix="${PREFIX}" --with-cairo="${BUILD_PREFIX}/include"

make V=1 -j$CPU_COUNT
Expand Down
2 changes: 0 additions & 2 deletions misc/magic/condarc

This file was deleted.

20 changes: 0 additions & 20 deletions misc/magic/csh.patch

This file was deleted.

119 changes: 119 additions & 0 deletions misc/magic/make-errors.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
diff --git a/Makefile b/Makefile
index e1d61fb..dc0efc4 100644
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,10 @@ INSTALL_CAD_DIRS = windows doc ${TECH}
all: $(ALL_TARGET)

standard:
- @echo --- errors and warnings logged in file make.log
- @${MAKE} mains 2>&1 | tee -a make.log | egrep -i "(.c:|Stop.|---)"
+ @${MAKE} mains

tcl:
- @echo --- errors and warnings logged in file make.log
- @${MAKE} tcllibrary 2>&1 | tee -a make.log | egrep -i "(.c:|Stop.|---)"
+ @${MAKE} tcllibrary

force: clean all

@@ -36,12 +34,12 @@ config:
tcllibrary: database/database.h modules
@echo --- making Tcl shared libraries
for dir in ${PROGRAMS}; do \
- (cd $$dir && ${MAKE} tcl-main); done
+ (cd $$dir && ${MAKE} tcl-main) || exit 1; done

mains: database/database.h modules libs
@echo --- making main programs
for dir in ${PROGRAMS}; do \
- (cd $$dir && ${MAKE} main); done
+ (cd $$dir && ${MAKE} main) || exit 1; done

database/database.h: database/database.h.in
@echo --- making header file database/database.h
@@ -50,18 +48,18 @@ database/database.h: database/database.h.in
modules: database/database.h depend
@echo --- making modules
for dir in ${MODULES} ${PROGRAMS}; do \
- (cd $$dir && ${MAKE} module); done
+ (cd $$dir && ${MAKE} module) || exit 1; done

libs:
@echo --- making libraries
for dir in ${LIBRARIES}; do \
- (cd $$dir && ${MAKE} lib); done
+ (cd $$dir && ${MAKE} lib) || exit 1; done

depend: database/database.h
@echo --- making dependencies
${RM} */Depend
for dir in ${MODULES} ${UNUSED_MODULES} ${PROGRAMS}; do \
- (cd $$dir && ${MAKE} depend); done
+ (cd $$dir && ${MAKE} depend) || exit 1; done

install: $(INSTALL_TARGET)

@@ -72,9 +70,9 @@ install-magic:

install-real: install-dirs
for dir in ${INSTALL_CAD_DIRS}; do \
- (cd $$dir && ${MAKE} install); done
+ (cd $$dir && ${MAKE} install) || exit 1; done
for dir in ${PROGRAMS}; do \
- (cd $$dir && ${MAKE} install); done
+ (cd $$dir && ${MAKE} install) || exit 1; done

install-tcl-dirs:
${MAGICDIR}/scripts/mkdirs $(DESTDIR)${INSTALL_BINDIR} \
@@ -93,11 +91,11 @@ install-tcl:

install-tcl-real: install-tcl-dirs
for dir in ${INSTALL_CAD_DIRS} ${PROGRAMS}; do \
- (cd $$dir && ${MAKE} install-tcl); done
+ (cd $$dir && ${MAKE} install-tcl) || exit 1; done

clean:
for dir in ${MODULES} ${PROGRAMS} ${TECH} ${UNUSED_MODULES}; do \
- (cd $$dir && ${MAKE} clean); done
+ (cd $$dir && ${MAKE} clean) || exit 1; done
${RM} *.tmp */*.tmp *.sav */*.sav *.log TAGS tags

distclean:
@@ -121,7 +119,7 @@ dist:

clean-mains:
for dir in ${PROGRAMS}; do \
- (cd $$dir && ${RM} $$dir); done
+ (cd $$dir && ${RM} $$dir) || exit 1; done

tags:
${RM} tags
diff --git a/scripts/configure b/scripts/configure
index 549324e..5c91663 100755
--- a/scripts/configure
+++ b/scripts/configure
@@ -9504,9 +9504,6 @@ echo

echo "Use 'make' to compile and 'make install' to install."
echo
-echo "Errors may not be printed to stdout: see files 'make.log' "
-echo " and 'install.log' for complete error summary."
-echo
echo "-----------------------------------------------------------"
echo

diff --git a/scripts/configure.in b/scripts/configure.in
index 79b4cd8..1e5ace6 100644
--- a/scripts/configure.in
+++ b/scripts/configure.in
@@ -1910,9 +1910,6 @@ echo

echo "Use 'make' to compile and 'make install' to install."
echo
-echo "Errors may not be printed to stdout: see files 'make.log' "
-echo " and 'install.log' for complete error summary."
-echo
echo "-----------------------------------------------------------"
echo

43 changes: 22 additions & 21 deletions misc/magic/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source:
git_url: https://github.com/RTimothyEdwards/magic
git_rev: master
patches:
- csh.patch
- make-errors.patch

build:
# number: 201803050325
Expand All @@ -23,34 +23,35 @@ build:

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- autoconf
- automake
- make
- tcsh
- python
- {{ compiler('c') }}
- {{ cdt('xorg-x11-proto-devel') }} # [linux]
- {{ cdt('libx11-devel') }} # [linux]
- {{ cdt('libxau-devel') }} # [linux]
- {{ cdt('libxext-devel') }} # [linux]
- {{ cdt('libxrender-devel') }} # [linux]
host:
- tcsh
- cairo
- m4
- tk
- ncurses
- python>=3.7
- readline
- fontconfig
- xorg-libx11
run:
- python>=3.7
- cairo
- ncurses
- readline
- tk
- xorg-libx11

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

about:
home: http://opencircuitdesign.com/magic/
license: MIT
license_family: MIT
license_file: LICENSE
summary: "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."

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