diff options
Diffstat (limited to 'sys-cluster/openais/openais-1.1.4-r1.ebuild')
-rw-r--r-- | sys-cluster/openais/openais-1.1.4-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-cluster/openais/openais-1.1.4-r1.ebuild b/sys-cluster/openais/openais-1.1.4-r1.ebuild new file mode 100644 index 000000000000..440d958aa269 --- /dev/null +++ b/sys-cluster/openais/openais-1.1.4-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit autotools base + +DESCRIPTION="Open Application Interface Specification cluster framework" +HOMEPAGE="http://www.openais.org/" +SRC_URI="ftp://ftp:${PN}.org@${PN}.org/downloads/${P}/${P}.tar.gz" + +LICENSE="BSD public-domain" +SLOT="0" +KEYWORDS="amd64 hppa x86 ~x86-fbsd" +IUSE="static-libs" + +RDEPEND="<sys-cluster/corosync-2.0.0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +DOCS=( "${S}/AUTHORS" "${S}/README.amf" ) + +src_prepare() { + # respect CFLAGS + sed -i -e "s/\$OPT_CFLAGS \$GDB_FLAGS//" configure.ac || die + # respect LDFLAGS + sed -i -e "s/\$(CFLAGS) -shared/\$(CFLAGS) \$(LDFLAGS) -shared/" \ + services/Makefile.am || die + # don't install docs + sed -i -e "/^dist_doc/d" Makefile.am || die + eautoreconf +} + +src_configure() { + econf \ + --disable-dependency-tracking \ + --docdir=/usr/share/doc/${PF} \ + --localstatedir=/var +} + +src_install() { + base_src_install + rm -rf "${D}"/etc/init.d/openais || die + use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.a || die +} |