diff options
Diffstat (limited to 'net-libs/wvstreams/wvstreams-4.4.1.ebuild')
-rw-r--r-- | net-libs/wvstreams/wvstreams-4.4.1.ebuild | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/net-libs/wvstreams/wvstreams-4.4.1.ebuild b/net-libs/wvstreams/wvstreams-4.4.1.ebuild new file mode 100644 index 000000000000..5af88bd07560 --- /dev/null +++ b/net-libs/wvstreams/wvstreams-4.4.1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/wvstreams/wvstreams-4.4.1.ebuild,v 1.1 2008/06/21 01:34:57 mrness Exp $ + +WANT_AUTOCONF=latest +WANT_AUTOMAKE=none + +inherit eutils fixheadtails autotools qt3 + +DESCRIPTION="A network programming library in C++" +HOMEPAGE="http://alumnit.ca/wiki/?WvStreams" +SRC_URI="http://wvstreams.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="qt3 qdbm pam slp doc debug" + +RESTRICT="test" + +RDEPEND=">=sys-libs/db-4 + sys-libs/zlib + dev-libs/openssl + dev-libs/xplc + qt3? ( $(qt_min_version 3.1) ) + qdbm? ( dev-db/qdbm ) + pam? ( sys-libs/pam ) + slp? ( net-libs/openslp )" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( app-doc/doxygen )" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-linux-serial.patch" + epatch "${FILESDIR}/${P}-wireless-user.patch" + epatch "${FILESDIR}/${P}-uniconfd-ini.patch" + epatch "${FILESDIR}/${P}-as-needed.patch" + epatch "${FILESDIR}/${P}-type-punned.patch" + epatch "${FILESDIR}/${P}-sigaction.patch" + epatch "${FILESDIR}/${P}-wvconfemu.patch" + epatch "${FILESDIR}/${P}-external-xplc.patch" + use qt3 && epatch "${FILESDIR}/${P}-MOC-fix.patch" + epatch "${FILESDIR}/${P}-valgrind.patch" + epatch "${FILESDIR}/${P}-gnulib.patch" + epatch "${FILESDIR}/${P}-gcc43.patch" + + ht_fix_file "${S}/configure.ac" + + #needed by xplc, as-needed and gnulib patch + cd "${S}" + eautoreconf || die "eautoreconf failed" +} + +src_compile() { + econf \ + `use_with qdbm` \ + `use_with pam` \ + `use_with slp openslp` \ + `use_with qt3 qt` \ + `use_enable debug` \ + --disable-optimization \ + --without-tcl \ + --without-swig \ + --with-xplc \ + --enable-verbose \ + --with-bdb \ + --with-zlib \ + --with-openssl \ + || die "configure failed" + emake CXXOPTS="-fPIC -DPIC" COPTS="-fPIC -DPIC" || die "compile failed" + use doc && doxygen +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + if use doc ; then + #the list of files is too big for dohtml -r Docs/doxy-html/* + cd Docs/doxy-html + dohtml -r * + fi +} |