--- mpqc-2.2.2-r1.ebuild.backup 2005-05-18 19:01:27.690016184 +0000 +++ mpqc-2.2.2-r1.ebuild 2005-05-18 19:09:44.536484040 +0000 @@ -4,14 +4,14 @@ DESCRIPTION="The Massively Parallel Quantum Chemistry Program" HOMEPAGE="http://www.mpqc.org/" -SRC_URI="mirror://sourceforge/mpqc/${P}.tar.gz - doc? ( mirror://sourceforge/mpqc/${PN}-man-${PV}.tar.gz )" +SRC_URI="mirror://sourceforge/mpqc/${P}.tar.bz2 + doc? ( mirror://sourceforge/mpqc/${PN}-man-${PV}.tar.bz2 )" LICENSE="GPL-2" SLOT="0" # Should work on x86, amd64 and ppc, at least -KEYWORDS="~x86 ~ppc ~amd64" -IUSE="doc X" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc static X" DEPEND="sys-devel/flex virtual/blas @@ -24,7 +24,18 @@ myconf="${myconf} --prefix=/usr" use X && myconf="${myconf} --x-includes=/usr/X11R6/include \ --x-libraries=/usr/X11R6/lib" - ./configure ${myconf} || die "configure failed" + + # fix bug #62124 - might be removed in future versions + if use static; then + if use ppc64; then + die "static will not work on ppc64" + fi + else + myconf="${myconf} --enable-shared" + fi + + econf ${myconf} || die "configure failed" + sed -e "s:^CFLAGS =.*$:CFLAGS=${CFLAGS_SAVE}:" \ -e "s:^FFLAGS =.*$:FFLAGS=${CFLAGS_SAVE}:" \ -e "s:^CXXFLAGS =.*$:CXXFLAGS=${CXXFLAGS_SAVE}:" \