# ChangeLog for sci-electronics/iverilog
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/ChangeLog,v 1.17 2006/10/11 21:41:15 calchan Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/ChangeLog,v 1.18 2007/04/01 09:19:40 calchan Exp $
+
+ 01 Apr 2007; Denis Dupeyron <calchan@gentoo.org> iverilog-0.8.3.ebuild:
+ Fixed missing <asm/page.h>, bug #172919.
*iverilog-0.8.3 (11 Oct 2006)
MD5 f7c30cf26769608c401a11ec8785ab79 iverilog-0.8.2.ebuild 1043
RMD160 7b157e4ab48e80dc64cc408978d46dd1e4c8e1d3 iverilog-0.8.2.ebuild 1043
SHA256 d1b4141016aeb4512208f3e7fec5248e428de2b18600e2154ce83854145b5afb iverilog-0.8.2.ebuild 1043
-EBUILD iverilog-0.8.3.ebuild 936 RMD160 7e540751ee7c347a64231481870d887767745cb3 SHA1 3e76d024eaccebc2d2dea8a5b3191cfcc7e41839 SHA256 71183a5357a270aeb6892972286fd57f841c4465b46889f794708933258ebcc1
-MD5 a765bc5ed2d8bcb6bd3bb012eee2bc23 iverilog-0.8.3.ebuild 936
-RMD160 7e540751ee7c347a64231481870d887767745cb3 iverilog-0.8.3.ebuild 936
-SHA256 71183a5357a270aeb6892972286fd57f841c4465b46889f794708933258ebcc1 iverilog-0.8.3.ebuild 936
-MISC ChangeLog 3930 RMD160 b6fc4b54b1e7b4130a4a21564600def80318bb40 SHA1 349ef52a1a2a4290a5d672b7fb7f3ab0559eec62 SHA256 9ecffa3abd3f344ff3342203eaf7410cc2275ef8a78759cd5e73caa36d8fcc3e
-MD5 b8281003301ed027e62e07c862572cea ChangeLog 3930
-RMD160 b6fc4b54b1e7b4130a4a21564600def80318bb40 ChangeLog 3930
-SHA256 9ecffa3abd3f344ff3342203eaf7410cc2275ef8a78759cd5e73caa36d8fcc3e ChangeLog 3930
+EBUILD iverilog-0.8.3.ebuild 1175 RMD160 b15d1961932134341ac0160eb91dc35f6fecd308 SHA1 6877541aab864c9306b232e79eeec1e57498a374 SHA256 aabbf9911e6ad611ed5d0c91c5eb5388876dc6288e743d05e1bc3b2089b363bf
+MD5 11e4ad110a60f22e10eb79dc693782b9 iverilog-0.8.3.ebuild 1175
+RMD160 b15d1961932134341ac0160eb91dc35f6fecd308 iverilog-0.8.3.ebuild 1175
+SHA256 aabbf9911e6ad611ed5d0c91c5eb5388876dc6288e743d05e1bc3b2089b363bf iverilog-0.8.3.ebuild 1175
+MISC ChangeLog 4048 RMD160 fbfd804dc93c9060d05aee233dffdd72b7ccb6d1 SHA1 9c11192be0ac96cfaf84daca50a4d212205fcad7 SHA256 9ad6fc5ebb54d0f0c1077453e3e9a9258c9c574685fc41a05a77d2293b315dc7
+MD5 1fe787fd1f80db09ff243729aecb7f0f ChangeLog 4048
+RMD160 fbfd804dc93c9060d05aee233dffdd72b7ccb6d1 ChangeLog 4048
+SHA256 9ad6fc5ebb54d0f0c1077453e3e9a9258c9c574685fc41a05a77d2293b315dc7 ChangeLog 4048
MISC metadata.xml 506 RMD160 48a23b4bf81a7ab0c7e00ed9c3f4e264dc6e4b78 SHA1 bedb493b0943f337c3e2e4af267ee00b56fdf1de SHA256 d1f9a885eabf83550648f0a80a1302bcdd56b36d3d0572f0a91fb5bd9ade0b84
MD5 48ded69576c11a157bc858e4c9abc8e8 metadata.xml 506
RMD160 48a23b4bf81a7ab0c7e00ed9c3f4e264dc6e4b78 metadata.xml 506
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/iverilog-0.8.3.ebuild,v 1.1 2006/10/11 21:41:15 calchan Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/iverilog-0.8.3.ebuild,v 1.2 2007/04/01 09:19:40 calchan Exp $
inherit multilib
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
+src_unpack() {
+ unpack ${A}
+
+ # Fix for bug #172919
+ sed -i \
+ -e '/# include <asm\/page.h>/d' \
+ -e '/unsigned siz, rss, shd;/a\
+ long PAGE_SIZE = sysconf(_SC_PAGESIZE);\
+ if (PAGE_SIZE==-1) PAGE_SIZE=0;
+' ${S}/vvp/main.cc
+}
+
src_compile() {
econf || die "Configuration failed"
emake -j1 || die "Compilation failed"