annotate net-misc/rabbitmq-server/rabbitmq-server-1.4.0.ebuild @ 58:92f35dfbf2b8

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