/[gentoo-x86]/sys-cluster/libdlm/libdlm-3.1.5.ebuild
Gentoo

Contents of /sys-cluster/libdlm/libdlm-3.1.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 18 20:54:03 2011 UTC (2 years, 10 months ago) by jer
Branch: MAIN
Changes since 1.1: +2 -2 lines
Marked ~hppa (bug #386951).

(Portage version: 2.2.0_alpha69/cvs/Linux i686)

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/libdlm/libdlm-3.1.5.ebuild,v 1.1 2011/09/14 10:25:39 ultrabug Exp $
4
5 EAPI=4
6
7 inherit linux-info multilib toolchain-funcs versionator
8
9 CLUSTER_RELEASE="${PV}"
10 MY_P="cluster-${CLUSTER_RELEASE}"
11
12 MAJ_PV="$(get_major_version)"
13 MIN_PV="$(get_version_component_range 2-3)"
14
15 DESCRIPTION="General-purpose Distributed Lock Manager Library"
16 HOMEPAGE="https://fedorahosted.org/cluster/wiki/HomePage"
17 SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz"
18
19 LICENSE="LGPL-2.1"
20 SLOT="0"
21 KEYWORDS="~amd64 ~hppa ~x86"
22 IUSE="static-libs"
23
24 RDEPEND="
25 !sys-cluster/dlm-headers
26 !sys-cluster/dlm-kernel
27 !sys-cluster/dlm-lib"
28 DEPEND="${RDEPEND}
29 >=sys-kernel/linux-headers-2.6.24"
30
31 S="${WORKDIR}/${MY_P}/dlm"
32
33 src_prepare() {
34 sed -i \
35 -e "s|/lib|/$(get_libdir)|g" \
36 "${WORKDIR}/${MY_P}/make/install.mk" || die "sed failed"
37 }
38
39 src_configure() {
40 cd "${WORKDIR}/${MY_P}"
41 ./configure \
42 --cc=$(tc-getCC) \
43 --cflags="-Wall" \
44 --libdir=/usr/$(get_libdir) \
45 --disable_kernel_check \
46 --kernel_src=${KERNEL_DIR} \
47 --somajor="$MAJ_PV" \
48 --sominor="$MIN_PV" \
49 --dlmlibdir=/usr/$(get_libdir) \
50 --dlmincdir=/usr/include \
51 --dlmcontrollibdir=/usr/$(get_libdir) \
52 --dlmcontrolincdir=/usr/include \
53 || die "configure problem"
54 }
55
56 src_compile() {
57 for i in libdlm libdlmcontrol; do
58 emake -C ${i}
59 done
60 }
61
62 src_install() {
63 for i in libdlm libdlmcontrol; do
64 emake DESTDIR="${D}" -C ${i} install
65 done
66 use static-libs || rm -f "${D}"/usr/lib*/*.a
67 doman man/libdlm.3
68 dodoc doc/{libdlm.txt,example.c,user-dlm-overview.txt}
69 }

  ViewVC Help
Powered by ViewVC 1.1.20