/[gentoo-x86]/sys-cluster/dlm-lib/dlm-lib-2.03.11.ebuild
Gentoo

Contents of /sys-cluster/dlm-lib/dlm-lib-2.03.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Mar 24 13:31:18 2011 UTC (7 years, 6 months ago) by angelos
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -4 lines
Fixed multilib installation

(Portage version: 2.2.0_alpha28/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/dlm-lib/dlm-lib-2.03.11.ebuild,v 1.1 2010/03/22 17:30:02 cardoe Exp $
4
5 inherit eutils linux-mod multilib versionator
6
7 CLUSTER_RELEASE="${PV}"
8 MY_P="cluster-${CLUSTER_RELEASE}"
9
10 MAJ_PV="$(get_major_version)"
11 MIN_PV="$(get_version_component_range 2).$(get_version_component_range 3)"
12
13 DESCRIPTION="General-purpose Distributed Lock Manager"
14 HOMEPAGE="http://sources.redhat.com/cluster/wiki/"
15 SRC_URI="ftp://sources.redhat.com/pub/cluster/releases/${MY_P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE=""
21
22 DEPEND=">=sys-kernel/linux-headers-2.6.24
23 !sys-cluster/dlm-headers
24 !sys-cluster/dlm-kernel
25 "
26
27 RDEPEND="${DEPEND}"
28
29 S="${WORKDIR}/${MY_P}/${PN/-//}"
30
31 src_compile() {
32 (cd "${WORKDIR}"/${MY_P};
33 ./configure \
34 --cc=$(tc-getCC) \
35 --cflags="-Wall" \
36 --libdir="/usr/$(get_libdir)" \
37 --disable_kernel_check \
38 --kernel_src=${KERNEL_DIR} \
39 --somajor="$MAJ_PV" \
40 --sominor="$MIN_PV" \
41 --cmanlibdir="/usr/$(get_libdir)" \
42 --cmanincdir=/usr/include \
43 ) || die "configure problem"
44
45 #emake clean || die "clean problem"
46 emake -j1 || die "compile problem"
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" install || die "install problem"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20