From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6E49B158094 for ; Tue, 21 Jun 2022 10:02:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B40D5E090E; Tue, 21 Jun 2022 10:02:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C5F6E090E for ; Tue, 21 Jun 2022 10:02:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 187963411A7 for ; Tue, 21 Jun 2022 10:02:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 955903C3 for ; Tue, 21 Jun 2022 10:02:55 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1655805562.7851882d742b5931a488374c1356f8f83b88a408.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/magic/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/magic/magic-8.3.309-r1.ebuild X-VCS-Directories: sci-electronics/magic/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 7851882d742b5931a488374c1356f8f83b88a408 X-VCS-Branch: master Date: Tue, 21 Jun 2022 10:02:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bdf36e74-1121-40e3-a126-0971a6bf17ae X-Archives-Hash: 2205e374f8cce7122afaa07db31c660b commit: 7851882d742b5931a488374c1356f8f83b88a408 Author: James Beddek posteo de> AuthorDate: Mon Jun 20 06:04:58 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue Jun 21 09:59:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7851882d sci-electronics/magic: respect cairo use flag Also, don't let make/configure try to grab the commit through `git rev-parse HEAD` Signed-off-by: James Beddek posteo.de> Closes: https://github.com/gentoo/gentoo/pull/25787 Signed-off-by: Andrew Ammerlaan gentoo.org> sci-electronics/magic/magic-8.3.309-r1.ebuild | 96 +++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/sci-electronics/magic/magic-8.3.309-r1.ebuild b/sci-electronics/magic/magic-8.3.309-r1.ebuild new file mode 100644 index 000000000000..daeca5ef9e93 --- /dev/null +++ b/sci-electronics/magic/magic-8.3.309-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) + +inherit python-any-r1 + +TECH_MOSIS_VER="2002a" + +DESCRIPTION="The VLSI design CAD tool" +HOMEPAGE="http://www.opencircuitdesign.com/magic/index.html" +SRC_URI="http://www.opencircuitdesign.com/${PN}/archive/${P}.tgz + http://opencircuitdesign.com/~tim/programs/${PN}/archive/${TECH_MOSIS_VER}.tar.gz \ + -> ${PN}-tech-mosis-${TECH_MOSIS_VER}.tar.gz" + +LICENSE="HPND GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="cairo debug opengl" + +RDEPEND=" + sys-libs/ncurses:0= + sys-libs/readline:0= + sys-libs/zlib:= + dev-lang/tcl:0= + dev-lang/tk:0= + dev-tcltk/blt + cairo? ( x11-libs/cairo[opengl?] ) + opengl? ( + virtual/glu + virtual/opengl + ) +" +DEPEND="${RDEPEND}" +BDEPEND="app-shells/tcsh + ${PYTHON_DEPS}" + +PATCHES=( + "${FILESDIR}"/${PN}-8.3.232-libdir.patch +) + +DOCS=( README.md README.Tcl TODO ) + +src_prepare() { + default + + # Don't embed MAGIC_COMMIT + sed -i 's/git rev-parse HEAD//' scripts/defs.mak.in || die + + pushd scripts &>/dev/null || die + mv configure.in configure.ac || die + popd &>/dev/null || die + + # required for >=autoconf-2.70 (bug #775422) + local ac_aux_file + for ac_aux_file in install-sh config.guess config.sub ; do + ln -s scripts/${ac_aux_file} ${ac_aux_file} || die + done +} + +src_configure() { + # Short-circuit top-level configure script to retain CFLAGS + # Fix tcl/tk detection, bug #447868 + cd scripts || die + econf \ + --with-tcl="/usr/$(get_libdir)" \ + --with-tk="/usr/$(get_libdir)" \ + --with-tcllibs="/usr/$(get_libdir)" \ + --with-tklibs="/usr/$(get_libdir)" \ + --disable-modular \ + $(use_enable debug memdebug) \ + $(use_enable cairo cairo-offscreen) \ + $(use_with cairo) \ + $(use_with opengl) +} + +src_install() { + # Make does not always install required .tech files with parallel make install + emake DESTDIR="${ED}" install -j1 + einstalldocs + + # Move docs from libdir to docdir and add symlink. + mv "${ED}/usr/$(get_libdir)/magic/doc"/* "${ED}/usr/share/doc/${PF}/" || die + rmdir "${ED}/usr/$(get_libdir)/magic/doc" || die + dosym -r "${EPREFIX}/usr/share/doc/${PF}" "/usr/$(get_libdir)/magic/doc" + + # Move tutorial from libdir to datadir and add symlink. + dodir /usr/share/${PN} + mv "${ED}/usr/$(get_libdir)/magic/tutorial" "${ED}/usr/share/${PN}/" || die + dosym -r "${EPREFIX}/usr/share/${PN}/tutorial" "/usr/$(get_libdir)/magic/tutorial" + + # Install latest MOSIS tech files + cp -pPR "${WORKDIR}"/${TECH_MOSIS_VER} "${ED}"/usr/$(get_libdir)/magic/sys/current || die +}