summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2007-12-01 22:30:57 +0000
committerDenis Dupeyron <calchan@gentoo.org>2007-12-01 22:30:57 +0000
commitb130729640076d82e12a65c678ea8a2bf1f80c40 (patch)
treedadceaa27e21dc72c3a28c88cfc729c51e407ec0 /sci-electronics/alliance/alliance-5.0.20070718.ebuild
parentStable on amd64 wrt bug #200951 (diff)
downloadgentoo-2-b130729640076d82e12a65c678ea8a2bf1f80c40.tar.gz
gentoo-2-b130729640076d82e12a65c678ea8a2bf1f80c40.tar.bz2
gentoo-2-b130729640076d82e12a65c678ea8a2bf1f80c40.zip
Version bump.
(Portage version: 2.1.4_rc4)
Diffstat (limited to 'sci-electronics/alliance/alliance-5.0.20070718.ebuild')
-rw-r--r--sci-electronics/alliance/alliance-5.0.20070718.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/sci-electronics/alliance/alliance-5.0.20070718.ebuild b/sci-electronics/alliance/alliance-5.0.20070718.ebuild
new file mode 100644
index 000000000000..9212e6cf29a8
--- /dev/null
+++ b/sci-electronics/alliance/alliance-5.0.20070718.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/alliance/alliance-5.0.20070718.ebuild,v 1.1 2007/12/01 22:30:56 calchan Exp $
+
+inherit versionator flag-o-matic rpm
+
+MY_PV=$(replace_version_separator 2 '-' )
+UPSTREAM_VERSION=$(get_version_component_range 1-2)
+URL_AND_NAME="http://www-asim.lip6.fr/pub/alliance/distribution/${UPSTREAM_VERSION}/${PN}"
+DESCRIPTION="Digital IC design tools (simulation, synthesis, place/route, etc...)."
+HOMEPAGE="http://www-asim.lip6.fr/recherche/alliance/"
+SRC_URI="${URL_AND_NAME}-${MY_PV}.tar.gz
+ doc? ( ${URL_AND_NAME}-tutorials-${MY_PV}.i386.rpm )"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc"
+DEPEND="x11-libs/openmotif"
+S="${WORKDIR}/${PN}-${UPSTREAM_VERSION}"
+
+src_unpack() {
+ rpm_src_unpack
+ cd "${S}"
+
+ # Fix compilation issue
+ sed -i -e "s/private: static void operator delete/public: static void operator delete/" nero/src/ADefs.h || die "sed failed"
+}
+
+src_compile() {
+ # Fix bug #134285
+ replace-flags -O3 -O2
+
+ # Alliance requires everything to be in the same directory
+ econf \
+ --prefix=/usr/lib/${PN} \
+ --mandir=/usr/lib/${PN}/man \
+ --with-x \
+ --with-motif \
+ --with-xpm \
+ || die "./configure failed"
+
+ # See bug #134145
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}"
+ insinto /etc
+ newins distrib/etc/alc_env.sh alliance.env
+ if use doc
+ then
+ insinto /usr/share/doc/${PF}
+ doins -r "${WORKDIR}"/opt/${PN}-${UPSTREAM_VERSION}/*
+ fi
+}
+
+pkg_postinst() {
+ elog "Users should source /etc/alliance.env before working with Alliance tools."
+}