annotate dev-lang/erlang/erlang-12.2.3.ebuild @ 34:cf0bab120617

merge pulled changes from Holgi's portage repo
author Dirk Olmes <dirk.olmes@googlemail.com>
date Fri, 13 Jun 2008 11:02:39 +0200
parents 34f7f8bfe80e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
33
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
1 # Copyright 1999-2008 Gentoo Foundation
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/erlang/erlang-12.2.2.ebuild,v 1.9 2008/05/28 19:47:35 pva Exp $
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
4
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
5 inherit autotools elisp-common eutils flag-o-matic multilib versionator
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
6
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
7 # NOTE: If you need symlinks for binaries please tell maintainers or
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
8 # open up a bug to let it be created.
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
9
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
10 # erlang uses a really weird versioning scheme which caused quite a few problems
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
11 # already. Thus we do a slight modification converting all letters to digits to
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
12 # make it more sane (see e.g. #26420)
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
13
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
14 # the next line selects the right source.
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
15 MY_PV="R$(get_major_version)B-$(get_version_component_range 3)"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
16
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
17 # ATTN!! Take care when processing the C, etc version!
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
18 MY_P=otp_src_${MY_PV}
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
19
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
20 DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
21 HOMEPAGE="http://www.erlang.org/"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
22 SRC_URI="http://www.erlang.org/download/${MY_P}.tar.gz
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
23 doc? ( http://erlang.org/download/otp_doc_man_${MY_PV}.tar.gz
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
24 http://erlang.org/download/otp_doc_html_${MY_PV}.tar.gz )"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
25
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
26 LICENSE="EPL"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
27 SLOT="0"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
28 KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-fbsd"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
29 IUSE="doc emacs hipe java kpoll odbc sctp smp ssl tk"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
30
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
31 RDEPEND=">=dev-lang/perl-5.6.1
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
32 ssl? ( >=dev-libs/openssl-0.9.7d )
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
33 emacs? ( virtual/emacs )
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
34 java? ( >=virtual/jdk-1.2 )
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
35 odbc? ( dev-db/unixODBC )"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
36 DEPEND="${RDEPEND}
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
37 sctp? ( net-misc/lksctp-tools )
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
38 tk? ( dev-lang/tk )"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
39
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
40 S="${WORKDIR}/${MY_P}"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
41
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
42 SITEFILE=50erlang-gentoo.el
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
43
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
44 src_unpack() {
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
45 unpack ${A}
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
46 cd "${S}"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
47
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
48 use odbc || sed -i 's: odbc : :' lib/Makefile
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
49
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
50 # fix builds with glibc-2.8, bug 226063
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
51 epatch "${FILESDIR}"/${P}-glibc28.patch
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
52
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
53 # make sure we only link ssl dynamically
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
54 # will not be integrated by upstream for various reasons
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
55 sed -i '/SSL_DYNAMIC_ONLY=/s:no:yes:' erts/configure #184419
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
56
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
57 if use hipe; then
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
58 ewarn
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
59 ewarn "You enabled High performance Erlang. Be aware that this extension"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
60 ewarn "can break the compilation in many ways, especially on hardened systems."
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
61 ewarn "Don't cry, don't file bugs, just disable it! If you have fix, tell us."
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
62 ewarn
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
63 fi
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
64 eautoreconf
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
65 }
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
66
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
67 src_compile() {
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
68 use java || export JAVAC=false
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
69
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
70 econf \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
71 --enable-threads \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
72 $(use_enable hipe) \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
73 $(use_with ssl) \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
74 $(use_enable sctp) \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
75 $(use_enable kpoll kernel-poll) \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
76 $(use_enable smp smp-support) \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
77 || die "econf failed"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
78 emake -j1 || die "emake failed"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
79
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
80 if use emacs ; then
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
81 pushd lib/tools/emacs
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
82 elisp-compile *.el
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
83 popd
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
84 fi
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
85 }
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
86
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
87 extract_version() {
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
88 sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
89 }
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
90
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
91 src_install() {
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
92 local ERL_LIBDIR=/usr/$(get_libdir)/erlang
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
93 local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN)
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
94 local ERL_ERTS_VER=$(extract_version erts VSN)
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
95
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
96 emake -j1 INSTALL_PREFIX="${D}" install || die "install failed"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
97 dodoc AUTHORS README
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
98
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
99 dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
100 dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
101 dosym "${ERL_LIBDIR}/bin/ear" /usr/bin/ear
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
102 dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
103 dosym \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
104 "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
105 /usr/bin/erl_call
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
106 dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
107
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
108 ## Remove ${D} from the following files
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
109 dosed "${ERL_LIBDIR}/bin/erl"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
110 dosed "${ERL_LIBDIR}/bin/start"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
111 grep -rle "${D}" "${D}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
112
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
113 ## Clean up the no longer needed files
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
114 rm "${D}/${ERL_LIBDIR}/Install"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
115
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
116 if use doc ; then
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
117 for i in "${WORKDIR}"/man/man* ; do
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
118 dodir "${ERL_LIBDIR}/${i##${WORKDIR}}"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
119 done
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
120 for file in "${WORKDIR}"/man/man*/*.[1-9]; do
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
121 # Man page processing tools expect a capitalized "SEE ALSO" section
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
122 # header, has been reported upstream, should be fixed in R12
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
123 sed -i -e 's,\.SH See Also,\.SH SEE ALSO,g' ${file}
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
124 # doman sucks so we can't use it
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
125 cp ${file} "${D}/${ERL_LIBDIR}"/man/man${file##*.}/
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
126 done
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
127 # extend MANPATH, so the normal man command can find it
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
128 # see bug 189639
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
129 dodir /etc/env.d/
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
130 echo "MANPATH=\"${ERL_LIBDIR}/man\"" > "${D}/etc/env.d/90erlang"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
131 dohtml -A README,erl,hrl,c,h,kwc,info -r \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
132 "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-*
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
133 fi
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
134
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
135 if use emacs ; then
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
136 pushd "${S}"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
137 elisp-install erlang lib/tools/emacs/*.{el,elc}
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
138 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
139 popd
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
140 fi
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
141
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
142 # prepare erl for SMP, fixes bug #188112
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
143 use smp && sed -i -e 's:\(exec.*erlexec\):\1 -smp:' \
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
144 "${D}/${ERL_LIBDIR}/bin/erl"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
145 }
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
146
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
147 pkg_postinst() {
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
148 use emacs && elisp-site-regen
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
149 elog
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
150 elog "If you need a symlink to one of Erlang's binaries,"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
151 elog "please open a bug on http://bugs.gentoo.org/"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
152 elog
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
153 elog "Gentoo's versioning scheme differs from the author's, so please refer to this version as ${MY_PV}"
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
154 elog
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
155 }
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
156
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
157 pkg_postrm() {
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
158 use emacs && elisp-site-regen
34f7f8bfe80e bump erlang to 12.2.3; add patch for glibc 2.8
holger@hoho.dyndns.org
parents:
diff changeset
159 }