diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2005-07-09 02:16:48 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2005-07-09 02:16:48 +0000 |
commit | 484b6b2ac114a271d8dbf65c6db02dfac018a8e4 (patch) | |
tree | e71326f91bdd184a3e3555ca777bb7a01849220a /sci-electronics | |
parent | Genkernel 3.2.0... ph34r... (diff) | |
download | historical-484b6b2ac114a271d8dbf65c6db02dfac018a8e4.tar.gz historical-484b6b2ac114a271d8dbf65c6db02dfac018a8e4.tar.bz2 historical-484b6b2ac114a271d8dbf65c6db02dfac018a8e4.zip |
Fixed bug #74592 ("app-sci/magic" interferes with "sys-apps/file")
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/magic/ChangeLog | 9 | ||||
-rw-r--r-- | sci-electronics/magic/Manifest | 5 | ||||
-rw-r--r-- | sci-electronics/magic/files/README.Gentoo | 14 | ||||
-rw-r--r-- | sci-electronics/magic/files/digest-magic-7.1-r4 | 1 | ||||
-rw-r--r-- | sci-electronics/magic/magic-7.1-r4.ebuild | 105 |
5 files changed, 132 insertions, 2 deletions
diff --git a/sci-electronics/magic/ChangeLog b/sci-electronics/magic/ChangeLog index e9f7501a3497..8b23dba4f35b 100644 --- a/sci-electronics/magic/ChangeLog +++ b/sci-electronics/magic/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-electronics/magic # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/magic/ChangeLog,v 1.4 2005/06/27 02:18:41 ribosome Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/magic/ChangeLog,v 1.5 2005/07/09 02:16:48 ribosome Exp $ + +*magic-7.1-r4 (09 Jul 2005) + + 09 Jul 2005; Olivier Fisette <ribosome@gentoo.org> +files/README.Gentoo, + +magic-7.1-r4.ebuild: + Fixed bug #74592 ("app-sci/magic" interferes with "sys-apps/file") by using + "~/.magic-cad" rather than "~/.magic". 27 Jun 2005; Olivier Fisette <ribosome@gentoo.org> -files/defs.mak-7.1, -files/defs.mak-7.1-r1, -magic-7.1-r2.ebuild, magic-7.1-r3.ebuild: diff --git a/sci-electronics/magic/Manifest b/sci-electronics/magic/Manifest index 404da950aa30..1def8641738b 100644 --- a/sci-electronics/magic/Manifest +++ b/sci-electronics/magic/Manifest @@ -1,10 +1,13 @@ +MD5 4ec9889990ce937e71bedaffc3e6dceb magic-7.1-r4.ebuild 3207 MD5 9f305e36a40e0eb526f74d30bc596def magic-7.1-r3.ebuild 2404 -MD5 9f71d1b0c84d7615ea7c41228b0e72f2 ChangeLog 2439 +MD5 e42735ee6e328ccf49d4ccd9f4fe7e52 ChangeLog 2687 MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 MD5 d81dbf84695b280009964a0bad9cf42c files/magic-7.1-gcc3.2.patch 593 MD5 d7a32efd29c53033d57c233d7da01e8a files/magic-7.1-remove-decl.patch 488 +MD5 3386112ab484d0dff56bbd07451f7cf6 files/README.Gentoo 533 MD5 992da190c2a177e9c61c1fc564c49723 files/magic-7.1-misc.patch 14546 MD5 ccf20deaf0d44a9a779f0f17695bd0b0 files/digest-magic-7.1-r3 62 +MD5 ccf20deaf0d44a9a779f0f17695bd0b0 files/digest-magic-7.1-r4 62 MD5 0b93bab0d27faa7228d74cb25337d866 files/magic-7.1-ppc-endian.patch 704 MD5 9cd145fd8e71675bf5a1b7717e175e34 files/magic-7.1-fhs.patch 1310 MD5 0d0472ae43dbddd46bc658a75f0c3b9e files/defs.mak-7.1-r2 2108 diff --git a/sci-electronics/magic/files/README.Gentoo b/sci-electronics/magic/files/README.Gentoo new file mode 100644 index 000000000000..965b12e0aba5 --- /dev/null +++ b/sci-electronics/magic/files/README.Gentoo @@ -0,0 +1,14 @@ +Using Magic on Gentoo Linux + +To avoid conflicts with the "sys-apps/file" package, Magic +("sci-electronics/magic") is patched on Gentoo systems to use "~/.magic-cad" +rather than "~/.magic" as the user's personnal startup file. (The system-wide +startup file remains "/usr/share/magic/sys/.magic".) + +This is done because the "file" program (a basic UNIX utility) uses "~/.magic" +for its configuration, and will not function properly if this file contains +Magic startup instructions. + +-- +Olivier Fisette <ribosome@gentoo.org> +8 Jul 2005 diff --git a/sci-electronics/magic/files/digest-magic-7.1-r4 b/sci-electronics/magic/files/digest-magic-7.1-r4 new file mode 100644 index 000000000000..b5c06b5e7f42 --- /dev/null +++ b/sci-electronics/magic/files/digest-magic-7.1-r4 @@ -0,0 +1 @@ +MD5 13364b77566f5b47fd3f2783e188d3df magic-7.1.tar.gz 3860487 diff --git a/sci-electronics/magic/magic-7.1-r4.ebuild b/sci-electronics/magic/magic-7.1-r4.ebuild new file mode 100644 index 000000000000..aba2a52264b3 --- /dev/null +++ b/sci-electronics/magic/magic-7.1-r4.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/magic/magic-7.1-r4.ebuild,v 1.1 2005/07/09 02:16:48 ribosome Exp $ + +inherit eutils flag-o-matic + +DESCRIPTION="The VLSI design CAD tool" +HOMEPAGE="http://vlsi.cornell.edu/magic/" +SRC_URI="http://vlsi.cornell.edu/magic/${P}.tar.gz" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="" + +DEPEND="sys-apps/findutils + dev-lang/perl + >=app-shells/tcsh-6.10-r3 + sys-libs/libtermcap-compat" +RDEPEND="sys-libs/libtermcap-compat" + +src_unpack() { + unpack ${A} + + # Patch to use FHS paths + epatch ${FILESDIR}/${P}-fhs.patch + + # Patch for GCC 3.2 compatibility + epatch ${FILESDIR}/${P}-gcc3.2.patch + + # Add one more needed for GCC 3.4 (but earlier gcc won't mind) + epatch ${FILESDIR}/${P}-remove-decl.patch + + # Fix endianness problem for ppc + epatch ${FILESDIR}/${P}-ppc-endian.patch + + # some gcc 3.3 stuff, paths... + cd ${S} + # work around cvs problem + sed -i 's/\$Header/\$NO_RCS_Header/' magic/proto.magic + epatch ${FILESDIR}/${P}-misc.patch + + # Insert our idea of configuration file + cp ${FILESDIR}/defs.mak-${PV}-r2 ${S}/defs.mak + strip-flags + sed -i "/^CFLAGS/ s/=.*/= ${CFLAGS}/;" ${S}/defs.mak + + scripts/makedbh database/database.h.in database/database.h + + # Clean up all the pre-GCC-3.2 preprocessor directives + einfo "Cleansing preprocessor directives" + find ./ -name "*.[ch]" | xargs -n 1 perl -pi -e 's/^\#endif..*$/\#endif/' + find ./ -name "*.[ch]" | xargs -n 1 perl -pi -e 's/^\#else..*$/\#else/' + + # Use ".magic-cad" rather than ".magic" as the config file to avoid + # conflicts with "sys-apps/file" (see bug #74592). + einfo 'Replacing occurences of ".magic" by ".magic-cad".' + cd ${S} + for i in extflat/*.c lisp/other/{*.c,Makefile.magic,:config} \ + macros/*.c magic/{Makefile,.\#Makefile.1.6,proto.magic} \ + magicusage/*.c main/*.c READ_ME scripts/config; do + sed -e 's/ .magic/ .magic-cad/' \ + -e 's/".magic"/".magic-cad"/' \ + -e 's%/.magic%/.magic-cad%' \ + -i ${i} || die + done +} + +src_compile() { + # this program does not like optimizations or parallel builds + make || die + egrep -q "^make.*Error" make.log && die "Error while compiling - please add ${S}/make.log to your error report." +} + +src_install() { + make DESTDIR=${D} install || die + + insinto /etc/env.d + doins ${FILESDIR}/10magic + keepdir /var/lock/magic + chmod +t ${D}/var/lock/magic + chmod ugo+rwx ${D}/var/lock/magic + cd ${D}/usr/lib/magic + mv * ${D}/usr/share/magic/ + cd ${D}/usr/lib + mv *.h *.a magic/ + ln -s ../../share/magic/sys magic/sys + ln -s ../../share/magic/scm magic/scm + ln -s ../../share/magic/tutorial magic/tutorial + + # try to make man page names unique (many are so generic they collide) + cd ${D}/usr/share/man + find . -type f ! -name "*magic*" -exec \ + sh -c 'F=`echo {} | sed -e "s:\(man.\)/:\1/magic-:;"` ; mv "{}" "${F}" ' \; + # Use ".magic" for the global config file. + cd ${D}/usr/share/magic/sys + mv .magic-cad .magic + dodoc ${FILESDIR}/README.Gentoo +} + +pkg_postinst() { + ewarn 'On Gentoo systems, you should use "~/.magic-cad" as your personnal' + ewarn 'Magic startup file rather than "~/.magic". For more details, see' + ewarn '"README.Gentoo"' +} |