summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2006-05-10 19:10:34 +0000
committerAlin Năstac <mrness@gentoo.org>2006-05-10 19:10:34 +0000
commit0ae592b5b4b214c76aaa352063719ef91e21f2dd (patch)
treed99be9b8507c2690189e463d9743d28f193d46c5 /net-libs
parentUnmasking newer goffice/gnumeric since it's properly handled now (diff)
downloadhistorical-0ae592b5b4b214c76aaa352063719ef91e21f2dd.tar.gz
historical-0ae592b5b4b214c76aaa352063719ef91e21f2dd.tar.bz2
historical-0ae592b5b4b214c76aaa352063719ef91e21f2dd.zip
Remove tcltk USE flag and fix broken build on systems with --as-needed in their LDFLAGS (#132556)
Package-Manager: portage-2203-svn
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/wvstreams/ChangeLog9
-rw-r--r--net-libs/wvstreams/Manifest11
-rw-r--r--net-libs/wvstreams/files/digest-wvstreams-4.2.2-r21
-rw-r--r--net-libs/wvstreams/files/wvstreams-4.2.2-as-needed.patch34
-rw-r--r--net-libs/wvstreams/wvstreams-4.2.2-r2.ebuild94
5 files changed, 144 insertions, 5 deletions
diff --git a/net-libs/wvstreams/ChangeLog b/net-libs/wvstreams/ChangeLog
index e1709521753f..68f183dffe45 100644
--- a/net-libs/wvstreams/ChangeLog
+++ b/net-libs/wvstreams/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-libs/wvstreams
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/wvstreams/ChangeLog,v 1.87 2006/05/06 07:54:19 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/wvstreams/ChangeLog,v 1.88 2006/05/10 19:10:33 mrness Exp $
+
+*wvstreams-4.2.2-r2 (10 May 2006)
+
+ 10 May 2006; Alin Nastac <mrness@gentoo.org>
+ +files/wvstreams-4.2.2-as-needed.patch, +wvstreams-4.2.2-r2.ebuild:
+ Remove tcltk USE flag and fix broken build on systems with --as-needed in
+ their LDFLAGS (#132556). Credit goes to TGL <degrenier@easyconnect.fr>.
*wvstreams-4.2.2-r1 (06 May 2006)
diff --git a/net-libs/wvstreams/Manifest b/net-libs/wvstreams/Manifest
index 2c6ddfd5abba..f19ffec98ef4 100644
--- a/net-libs/wvstreams/Manifest
+++ b/net-libs/wvstreams/Manifest
@@ -1,11 +1,12 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 0aaed8ff30592ddc4b698925c782b1da ChangeLog 13691
+MD5 84dea252485dfddd143476fc53bf9d16 ChangeLog 13994
MD5 8cc8c894e6b85859553c7e3e0e787601 files/digest-wvstreams-4.0.2-r1 250
MD5 8cc8c894e6b85859553c7e3e0e787601 files/digest-wvstreams-4.0.2-r2 250
MD5 ce2f63ffae6742f96ede8200eb39c3d1 files/digest-wvstreams-4.2.2 250
MD5 2182d9c21e12e64892b2ff69088ff5e1 files/digest-wvstreams-4.2.2-r1 68
+MD5 2182d9c21e12e64892b2ff69088ff5e1 files/digest-wvstreams-4.2.2-r2 68
MD5 16733d2b49133ec4fd75fa7dbca890ea files/wvstreams-4.0.2-MOC-fix.patch 479
MD5 189d6997246f2943d43b5c18d0a78163 files/wvstreams-4.0.2-external-xplc.patch 1659
MD5 6448ad9ded98b10b600e0b3386d2c4bf files/wvstreams-4.0.2-gcc41.patch 698
@@ -14,6 +15,7 @@ MD5 b65b1449a0bc6ff06e8c843b37717f05 files/wvstreams-4.0.2-speex-const.patch 951
MD5 0b5b1b03e323747aa3ce30492fe18cc1 files/wvstreams-4.0.2-tcl_8_4.patch 1022
MD5 dbec7770662be21658b4ba9740cf2793 files/wvstreams-4.0.2-wireless-user.patch 466
MD5 d5c8bf76b0489abb5a4462b9d2908ced files/wvstreams-4.2.2-MOC-fix.patch 496
+MD5 67f548c22804fade461c723ab385a84c files/wvstreams-4.2.2-as-needed.patch 1679
MD5 3ddd94457f929b986d63723ddc9a0107 files/wvstreams-4.2.2-external-xplc.patch 1213
MD5 cd3499947a721c4f42bfd5f7df77abd3 files/wvstreams-4.2.2-gcc41.patch 2467
MD5 3728d5a371443c7bf725bd9518bcec6f files/wvstreams-4.2.2-linux-serial.patch 1649
@@ -24,11 +26,12 @@ MD5 227de7f678ad662524292836709de75f metadata.xml 313
MD5 e594922148c5a6f7087f083cf392e55c wvstreams-4.0.2-r1.ebuild 2558
MD5 893ee737135acd020f6245da7959dc5a wvstreams-4.0.2-r2.ebuild 2595
MD5 23c4f5469035465548514ddc368028ea wvstreams-4.2.2-r1.ebuild 2594
+MD5 4e00c406ff61b32b92f27ec9618661f1 wvstreams-4.2.2-r2.ebuild 2503
MD5 51bf2ef4a85cbaf7c6af47794f84014a wvstreams-4.2.2.ebuild 2543
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
-iD8DBQFEXFY9jG8pv1lIUX4RAlBWAKC14jaX9qYQ2ZP0BXYgUC2l6rhevgCguVvs
-HOdOYm7nTKri7zu2z/olAQ4=
-=oYj5
+iD8DBQFEYjq8jG8pv1lIUX4RAtKcAKDH/W5UaC7fMS41s+f00KOxN2vhPQCg2wvs
++kdWWeQrz8479OlcIlRhnTQ=
+=zMDv
-----END PGP SIGNATURE-----
diff --git a/net-libs/wvstreams/files/digest-wvstreams-4.2.2-r2 b/net-libs/wvstreams/files/digest-wvstreams-4.2.2-r2
new file mode 100644
index 000000000000..2e9bdd6e87ec
--- /dev/null
+++ b/net-libs/wvstreams/files/digest-wvstreams-4.2.2-r2
@@ -0,0 +1 @@
+MD5 103230cb9926cb8f3f4d8dc8584f3b9c wvstreams-4.2.2.tar.gz 1269821
diff --git a/net-libs/wvstreams/files/wvstreams-4.2.2-as-needed.patch b/net-libs/wvstreams/files/wvstreams-4.2.2-as-needed.patch
new file mode 100644
index 000000000000..99687ff01767
--- /dev/null
+++ b/net-libs/wvstreams/files/wvstreams-4.2.2-as-needed.patch
@@ -0,0 +1,34 @@
+--- wvstreams-4.2.2/configure.ac.orig 2006-05-07 13:28:59.000000000 +0200
++++ wvstreams-4.2.2/configure.ac 2006-05-07 13:31:34.000000000 +0200
+@@ -517,16 +517,19 @@
+ wv_cv_with_qt=no
+ CPPFLAGS_save="$CPPFLAGS"
+ LDFLAGS_save="$LDFLAGS"
++ LIBS_save="$LIBS"
+ for wv_qtdir in $with_qt $QTDIR $QT_SEARCH_PATH; do
+ eval wv_qtdir="$wv_qtdir"
+ CPPFLAGS="$CPPFLAGS_save -I$wv_qtdir/include -I$wv_qtdir/include/qt3"
+- LDFLAGS="$LDFLAGS_save -L$wv_qtdir/lib -lqt-mt"
++ LDFLAGS="$LDFLAGS_save -L$wv_qtdir/lib"
++ LIBS="$LIBS_save -lqt-mt"
+ AC_TRY_LINK([#include <qstring.h>],
+ [QString x("hello"); return 0; ],
+ [wv_cv_with_qt=$wv_qtdir; break])
+ done
+ CPPFLAGS="$CPPFLAGS_save"
+ LDFLAGS="$LDFLAGS_save"
++ LIBS="$LIBS_save"
+ ])
+ with_qt=$wv_cv_with_qt
+ if test "$with_qt" != no; then
+--- wvstreams-4.2.2/wvrules.mk.orig 2006-05-07 13:39:44.000000000 +0200
++++ wvstreams-4.2.2/wvrules.mk 2006-05-07 13:41:02.000000000 +0200
+@@ -272,7 +272,7 @@
+ %.so: SONAME=$@$(if $(SO_VERSION),.$(SO_VERSION))
+ wvsoname=$(if $($1-SONAME),$($1-SONAME),$(if $(SONAME),$(SONAME),$1))
+ define wvlink_so
+- $(LINK_MSG)$(WVLINK_CC) $(LDFLAGS) $($1-LDFLAGS) -Wl,-soname,$(call wvsoname,$1) -shared -o $1 $(filter %.o %.a %.so,$2) $($1-LIBS) $(LIBS) $(XX_LIBS)
++ $(LINK_MSG)$(WVLINK_CC) $(LDFLAGS) $($1-LDFLAGS) -Wl,-soname,$(call wvsoname,$1) -shared -o $1 $(filter %.o %.a,$2) $(filter %.so,$2) $($1-LIBS) $(LIBS) $(XX_LIBS)
+ $(if $(filter-out $(call wvsoname,$1),$1),$(call wvlns,$1,$(call wvsoname,$1)))
+ endef
+
diff --git a/net-libs/wvstreams/wvstreams-4.2.2-r2.ebuild b/net-libs/wvstreams/wvstreams-4.2.2-r2.ebuild
new file mode 100644
index 000000000000..f5b923dad10f
--- /dev/null
+++ b/net-libs/wvstreams/wvstreams-4.2.2-r2.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/wvstreams/wvstreams-4.2.2-r2.ebuild,v 1.1 2006/05/10 19:10:34 mrness Exp $
+
+inherit eutils fixheadtails
+
+DESCRIPTION="A network programming library in C++"
+HOMEPAGE="http://open.nit.ca/wiki/?page=WvStreams"
+SRC_URI="http://open.nit.ca/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
+IUSE="qt qdbm pam slp doc debug"
+
+RESTRICT="test"
+
+RDEPEND=">=sys-libs/db-3
+ >=sys-libs/zlib-1.1.4
+ >=dev-libs/openssl-0.9.7
+ >=dev-libs/xplc-0.3.13
+ qt? ( =x11-libs/qt-3* )
+ qdbm? ( dev-db/qdbm )
+ pam? ( >=sys-libs/pam-0.75 )
+ slp? ( >=net-libs/openslp-1.0.9a )
+ doc? ( app-doc/doxygen )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ >=sys-devel/autoconf-2.59"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-gcc41.patch"
+ 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}-external-xplc.patch"
+ local XPLC_VER=`best_version dev-libs/xplc`
+ XPLC_VER=${XPLC_VER#*/*-} #reduce it to ${PV}-${PR}
+ XPLC_VER=${XPLC_VER%%[_-]*} # main version without beta/pre/patch/revision
+ sed -i -e "s:^xplc_version=.*:xplc_version='${XPLC_VER}':" "${S}/configure.ac" \
+ || die "failed to set current xplc version"
+ rm -r "${S}/xplc"
+
+ use qt && epatch "${FILESDIR}/${P}-MOC-fix.patch"
+
+ ht_fix_file "${S}/configure.ac"
+
+ #needed by xplc and as-needed patch:
+ cd "${S}"
+ env WANT_AUTOCONF=2.59 autoconf || die "autoconf failed"
+ #without following, the makefile would remove some files and request
+ #you to run ./configure again
+ touch include/wvautoconf.h.in configure
+}
+
+src_compile() {
+ local myconf
+ if use qt; then
+ myconf="--with-qt=/usr/qt/3/"
+ export MOC="/usr/qt/3/bin/moc"
+ else
+ myconf="--without-qt"
+ fi
+ econf ${myconf} \
+ `use_with qdbm` \
+ `use_with pam` \
+ `use_with slp openslp` \
+ `use_enable debug` \
+ --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() {
+ make 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
+}