summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-electronics/magic
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-electronics/magic')
-rw-r--r--sci-electronics/magic/Manifest5
-rw-r--r--sci-electronics/magic/files/magic-7.5.202-include.patch20
-rw-r--r--sci-electronics/magic/files/magic-7.5.202-install.patch15
-rw-r--r--sci-electronics/magic/files/magic-7.5.231-blt-test.patch11
-rw-r--r--sci-electronics/magic/files/magic-7.5.231-ldflags.patch16
-rw-r--r--sci-electronics/magic/files/magic-7.5.231-verbose-build.patch35
-rw-r--r--sci-electronics/magic/files/magic-ldflags.patch40
-rw-r--r--sci-electronics/magic/magic-7.5.202-r1.ebuild65
-rw-r--r--sci-electronics/magic/magic-7.5.231.ebuild74
-rw-r--r--sci-electronics/magic/magic-8.0.138.ebuild77
-rw-r--r--sci-electronics/magic/magic-8.0.207.ebuild74
-rw-r--r--sci-electronics/magic/metadata.xml25
12 files changed, 457 insertions, 0 deletions
diff --git a/sci-electronics/magic/Manifest b/sci-electronics/magic/Manifest
new file mode 100644
index 000000000000..bf8e60ca0eef
--- /dev/null
+++ b/sci-electronics/magic/Manifest
@@ -0,0 +1,5 @@
+DIST 2002a.tar.gz 6601961 SHA256 8b47889fcbcd36b1cdc2e51fc0aeb8c17b7780f559b01ca1209f9ed5f8c38d19 SHA512 cb8e30df77e58eb37f7ada775db8a8411612897b1cdbcb59b0c4bd814fa73c6cb10a5461e27e9eecb0fe452e194ee95fbb02b568b86848e501b9c37cc24de39e WHIRLPOOL f3cadaaaa48e4603115cd9c34e51a5beb51cc8cdbec3bf4352750c91476943eb182c9bc3865f8a7adfe115012320af7d8132d5d279ea61618f3a713f08cff0c6
+DIST magic-7.5.202.tgz 3692294 SHA256 975cb3962c8a97e3caae83c5de309bf09e623a829bd36983e82d28104067d99c SHA512 62be6e781ab51a4129a520b91a35ff5c280e7e9cb825e5d71e4012205dd0b777ca8c2355fb071d7d716977d477bddd44e45ca2810d3f97bb63dfe46c5ad1ba80 WHIRLPOOL 5deea41d84752b5706c505c9f33f0c7ab9c020a905f3d399279d9e0b423963cae59c17b73b86994bd04163ca2891eb6137ebc9a62bda3786c8d2e0da4f1a974c
+DIST magic-7.5.231.tgz 3751133 SHA256 48331d4ecfaf0239c746cc0e6f249187c57e751540c48b2c933afcd35430bf29 SHA512 ff1aa170c0fdbeb78aca7328370f40fde1a7276dd77e1b4d4d53f121b38ffecdc8b0d860dc92c1dfeccd1dd7685ee6079aa19984757025fc743ae1a88ed0aace WHIRLPOOL b1a6e0a80235ba0ef4d794436ce29a8cd42d15de48ab8a67e75cb5efcf4c316ce1b1099f1cb5f009eab831082166b80172afd152f7901aa34a5a471fc366edbe
+DIST magic-8.0.138.tgz 3880247 SHA256 85b49c587c09e874f8538386a0f8e2b5b5d034708ae12cd21063994b1cd74c8c SHA512 934fb0afef7fd7aca1307a1e9c86d23531d4188d1bd03bbfbb3609cabec115f5ce66ef02b75f5a0aedbace0b1f68260585b279a6d7bc45f58a4e0ac09cd99d36 WHIRLPOOL 75c84ed731a0405492bfbe364a9d774901895b009352659e5fb690d97830a6d30998deaf15f640d47b37216ea2dd61a93118910731f0751f4c9c7451306a788f
+DIST magic-8.0.207.tgz 3893605 SHA256 90eb044f742e2746d0f365fd9c0d33f7be0a290ca9bfedad4973bbabb24008b1 SHA512 034387d774f653d6de419d597564e96242b87bf3c478045e5a649f490fe4e5431c983f6667b5900ec9ae283af2775404dfbdcbaf18419f85d7242d492360d32b WHIRLPOOL 7573513062242e9be98371c34198c72213eacbf6d23ee30cbbc842427d1af7fefa2856f5c825547406287a26f243df6ca4854357e64b959241ddccd1b2cd72bc
diff --git a/sci-electronics/magic/files/magic-7.5.202-include.patch b/sci-electronics/magic/files/magic-7.5.202-include.patch
new file mode 100644
index 000000000000..f1fc95a60b32
--- /dev/null
+++ b/sci-electronics/magic/files/magic-7.5.202-include.patch
@@ -0,0 +1,20 @@
+--- magic-7.5.202/textio/txInput.c
++++ magic-7.5.202/textio/txInput.c
+@@ -21,6 +21,7 @@
+ #endif /* not lint */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/time.h>
+ #include <sys/types.h>
+--- magic-8.0.131/graphics/grX11su3.c
++++ magic-8.0.131/graphics/grX11su3.c
+@@ -20,6 +20,7 @@
+
+ #include <stdio.h>
+ #include <string.h>
++#include <math.h>
+ #include <X11/Xlib.h>
+
+ #include "utils/magic.h"
diff --git a/sci-electronics/magic/files/magic-7.5.202-install.patch b/sci-electronics/magic/files/magic-7.5.202-install.patch
new file mode 100644
index 000000000000..6e28b950c510
--- /dev/null
+++ b/sci-electronics/magic/files/magic-7.5.202-install.patch
@@ -0,0 +1,15 @@
+--- magic-7.5.202/rules.mak
++++ magic-7.5.202/rules.mak
+@@ -43,9 +43,9 @@
+ ${RM} ${MODULE}
+ ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} lib${MODULE}.o ${EXTRA_LIBS} -o ${MODULE} ${LIBS}
+
+-${BINDIR}/${MODULE}${EXEEXT}: ${MODULE}${EXEEXT}
+- ${RM} ${BINDIR}/${MODULE}${EXEEXT}
+- ${CP} ${MODULE}${EXEEXT} ${BINDIR}
++${DESTDIR}${BINDIR}/${MODULE}${EXEEXT}: ${MODULE}${EXEEXT}
++ ${RM} ${DESTDIR}${BINDIR}/${MODULE}${EXEEXT}
++ ${CP} ${MODULE}${EXEEXT} ${DESTDIR}${BINDIR}
+
+ ../database/database.h: ../database/database.h.in
+ @echo --- making header file database/database.h
diff --git a/sci-electronics/magic/files/magic-7.5.231-blt-test.patch b/sci-electronics/magic/files/magic-7.5.231-blt-test.patch
new file mode 100644
index 000000000000..bf78f3f5b6b2
--- /dev/null
+++ b/sci-electronics/magic/files/magic-7.5.231-blt-test.patch
@@ -0,0 +1,11 @@
+--- magic-7.5.231/scripts/configure.in
++++ magic-7.5.231/scripts/configure.in
+@@ -1695,7 +1695,7 @@
+ if {[[catch {package require BLT}]]} {puts stdout no} {puts stdout yes}
+ exit
+ EOF
+- usingBLT=`cat temp.out`
++ usingBLT=yes
+ rm -f temp.out
+ if test "x${usingBLT}" = "xyes" ; then
+ echo "yes"
diff --git a/sci-electronics/magic/files/magic-7.5.231-ldflags.patch b/sci-electronics/magic/files/magic-7.5.231-ldflags.patch
new file mode 100644
index 000000000000..32555d66f81e
--- /dev/null
+++ b/sci-electronics/magic/files/magic-7.5.231-ldflags.patch
@@ -0,0 +1,16 @@
+--- magic-7.5.231/scripts/configure.in
++++ magic-7.5.231/scripts/configure.in
+@@ -1428,11 +1428,11 @@
+ ;;
+
+ *-linux*)
+- LDDL_FLAGS='-shared -Wl,-soname,$@'
++ LDDL_FLAGS+=' -shared -Wl,-soname,$@'
+ if test "x${loader_run_path}" != "x" ; then
+ LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
+ fi
+- LDFLAGS=""
++ LDFLAGS+=" "
+ EXTRA_LIB_SPECS="-ldl"
+ ;;
+
diff --git a/sci-electronics/magic/files/magic-7.5.231-verbose-build.patch b/sci-electronics/magic/files/magic-7.5.231-verbose-build.patch
new file mode 100644
index 000000000000..64ad4fd18278
--- /dev/null
+++ b/sci-electronics/magic/files/magic-7.5.231-verbose-build.patch
@@ -0,0 +1,35 @@
+--- magic-7.5.231/Makefile
++++ magic-7.5.231/Makefile
+@@ -18,12 +18,10 @@
+ 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
+
+@@ -67,7 +65,7 @@
+ install-magic:
+ @echo --- installing executable to $(DESTDIR)${BINDIR}
+ @echo --- installing runtime files to $(DESTDIR)${LIBDIR}
+- @${MAKE} install-real 2>&1 >> install.log
++ @${MAKE} install-real
+
+ install-real: install-dirs
+ for dir in ${INSTALL_CAD_DIRS}; do \
+@@ -86,7 +84,7 @@
+ install-tcl:
+ @echo --- installing executable to $(DESTDIR)${BINDIR}
+ @echo --- installing runtime files to $(DESTDIR)${LIBDIR}
+- @${MAKE} install-tcl-real 2>&1 >> install.log
++ @${MAKE} install-tcl-real
+
+ install-tcl-real: install-tcl-dirs
+ for dir in ${INSTALL_CAD_DIRS} ${PROGRAMS}; do \
diff --git a/sci-electronics/magic/files/magic-ldflags.patch b/sci-electronics/magic/files/magic-ldflags.patch
new file mode 100644
index 000000000000..60d5891beee0
--- /dev/null
+++ b/sci-electronics/magic/files/magic-ldflags.patch
@@ -0,0 +1,40 @@
+diff -r -u magic-7.5.202.orig/scripts/configure.in magic-7.5.202/scripts/configure.in
+--- magic-7.5.202.orig/scripts/configure.in 2010-03-08 14:33:07.000000000 +0100
++++ magic-7.5.202/scripts/configure.in 2010-07-02 22:15:50.814199319 +0200
+@@ -1350,7 +1350,6 @@
+ if test "x${loader_run_path}" != "x" ; then
+ LD_RUN_PATH="${LD_RUN_PATH} -Wl,-rpath,${loader_run_path}"
+ fi
+- LDFLAGS=""
+ EXTRA_LIB_SPECS="-ldl"
+ ;;
+
+diff -r -u magic-7.5.202.orig/scripts/defs.mak.in magic-7.5.202/scripts/defs.mak.in
+--- magic-7.5.202.orig/scripts/defs.mak.in 2010-03-08 14:33:07.000000000 +0100
++++ magic-7.5.202/scripts/defs.mak.in 2010-07-02 22:15:50.814199319 +0200
+@@ -53,7 +53,7 @@
+ M4 = @M4@
+ RANLIB = @RANLIB@
+ SHDLIB_EXT = @SHDLIB_EXT@
+-LDDL_FLAGS = @LDDL_FLAGS@
++LDDL_FLAGS = ${LDFLAGS} @LDDL_FLAGS@
+ LD_RUN_PATH = @LD_RUN_PATH@
+ LIB_SPECS = @LIB_SPECS@
+ WISH_EXE = @WISH_EXE@
+diff -r -u magic-7.5.202.orig/tcltk/Makefile magic-7.5.202/tcltk/Makefile
+--- magic-7.5.202.orig/tcltk/Makefile 2009-05-29 15:54:55.000000000 +0200
++++ magic-7.5.202/tcltk/Makefile 2010-07-02 22:16:30.916202298 +0200
+@@ -41,11 +41,11 @@
+ (cd $(DESTDIR)${TCLDIR}; chmod 0755 tkcon.tcl tkshell.tcl)
+
+ magicexec: magicexec.c
+- ${CC} ${CFLAGS} -pg ${CPPFLAGS} ${DFLAGS} magicexec.c -o magicexec \
++ ${CC} ${CFLAGS} -pg ${CPPFLAGS} ${DFLAGS} ${LDFLAGS} magicexec.c -o magicexec \
+ ${LD_RUN_PATH} ${LIBS} ${LIB_SPECS}
+
+ magicdnull: magicdnull.c
+- ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} magicdnull.c -o magicdnull \
++ ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${LDFLAGS} magicdnull.c -o magicdnull \
+ ${LD_RUN_PATH} ${LIBS} ${LIB_SPECS}
+
+ magic.tcl: magic.tcl.in ${MAGICDIR}/defs.mak
diff --git a/sci-electronics/magic/magic-7.5.202-r1.ebuild b/sci-electronics/magic/magic-7.5.202-r1.ebuild
new file mode 100644
index 000000000000..e0cabc15ed61
--- /dev/null
+++ b/sci-electronics/magic/magic-7.5.202-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib eutils autotools
+
+DESCRIPTION="The VLSI design CAD tool"
+HOMEPAGE="http://www.opencircuitdesign.com/magic/index.html"
+SRC_URI="http://www.opencircuitdesign.com/magic/archive/${P}.tgz \
+ ftp://ftp.mosis.edu/pub/sondeen/magic/new/beta/2002a.tar.gz"
+
+LICENSE="HPND GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses
+ sys-libs/readline:0=
+ dev-lang/tcl:0=
+ dev-lang/tk:0=
+ dev-tcltk/blt"
+DEPEND="${RDEPEND}
+ app-shells/tcsh"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-ldflags.patch"
+ epatch "${FILESDIR}/${P}-install.patch" #422687
+ epatch "${FILESDIR}/${P}-include.patch"
+ cd scripts
+ eautoreconf
+ cd ..
+ sed -i -e "s: -pg : :" tcltk/Makefile || die
+}
+
+src_configure() {
+ # Short-circuit top-level configure script to retain CFLAGS
+ # fix tcl/tk detection #447868
+ cd scripts
+ CPP="cpp" econf --with-tcllibs="/usr/$(get_libdir)" --with-tklibs="/usr/$(get_libdir)"
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+
+ dodoc README README.Tcl TODO
+
+ # Move docs from libdir to docdir and add symlink.
+ mv "${D}/usr/$(get_libdir)/magic/doc"/* "${D}/usr/share/doc/${PF}/" || die
+ rmdir "${D}/usr/$(get_libdir)/magic/doc" || die
+ dosym "/usr/share/doc/${PF}" "/usr/$(get_libdir)/magic/doc"
+
+ # Move tutorial from libdir to datadir and add symlink.
+ dodir /usr/share/${PN}
+ mv "${D}/usr/$(get_libdir)/magic/tutorial" "${D}/usr/share/${PN}/" || die
+ dosym "/usr/share/${PN}/tutorial" "/usr/$(get_libdir)/magic/tutorial"
+
+ # Install latest MOSIS tech files
+ cp -pPR "${WORKDIR}"/2002a "${D}"/usr/$(get_libdir)/magic/sys/current || die
+}
diff --git a/sci-electronics/magic/magic-7.5.231.ebuild b/sci-electronics/magic/magic-7.5.231.ebuild
new file mode 100644
index 000000000000..5175e7c46618
--- /dev/null
+++ b/sci-electronics/magic/magic-7.5.231.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib eutils autotools
+
+DESCRIPTION="The VLSI design CAD tool"
+HOMEPAGE="http://www.opencircuitdesign.com/magic/index.html"
+SRC_URI="http://www.opencircuitdesign.com/magic/archive/${P}.tgz \
+ ftp://ftp.mosis.edu/pub/sondeen/magic/new/beta/2002a.tar.gz"
+
+LICENSE="HPND GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug opengl"
+
+RDEPEND="sys-libs/ncurses
+ sys-libs/readline:0=
+ dev-lang/tcl:0=
+ dev-lang/tk:0=
+ dev-tcltk/blt
+ opengl? ( virtual/opengl )"
+DEPEND="${RDEPEND}
+ app-shells/tcsh"
+
+src_prepare() {
+ einfo remove bundled readline-4.3
+ rm -r readline || die
+
+ epatch \
+ "${FILESDIR}"/${PN}-7.5.231-blt-test.patch \
+ "${FILESDIR}"/${PN}-7.5.231-ldflags.patch \
+ "${FILESDIR}"/${PN}-7.5.231-verbose-build.patch
+
+ cd scripts || die
+ eautoreconf
+ cd .. || die
+
+ sed -i -e "s: -pg : :" tcltk/Makefile || die
+}
+
+src_configure() {
+ # Short-circuit top-level configure script to retain CFLAGS
+ # fix tcl/tk detection #447868
+ cd scripts
+ CPP="cpp" econf \
+ --with-tcl=yes \
+ --with-tcllibs="/usr/$(get_libdir)" \
+ --with-tklibs="/usr/$(get_libdir)" \
+ --enable-modular \
+ $(use_enable debug memdebug) \
+ $(use_with opengl)
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+
+ dodoc README README.Tcl TODO
+
+ # Move docs from libdir to docdir and add symlink.
+ mv "${D}/usr/$(get_libdir)/magic/doc"/* "${D}/usr/share/doc/${PF}/" || die
+ rmdir "${D}/usr/$(get_libdir)/magic/doc" || die
+ dosym "/usr/share/doc/${PF}" "/usr/$(get_libdir)/magic/doc"
+
+ # Move tutorial from libdir to datadir and add symlink.
+ dodir /usr/share/${PN}
+ mv "${D}/usr/$(get_libdir)/magic/tutorial" "${D}/usr/share/${PN}/" || die
+ dosym "/usr/share/${PN}/tutorial" "/usr/$(get_libdir)/magic/tutorial"
+
+ # Install latest MOSIS tech files
+ cp -pPR "${WORKDIR}"/2002a "${D}"/usr/$(get_libdir)/magic/sys/current || die
+}
diff --git a/sci-electronics/magic/magic-8.0.138.ebuild b/sci-electronics/magic/magic-8.0.138.ebuild
new file mode 100644
index 000000000000..c8e27a7949fc
--- /dev/null
+++ b/sci-electronics/magic/magic-8.0.138.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib eutils autotools
+
+DESCRIPTION="The VLSI design CAD tool"
+HOMEPAGE="http://www.opencircuitdesign.com/magic/index.html"
+SRC_URI="http://www.opencircuitdesign.com/magic/archive/${P}.tgz \
+ ftp://ftp.mosis.edu/pub/sondeen/magic/new/beta/2002a.tar.gz"
+
+LICENSE="HPND GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug opengl"
+
+RDEPEND="sys-libs/ncurses
+ sys-libs/readline:0=
+ dev-lang/tcl:0=
+ dev-lang/tk:0=
+ dev-tcltk/blt
+ opengl? ( virtual/glu
+ virtual/opengl )"
+DEPEND="${RDEPEND}
+ app-shells/tcsh"
+
+src_prepare() {
+ einfo remove bundled readline-4.3
+ rm -r readline || die
+
+ epatch \
+ "${FILESDIR}/${PN}-7.5.231-verbose-build.patch"
+
+ cd scripts || die
+ eautoreconf
+ cd .. || die
+
+ sed -i -e "s: -pg : :" tcltk/Makefile || die
+}
+
+src_configure() {
+ # Short-circuit top-level configure script to retain CFLAGS
+ # fix tcl/tk detection #447868
+ cd scripts
+ CPP="cpp" econf \
+ --with-tcl=yes \
+ --with-tcllibs="/usr/$(get_libdir)" \
+ --with-tklibs="/usr/$(get_libdir)" \
+ --enable-modular \
+ $(use_enable debug memdebug) \
+ $(use_with opengl)
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+
+ dodoc README README.Tcl TODO
+
+ # Move docs from libdir to docdir and add symlink.
+ mv "${D}/usr/$(get_libdir)/magic/doc"/* "${D}/usr/share/doc/${PF}/" || die
+ rmdir "${D}/usr/$(get_libdir)/magic/doc" || die
+ dosym "/usr/share/doc/${PF}" "/usr/$(get_libdir)/magic/doc"
+
+ # Move tutorial from libdir to datadir and add symlink.
+ dodir /usr/share/${PN}
+ mv "${D}/usr/$(get_libdir)/magic/tutorial" "${D}/usr/share/${PN}/" || die
+ dosym "/usr/share/${PN}/tutorial" "/usr/$(get_libdir)/magic/tutorial"
+
+ # Install latest MOSIS tech files
+ cp -pPR "${WORKDIR}"/2002a "${D}"/usr/$(get_libdir)/magic/sys/current || die
+}
diff --git a/sci-electronics/magic/magic-8.0.207.ebuild b/sci-electronics/magic/magic-8.0.207.ebuild
new file mode 100644
index 000000000000..0e9d21023ad9
--- /dev/null
+++ b/sci-electronics/magic/magic-8.0.207.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit multilib eutils autotools
+
+DESCRIPTION="The VLSI design CAD tool"
+HOMEPAGE="http://www.opencircuitdesign.com/magic/index.html"
+SRC_URI="http://www.opencircuitdesign.com/magic/archive/${P}.tgz \
+ ftp://ftp.mosis.edu/pub/sondeen/magic/new/beta/2002a.tar.gz"
+
+LICENSE="HPND GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug opengl"
+
+RDEPEND="sys-libs/ncurses
+ sys-libs/readline:0=
+ dev-lang/tcl:0=
+ dev-lang/tk:0=
+ dev-tcltk/blt
+ opengl? ( virtual/glu
+ virtual/opengl )"
+DEPEND="${RDEPEND}
+ app-shells/tcsh"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${PN}-7.5.231-verbose-build.patch"
+
+ cd scripts || die
+ eautoreconf
+ cd .. || die
+
+ sed -i -e "s: -pg : :" tcltk/Makefile || die
+}
+
+src_configure() {
+ # Short-circuit top-level configure script to retain CFLAGS
+ # fix tcl/tk detection #447868
+ cd scripts
+ CPP="cpp" econf \
+ --with-tcl=yes \
+ --with-tcllibs="/usr/$(get_libdir)" \
+ --with-tklibs="/usr/$(get_libdir)" \
+ --disable-modular \
+ $(use_enable debug memdebug) \
+ $(use_with opengl)
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+
+ dodoc README README.Tcl TODO
+
+ # Move docs from libdir to docdir and add symlink.
+ mv "${D}/usr/$(get_libdir)/magic/doc"/* "${D}/usr/share/doc/${PF}/" || die
+ rmdir "${D}/usr/$(get_libdir)/magic/doc" || die
+ dosym "/usr/share/doc/${PF}" "/usr/$(get_libdir)/magic/doc"
+
+ # Move tutorial from libdir to datadir and add symlink.
+ dodir /usr/share/${PN}
+ mv "${D}/usr/$(get_libdir)/magic/tutorial" "${D}/usr/share/${PN}/" || die
+ dosym "/usr/share/${PN}/tutorial" "/usr/$(get_libdir)/magic/tutorial"
+
+ # Install latest MOSIS tech files
+ cp -pPR "${WORKDIR}"/2002a "${D}"/usr/$(get_libdir)/magic/sys/current || die
+}
diff --git a/sci-electronics/magic/metadata.xml b/sci-electronics/magic/metadata.xml
new file mode 100644
index 000000000000..4bbd90c81497
--- /dev/null
+++ b/sci-electronics/magic/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-electronics</herd>
+ <longdescription>
+ Magic is a venerable VLSI layout tool, written in the 1980's at Berkeley by
+ John Ousterhout, of Tcl fame. 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.
+ </longdescription>
+ <upstream>
+ <maintainer status="active">
+ <email>tim@opencircuitdesign.com</email>
+ <name>Timothy Edwards</name>
+ </maintainer>
+ <changelog>http://www.opencircuitdesign.com/magic/release.html</changelog>
+ <doc lang="en">http://www.opencircuitdesign.com/magic/magic_docs.html</doc>
+ <bugs-to>tim@opencircuitdesign.com</bugs-to>
+ </upstream>
+</pkgmetadata>