summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/libdlmcontrol/libdlmcontrol-3.1.0.ebuild')
-rw-r--r--sys-cluster/libdlmcontrol/libdlmcontrol-3.1.0.ebuild50
1 files changed, 25 insertions, 25 deletions
diff --git a/sys-cluster/libdlmcontrol/libdlmcontrol-3.1.0.ebuild b/sys-cluster/libdlmcontrol/libdlmcontrol-3.1.0.ebuild
index 9b70a0e..4d30ad7 100644
--- a/sys-cluster/libdlmcontrol/libdlmcontrol-3.1.0.ebuild
+++ b/sys-cluster/libdlmcontrol/libdlmcontrol-3.1.0.ebuild
@@ -2,7 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-inherit eutils linux-mod versionator
+EAPI="4"
+
+inherit linux-info multilib toolchain-funcs versionator
CLUSTER_RELEASE="${PV}"
MY_P="cluster-${CLUSTER_RELEASE}"
@@ -10,40 +12,38 @@ MY_P="cluster-${CLUSTER_RELEASE}"
MAJ_PV="$(get_major_version)"
MIN_PV="$(get_version_component_range 2).$(get_version_component_range 3)"
-DESCRIPTION="General-purpose Distributed Lock Manager"
+DESCRIPTION="General-purpose Distributed Lock Manager Control Library"
HOMEPAGE="http://sources.redhat.com/cluster/wiki/"
SRC_URI="https://fedorahosted.org/releases/c/l/cluster/${MY_P}.tar.gz"
-LICENSE="GPL-2"
+LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=">=sys-kernel/linux-headers-2.6.24
- !sys-cluster/dlm-headers
- !sys-cluster/dlm-kernel
- "
+IUSE="static-libs"
-RDEPEND="${DEPEND}"
+RDEPEND="!sys-cluster/dlm-headers
+ !sys-cluster/dlm-kernel"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-2.6.24"
S="${WORKDIR}/${MY_P}/dlm/${PN}"
-src_compile() {
- (cd "${WORKDIR}"/${MY_P};
- ./configure \
- --cc=$(tc-getCC) \
- --cflags="-Wall" \
- --disable_kernel_check \
- --kernel_src=${KERNEL_DIR} \
- --somajor="$MAJ_PV" \
- --sominor="$MIN_PV" \
- --dlmcontrollibdir=/usr/lib \
- --dlmcontrolincdir=/usr/include \
- ) || die "configure problem"
-
- emake -j1 || die "compile problem"
+src_configure() {
+ cd "${WORKDIR}/${MY_P}"
+ ./configure \
+ --cc=$(tc-getCC) \
+ --cflags="-Wall" \
+ --libdir=/usr/$(get_libdir) \
+ --disable_kernel_check \
+ --kernel_src=${KERNEL_DIR} \
+ --somajor="$MAJ_PV" \
+ --sominor="$MIN_PV" \
+ --dlmcontrollibdir=/usr/$(get_libdir) \
+ --dlmcontrolincdir=/usr/include \
+ || die "configure problem"
}
src_install() {
- emake DESTDIR="${D}" install || die "install problem"
+ default
+ use static-libs || rm -f "${D}"/usr/lib*/*.a
}