11
|
1 # Copyright 1999-2008 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header: $
|
|
4
|
|
5 inherit eutils
|
|
6
|
58
|
7 DESCRIPTION="RabbitMQ is a high-performance AMQP-compliant message broker written in Erlang."
|
|
8 HOMEPAGE="http://www.rabbitmq.com/"
|
|
9 SRC_URI="http://www.rabbitmq.com/releases/rabbitmq-server/v${PV}/rabbitmq-server-generic-unix-${PV}.tar.gz"
|
|
10 LICENSE="MPL"
|
|
11 SLOT="0"
|
|
12 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
23
|
13 IUSE=""
|
58
|
14
|
|
15 # HH: is RDEPEND-only sufficient for a binary package?
|
23
|
16 DEPEND="dev-lang/erlang"
|
11
|
17 RDEPEND="${DEPEND}"
|
|
18
|
|
19 # Source directory; the dir where the sources can be found (automatically
|
|
20 # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P}
|
|
21 # If you don't need to change it, leave the S= line out of the ebuild
|
|
22 # to keep it tidy.
|
|
23 #S="${WORKDIR}/${P}"
|
|
24
|
|
25 src_compile() {
|
|
26 # Most open-source packages use GNU autoconf for configuration.
|
|
27 # The quickest (and preferred) way of running configure is:
|
|
28 econf || die "econf failed"
|
|
29 #
|
|
30 # You could use something similar to the following lines to
|
|
31 # configure your package before compilation. The "|| die" portion
|
|
32 # at the end will stop the build process if the command fails.
|
|
33 # You should use this at the end of critical commands in the build
|
|
34 # process. (Hint: Most commands are critical, that is, the build
|
|
35 # process should abort if they aren't successful.)
|
|
36 #./configure \
|
|
37 # --host=${CHOST} \
|
|
38 # --prefix=/usr \
|
|
39 # --infodir=/usr/share/info \
|
|
40 # --mandir=/usr/share/man || die "./configure failed"
|
|
41 # Note the use of --infodir and --mandir, above. This is to make
|
|
42 # this package FHS 2.2-compliant. For more information, see
|
|
43 # http://www.pathname.com/fhs/
|
|
44
|
|
45 # emake (previously known as pmake) is a script that calls the
|
|
46 # standard GNU make with parallel building options for speedier
|
|
47 # builds (especially on SMP systems). Try emake first. It might
|
|
48 # not work for some packages, because some makefiles have bugs
|
|
49 # related to parallelism, in these cases, use emake -j1 to limit
|
|
50 # make to a single process. The -j1 is a visual clue to others
|
|
51 # that the makefiles have bugs that have been worked around.
|
|
52 emake || die "emake failed"
|
|
53 }
|
|
54
|
|
55 src_install() {
|
|
56 # You must *personally verify* that this trick doesn't install
|
|
57 # anything outside of DESTDIR; do this by reading and
|
|
58 # understanding the install part of the Makefiles.
|
|
59 # This is the preferred way to install.
|
|
60 emake DESTDIR="${D}" install || die "emake install failed"
|
|
61
|
|
62 # When you hit a failure with emake, do not just use make. It is
|
|
63 # better to fix the Makefiles to allow proper parallelization.
|
|
64 # If you fail with that, use "emake -j1", it's still better than make.
|
|
65
|
|
66 # For Makefiles that don't make proper use of DESTDIR, setting
|
|
67 # prefix is often an alternative. However if you do this, then
|
|
68 # you also need to specify mandir and infodir, since they were
|
|
69 # passed to ./configure as absolute paths (overriding the prefix
|
|
70 # setting).
|
|
71 #emake \
|
|
72 # prefix="${D}"/usr \
|
|
73 # mandir="${D}"/usr/share/man \
|
|
74 # infodir="${D}"/usr/share/info \
|
|
75 # libdir="${D}"/usr/$(get_libdir) \
|
|
76 # install || die "emake install failed"
|
|
77 # Again, verify the Makefiles! We don't want anything falling
|
|
78 # outside of ${D}.
|
|
79
|
|
80 # The portage shortcut to the above command is simply:
|
|
81 #
|
|
82 #einstall || die "einstall failed"
|
|
83 }
|