blob: 1229031f0088c796bfeef7a3a4967247b2f5e239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/alliance/alliance-5.0.20110203.ebuild,v 1.1 2011/07/25 06:04:27 tomjbe Exp $
EAPI=4
inherit versionator flag-o-matic eutils
MY_PV=$(replace_version_separator 2 '-' )
UPSTREAM_VERSION=$(get_version_component_range 1-2)
URL="http://www-asim.lip6.fr/pub/alliance/distribution/${UPSTREAM_VERSION}"
DESCRIPTION="Digital IC design tools (simulation, synthesis, place/route, etc...)."
HOMEPAGE="http://www-asim.lip6.fr/recherche/alliance/"
SRC_URI="${URL}/${PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=x11-libs/openmotif-2.3:0
x11-libs/libXpm
x11-libs/libXt"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}-${UPSTREAM_VERSION}"
src_prepare() {
#fix buffer overrun (bug 340789)
epatch "${FILESDIR}"/${PN}-${UPSTREAM_VERSION}.20070718-overun.patch
}
src_configure() {
# 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 \
--with-alc-shared
}
src_compile() {
# See bug #134145
emake -j1
}
src_install() {
make install DESTDIR="${D}"
insinto /etc
newins distrib/etc/alc_env.sh alliance.env
}
pkg_postinst() {
elog "Users should source /etc/alliance.env before working with Alliance tools."
}
|