diff options
Diffstat (limited to 'sci-electronics/magic')
-rw-r--r-- | sci-electronics/magic/ChangeLog | 8 | ||||
-rw-r--r-- | sci-electronics/magic/files/magic-8.0.109-ldflags.patch | 27 | ||||
-rw-r--r-- | sci-electronics/magic/magic-8.0.109.ebuild | 62 |
3 files changed, 96 insertions, 1 deletions
diff --git a/sci-electronics/magic/ChangeLog b/sci-electronics/magic/ChangeLog index 6fcbaa37e8cb..614a6ce88689 100644 --- a/sci-electronics/magic/ChangeLog +++ b/sci-electronics/magic/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-electronics/magic # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/magic/ChangeLog,v 1.60 2012/06/13 14:00:34 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/magic/ChangeLog,v 1.61 2012/06/13 14:26:03 xmw Exp $ + +*magic-8.0.109 (13 Jun 2012) + + 13 Jun 2012; Michael Weber <xmw@gentoo.org> + +files/magic-8.0.109-ldflags.patch, +magic-8.0.109.ebuild: + Version bump (thanks euscan) *magic-7.5.220 (13 Jun 2012) diff --git a/sci-electronics/magic/files/magic-8.0.109-ldflags.patch b/sci-electronics/magic/files/magic-8.0.109-ldflags.patch new file mode 100644 index 000000000000..f471aa7bcff3 --- /dev/null +++ b/sci-electronics/magic/files/magic-8.0.109-ldflags.patch @@ -0,0 +1,27 @@ +--- magic-8.0.109/scripts/defs.mak.in ++++ magic-8.0.109/scripts/defs.mak.in +@@ -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@ +--- magic-8.0.109/tcltk/Makefile ++++ magic-8.0.109/tcltk/Makefile +@@ -43,11 +43,11 @@ + (cd $(DESTDIR)${TCLDIR}; chmod 0755 tkcon.tcl tkshell.tcl) + + magicexec: magicexec.c ${MAGICDIR}/defs.mak +- ${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 ${MAGICDIR}/defs.mak +- ${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-8.0.109.ebuild b/sci-electronics/magic/magic-8.0.109.ebuild new file mode 100644 index 000000000000..0f4cc9a694da --- /dev/null +++ b/sci-electronics/magic/magic-8.0.109.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/magic/magic-8.0.109.ebuild,v 1.1 2012/06/13 14:26:03 xmw Exp $ + +EAPI=2 + +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="as-is GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="sys-libs/ncurses + sys-libs/readline + dev-lang/tcl + dev-lang/tk + dev-tcltk/blt" +DEPEND="${RDEPEND} + app-shells/tcsh" + +src_prepare() { + epatch "${FILESDIR}/${P}-ldflags.patch" + cd scripts + eautoreconf + cd .. + sed -i -e "s: -pg : :" tcltk/Makefile || die "tcltk patch failed" +} + +src_configure() { + # Short-circuit top-level configure script to retain CFLAGS + cd scripts + CPP="cpp" econf +} + +src_compile() { + emake -j1 || die "Compilation failed" +} + +src_install() { + emake -j1 DESTDIR="${D}" install || die + + dodoc README README.Tcl TODO || die + + # 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" || die + + # Move tutorial from libdir to datadir and add symlink. + dodir /usr/share/${PN} || die + mv "${D}/usr/$(get_libdir)/magic/tutorial" "${D}/usr/share/${PN}/" || die + dosym "/usr/share/${PN}/tutorial" "/usr/$(get_libdir)/magic/tutorial" || die + + # Install latest MOSIS tech files + cp -pPR "${WORKDIR}"/2002a "${D}"/usr/$(get_libdir)/magic/sys/current || die +} |