--- /usr/portage/dev-lang/erlang/erlang-12.2.1.ebuild 2008-04-01 22:35:46.000000000 +0400 +++ /usr/portage/dev-lang/erlang/erlang-12.2.1.ebuild 2008-04-24 23:29:10.000000000 +0400 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-12.2.1.ebuild,v 1.9 2008/04/01 18:16:44 opfer Exp $ -inherit elisp-common eutils flag-o-matic multilib versionator +inherit autotools elisp-common eutils flag-o-matic multilib versionator # NOTE: You need to adjust the version number in the last comment. If you need symlinks for # binaries please tell maintainers or open up a bug to let it be created. @@ -36,25 +36,16 @@ DEPEND="${RDEPEND} tk? ( dev-lang/tk )" -S="${WORKDIR}/${MY_P}" +S=${WORKDIR}/${MY_P} SITEFILE=50erlang-gentoo.el -pkg_setup() { - if use ssl; then - if is-ldflag --as-needed || is-flag --as-needed; then - eerror "Don't use --as-needed in your LDFLAGS or CFLAGS for SSL support, this will fail." - die - fi - fi -} - src_unpack() { - unpack ${A} cd "${S}" use odbc || sed -i 's: odbc : :' lib/Makefile + epatch "${FILESDIR}"/erlang-as-needed.patch # make sure we only link ssl dynamically # will not be integrated by upstream for various reasons @@ -67,6 +58,7 @@ ewarn "Don't cry, don't file bugs, just disable it! If you have fix, tell us." ewarn fi + eautoreconf } src_compile() {