diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2002-05-13 00:29:47 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2002-05-13 00:29:47 +0000 |
commit | 9565d7de3308e8c7059233386c9bf68c368417fc (patch) | |
tree | ccf0d5045d80f775753fb29c09c228e2d8e08568 /app-sci | |
parent | glark 1.4 - a file searcher utility. (diff) | |
download | gentoo-2-9565d7de3308e8c7059233386c9bf68c368417fc.tar.gz gentoo-2-9565d7de3308e8c7059233386c9bf68c368417fc.tar.bz2 gentoo-2-9565d7de3308e8c7059233386c9bf68c368417fc.zip |
New Package
Diffstat (limited to 'app-sci')
-rw-r--r-- | app-sci/magic/ChangeLog | 11 | ||||
-rw-r--r-- | app-sci/magic/files/10magic | 1 | ||||
-rw-r--r-- | app-sci/magic/files/defs.mak-7.1 | 55 | ||||
-rw-r--r-- | app-sci/magic/files/digest-magic-7.1 | 1 | ||||
-rw-r--r-- | app-sci/magic/files/magic-7.1-fhs.patch | 29 | ||||
-rw-r--r-- | app-sci/magic/magic-7.1.ebuild | 42 |
6 files changed, 139 insertions, 0 deletions
diff --git a/app-sci/magic/ChangeLog b/app-sci/magic/ChangeLog new file mode 100644 index 000000000000..997f278190ff --- /dev/null +++ b/app-sci/magic/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-eng/magic +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $ Header: $ + +* magic-7.1 (30 April 2002) + + 30 April 2002; Michael Nygard <michael.nygard@halleysfifth.com> ChangeLog : + + First Gentoo release of this package. Magic predates autoconf, so has its + own (manual) configuration script. I may work with the upstream + developers to transition to autoconf. diff --git a/app-sci/magic/files/10magic b/app-sci/magic/files/10magic new file mode 100644 index 000000000000..4e5909911f5d --- /dev/null +++ b/app-sci/magic/files/10magic @@ -0,0 +1 @@ +CAD_HOME=/usr diff --git a/app-sci/magic/files/defs.mak-7.1 b/app-sci/magic/files/defs.mak-7.1 new file mode 100644 index 000000000000..ea29fa0cb106 --- /dev/null +++ b/app-sci/magic/files/defs.mak-7.1 @@ -0,0 +1,55 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Michael Nygard <michael.nygard@halleysfifth.com> +# /space/gentoo/cvsroot/gentoo-x86/header.txt,v 1.4 2001/12/16 18:19:08 verwilst Exp + +SHELL = /bin/sh + +VERSION = 7.1 + +# Change CADDIR to install in a different place +CADDIR = ${DESTDIR}/usr/lib +BINDIR = ${DESTDIR}/usr/bin +LIBDIR = ${DESTDIR}/usr/lib +MANDIR = ${DESTDIR}/usr/share/man +SYSDIR = ${DESTDIR}/usr/lib/magic/sys +SCMDIR = ${DESTDIR}/usr/lib/magic/scm + +SCRIPTS = ${MAGICDIR}/scripts + +MODULES += + +# Define your make environment +# MAKE = gmake +# MAKEFLAGS = -j4 + +RM = rm -f +CP = cp +AR = ar +ARFLAGS = crv +LD = ld -r +RANLIB = ranlib + +CC = gcc +CPP = /lib/cpp -P -traditional +CPPFLAGS = -I. -I${MAGICDIR} +DFLAGS = -Dlinux -DSYSV -DF_OK=0 -DW_OK=2 -D__NO_STRING_INLINES -DISC ${READLINE_DEFS} -DNONMANHATTAN + +DEPEND_FLAG = -MM +DEPEND_FILE = Depend + +GR_CFLAGS = -DX11 -DXLIB -I/usr/X11R6/include +GR_LIBS = -lX11 -L/usr/X11R6/lib/ -lbsd +GR_SRCS = ${X11_SRCS} +GR_HELPER_SRCS = ${X11HELPER_SRCS} +GR_HELPER_PROG = ${X11HELP_PROG} + +# Set your .magic to be installed +# proto.magic - original +# proto.magic.new - with X11 extensions +# proto.magic-scm - load scheme extensions +DOT_MAGIC_FILES = proto.magic.new proto.magic-scm + +OBJS = ${SRCS:.c=.o} +LIB_OBJS = ${LIB_SRCS:.c=.o} +CLEANS = ${OBJS} ${LIB_OBJS} lib${MODULE}.a lib${MODULE}.o ${MODULE} diff --git a/app-sci/magic/files/digest-magic-7.1 b/app-sci/magic/files/digest-magic-7.1 new file mode 100644 index 000000000000..c5697f649c10 --- /dev/null +++ b/app-sci/magic/files/digest-magic-7.1 @@ -0,0 +1 @@ +MD5 9269a17f1ad9c69155b54462cfd044dd magic-current.tar.gz 3838852 diff --git a/app-sci/magic/files/magic-7.1-fhs.patch b/app-sci/magic/files/magic-7.1-fhs.patch new file mode 100644 index 000000000000..31764796257b --- /dev/null +++ b/app-sci/magic/files/magic-7.1-fhs.patch @@ -0,0 +1,29 @@ +diff -uNr tmp/magic-7.1/misc/paths.h other/magic-7.1/misc/paths.h +--- tmp/magic-7.1/misc/paths.h 2001-04-16 09:43:43.000000000 -0500 ++++ other/magic-7.1/misc/paths.h 2002-04-30 23:07:48.000000000 -0500 +@@ -27,18 +27,18 @@ + * + */ + +-#define EXT_PATH "~cad/lib/magic/%s ~cad/lib/magic/tutorial" +-#define DOT_MAGIC_PATH "~cad/lib/magic/sys ~ ." ++#define EXT_PATH "~cad/share/lib/magic/%s ~cad/share/lib/magic/tutorial" ++#define DOT_MAGIC_PATH "~cad/share/lib/magic/sys ~ ." + + /* + * Paths used by 'magic'. + * + */ +-#define MAGIC_CMOS_PATH "~cad/lib/magic/cmos ~cad/lib/magic/tutorial" +-#define MAGIC_NMOS_PATH "~cad/lib/magic/nmos ~cad/lib/magic/tutorial" +-#define MAGIC_SYS_PATH ". ~cad/lib/magic/sys ~cad/lib/magic/sys/current" +-#define MAGIC_SYS_DOT "~cad/lib/magic/sys/.magic" +-#define MAGIC_LIB_PATH "~cad/lib/magic/%s ~cad/lib/magic/tutorial" ++#define MAGIC_CMOS_PATH "~cad/share/lib/magic/cmos ~cad/share/lib/magic/tutorial" ++#define MAGIC_NMOS_PATH "~cad/share/lib/magic/nmos ~cad/share/lib/magic/tutorial" ++#define MAGIC_SYS_PATH ". ~cad/share/lib/magic/sys ~cad/share/lib/magic/sys/current" ++#define MAGIC_SYS_DOT "~cad/share/lib/magic/sys/.magic" ++#define MAGIC_LIB_PATH "~cad/share/lib/magic/%s ~cad/share/lib/magic/tutorial" + #define HELPER_PATH ". ~cad/bin" /* Used by graphics drivers */ + + /* diff --git a/app-sci/magic/magic-7.1.ebuild b/app-sci/magic/magic-7.1.ebuild new file mode 100644 index 000000000000..160644265a1c --- /dev/null +++ b/app-sci/magic/magic-7.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Michael Nygard <michael.nygard@halleysfifth.com> +# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.5 2002/04/29 22:56:53 sandymac Exp + +S=${WORKDIR}/${P} +DESCRIPTION="The VLSI design CAD tool" +SRC_URI="http://vlsi.cornell.edu/magic/magic-current.tar.gz" +HOMEPAGE="http://vlsi.cornell.edu/magic/" +LICENSE="as-is" +DEPEND=">=app-shells/tcsh-6.10-r3" +RDEPEND="readline? ( >=sys-libs/readline-4.1-r4 )" +SLOT="7" + +src_unpack() { + unpack ${DISTFILES}/magic-current.tar.gz + + # Patch to use FHS paths + patch -p1 < ${FILESDIR}/magic-7.1-fhs.patch + + # Insert our idea of configuration file + cp ${FILESDIR}/defs.mak-7.1 ${S}/defs.mak +} + +src_compile() { + if [ -n "`use readline`" ] ; then + export READLINE_LIBS="-lreadline -lcurses" + export READLINE_DEFS="-DUSE_READLINE -DHAVE_READLINE" + fi + + emake || die + + [ -n "$READLINE_LIBS" ] && unset READLINE_LIBS + [ -n "$READLINE_DEFS" ] && unset READLINE_DEFS +} + +src_install () { + make DESTDIR=${D} install || die + + insinto /etc/env.d + doins ${FILESDIR}/10magic +} |