View | Details | Raw Unified
Collapse All | Expand All

(-) erlang-10.2.6.ebuild (-8 / +11 lines)
 Lines 1-23    Link Here 
# Copyright 1999-2005 Gentoo Foundation
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-10.2.6.ebuild,v 1.5 2005/09/02 22:31:50 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-10.2.6.ebuild,v 1.4 2005/08/24 00:43:36 vapier Exp $
inherit eutils multilib flag-o-matic elisp-common
inherit eutils multilib flag-o-matic elisp-common
#erlang uses a really weird versioning scheme which caused quite a few problems already
#erlang uses a really weird versioning scheme which caused quite a few problems already
#Thus we do a slight modification converting all letters to digits to make it more sane (see e.g. #26420)
#Thus we do a slight modification converting all letters to digits to make it more sane (see e.g. #26420)
#the next line selects the right source.
#the next line selects the right source.
MY_PV=R10B-6
MY_PV=R10B-7
MY_P=otp_src_${MY_PV}
MY_P=otp_src_${MY_PV}
DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
HOMEPAGE="http://www.erlang.org/"
HOMEPAGE="http://www.erlang.org/"
SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz
SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz
	doc? ( http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
	doc? ( http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
		http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
		http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )
	http://developer.sipphone.com/ejabberd/erlang_epoll_patch/otp_src_${MY_PV}_epoll.patch"
LICENSE="EPL"
LICENSE="EPL"
SLOT="0"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc x86"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc emacs java odbc ssl X"
IUSE="doc emacs java odbc ssl X"
RDEPEND=">=dev-lang/perl-5.6.1
RDEPEND=">=dev-lang/perl-5.6.1
 Lines 27-33    Link Here 
	java? ( >=virtual/jdk-1.2 )
	java? ( >=virtual/jdk-1.2 )
	odbc? ( dev-db/unixODBC )"
	odbc? ( dev-db/unixODBC )"
DEPEND="${RDEPEND}
DEPEND="${RDEPEND}
	dev-lang/tk"
	X? (dev-lang/tk)"
S=${WORKDIR}/${MY_P}
S=${WORKDIR}/${MY_P}
 Lines 35-50    Link Here 
src_unpack() {
src_unpack() {
	unpack ${A}
	unpack ${A}
	cd "${S}"
	cd $S
	epatch "${FILESDIR}"/${P}-export-TARGET.patch
	epatch ${FILESDIR}/${P}-export-TARGET.patch
	epatch "${FILESDIR}"/${PV}-manpage-emacs-gentoo.patch
	epatch ${FILESDIR}/${PV}-manpage-emacs-gentoo.patch
	use odbc || sed -i 's: odbc : :' lib/Makefile
	use odbc || sed -i 's: odbc : :' lib/Makefile
	epatch ${DISTDIR}/otp_src_${MY_PV}_epoll.patch
}
}
src_compile() {
src_compile() {
	use java || export JAVAC=false
	use java || export JAVAC=false
	econf \
	econf \
		--enable-threads \
		--enable-threads \
		--enable-kernel-poll \
		$(use_with ssl) \
		$(use_with ssl) \
		|| die
		|| die
	make || die
	make || die