--- files/configure-gentoo.patch +++ files/configure-gentoo.patch @@ -10,6 +10,17 @@ AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC +@@ -21,6 +19,10 @@ + + + dnl Checks for libraries. ++dnl Check for libm for fmod() ++AC_SEARCH_LIBS([fmod], [m], [], [ ++ AC_MSG_ERROR([unable to find the fmod() function]) ++]) + + + dnl Checks for header files. diff -Naur euler-1.61.0/src/Makefile.am euler-1.61.0-new/src/Makefile.am --- euler-1.61.0/src/Makefile.am 2005-10-30 22:48:35.000000000 +0000 +++ euler-1.61.0-new/src/Makefile.am 2006-02-08 23:41:32.000000000 +0000 --- euler-1.61.0.ebuild +++ euler-1.61.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/euler/euler-1.61.0.ebuild,v 1.10 2012/05/04 07:46:51 jdhore Exp $ -EAPI="1" +EAPI=5 inherit autotools eutils @@ -20,10 +20,7 @@ RDEPEND="x11-libs/gtk+:2 x11-misc/xdg-utils" -src_unpack() { - unpack ${A} - cd "${S}" - +src_prepare() { epatch "${FILESDIR}"/configure-gentoo.patch epatch "${FILESDIR}"/command-gcc4-gentoo.patch epatch "${FILESDIR}"/${PN}-glibc-2.4-gentoo.patch @@ -39,7 +36,3 @@ || die "sed for docs failed" eautoreconf } - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" -}