Lines 2-8
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-12.2.1.ebuild,v 1.9 2008/04/01 18:16:44 opfer Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-12.2.1.ebuild,v 1.9 2008/04/01 18:16:44 opfer Exp $ |
4 |
|
4 |
|
5 |
inherit elisp-common eutils flag-o-matic multilib versionator |
5 |
inherit autotools elisp-common eutils flag-o-matic multilib versionator |
6 |
|
6 |
|
7 |
# NOTE: You need to adjust the version number in the last comment. If you need symlinks for |
7 |
# NOTE: You need to adjust the version number in the last comment. If you need symlinks for |
8 |
# binaries please tell maintainers or open up a bug to let it be created. |
8 |
# binaries please tell maintainers or open up a bug to let it be created. |
Lines 36-60
Link Here
|
36 |
DEPEND="${RDEPEND} |
36 |
DEPEND="${RDEPEND} |
37 |
tk? ( dev-lang/tk )" |
37 |
tk? ( dev-lang/tk )" |
38 |
|
38 |
|
39 |
S="${WORKDIR}/${MY_P}" |
39 |
S=${WORKDIR}/${MY_P} |
40 |
|
40 |
|
41 |
SITEFILE=50erlang-gentoo.el |
41 |
SITEFILE=50erlang-gentoo.el |
42 |
|
42 |
|
43 |
pkg_setup() { |
|
|
44 |
if use ssl; then |
45 |
if is-ldflag --as-needed || is-flag --as-needed; then |
46 |
eerror "Don't use --as-needed in your LDFLAGS or CFLAGS for SSL support, this will fail." |
47 |
die |
48 |
fi |
49 |
fi |
50 |
} |
51 |
|
52 |
src_unpack() { |
43 |
src_unpack() { |
53 |
|
|
|
54 |
unpack ${A} |
44 |
unpack ${A} |
55 |
cd "${S}" |
45 |
cd "${S}" |
56 |
|
46 |
|
57 |
use odbc || sed -i 's: odbc : :' lib/Makefile |
47 |
use odbc || sed -i 's: odbc : :' lib/Makefile |
|
|
48 |
epatch "${FILESDIR}"/erlang-as-needed.patch |
58 |
|
49 |
|
59 |
# make sure we only link ssl dynamically |
50 |
# make sure we only link ssl dynamically |
60 |
# will not be integrated by upstream for various reasons |
51 |
# will not be integrated by upstream for various reasons |
Lines 67-72
Link Here
|
67 |
ewarn "Don't cry, don't file bugs, just disable it! If you have fix, tell us." |
58 |
ewarn "Don't cry, don't file bugs, just disable it! If you have fix, tell us." |
68 |
ewarn |
59 |
ewarn |
69 |
fi |
60 |
fi |
|
|
61 |
eautoreconf |
70 |
} |
62 |
} |
71 |
|
63 |
|
72 |
src_compile() { |
64 |
src_compile() { |