summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/libdlmcontrol')
-rw-r--r--sys-cluster/libdlmcontrol/Manifest2
-rw-r--r--sys-cluster/libdlmcontrol/libdlmcontrol-3.1.0.ebuild50
2 files changed, 26 insertions, 26 deletions
diff --git a/sys-cluster/libdlmcontrol/Manifest b/sys-cluster/libdlmcontrol/Manifest
index 49ba33d..4537cdf 100644
--- a/sys-cluster/libdlmcontrol/Manifest
+++ b/sys-cluster/libdlmcontrol/Manifest
@@ -1,2 +1,2 @@
DIST cluster-3.1.0.tar.gz 641274 RMD160 276f4d183180282bf17fbc38408b8466d85a6637 SHA1 0aa7770bb6877b52dd002ec8b8ae446a692215af SHA256 595afb4a23ec4ee98689083a609c4c32b876436d386fc063b00c31f188576a15
-EBUILD libdlmcontrol-3.1.0.ebuild 1138 RMD160 2bf65b07cbb2d2b3d889447fba3a0007bd04d771 SHA1 80cf2e78c55f30df9ace0ee4d217d7d06e12fdfe SHA256 f1ada65714445f2096035566b6fb699b66a21970878ce0a0749bb40680a8b3ff
+EBUILD libdlmcontrol-3.1.0.ebuild 1195 RMD160 dc0835d7898b8c761249b191f6c266eb82a5470b SHA1 8443a0afa9c8b1be78b578df7c040cd142a2720f SHA256 84c4363b25e54b658e3835d19ada8a208e8173653673acdb74703dcdbb7165e7
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
}