--- ghdl-0.26.ebuild.orig 2008-05-18 20:51:01.075310439 +0200 +++ ghdl-0.26.ebuild 2008-05-18 18:39:41.352000976 +0200 @@ -38,6 +38,10 @@ sed -i -e 's/atan2(z.re,z.im)/atan2(z.im,z.re)/' \ gcc/vhdl/libraries/ieee/math_complex-body.vhdl || die "sed failed" + # GHDL installs library files that check their mtimes. Preserve them. + sed -i -e 's/${INSTALL} -m 644/${INSTALL} -m 644 -p/' \ + configure* || die "sed failed" + # For multilib profile arch, see bug #203721 if (has_multilib_profile || use multilib ) ; then for T_LINUX64 in `find "${S}/gcc/config" -name t-linux64` ; @@ -57,6 +61,12 @@ } src_install() { + # GHDL installs library files that check their mtimes. Preserve them. + insopts -m0644 -p + exeopts -m0755 -p + libopts -m0644 -p + diropts -m0755 -p + emake DESTDIR="${D}" install || die "Installation failed" cd "${D}"/usr/bin ; rm `ls --ignore=ghdl`