diff options
author | Karol Wojtaszek <sekretarz@gentoo.org> | 2005-07-13 18:03:07 +0000 |
---|---|---|
committer | Karol Wojtaszek <sekretarz@gentoo.org> | 2005-07-13 18:03:07 +0000 |
commit | c5522f19042bba9004917ec47019b18310fcb49f (patch) | |
tree | 109c55e0d63df0e82f81b62a30375f1c77f95cc2 /net-p2p/dc-qt | |
parent | #98736: version bump (diff) | |
download | gentoo-2-c5522f19042bba9004917ec47019b18310fcb49f.tar.gz gentoo-2-c5522f19042bba9004917ec47019b18310fcb49f.tar.bz2 gentoo-2-c5522f19042bba9004917ec47019b18310fcb49f.zip |
Added xine as a optional dependency, bug #79766
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-p2p/dc-qt')
-rw-r--r-- | net-p2p/dc-qt/ChangeLog | 8 | ||||
-rw-r--r-- | net-p2p/dc-qt/dc-qt-0.1.2.ebuild | 21 | ||||
-rw-r--r-- | net-p2p/dc-qt/files/dc-qt-0.1.2-xine.patch | 25 |
3 files changed, 47 insertions, 7 deletions
diff --git a/net-p2p/dc-qt/ChangeLog b/net-p2p/dc-qt/ChangeLog index 833ac097e985..976e434b60cc 100644 --- a/net-p2p/dc-qt/ChangeLog +++ b/net-p2p/dc-qt/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-p2p/dc-qt -# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/dc-qt/ChangeLog,v 1.5 2004/10/18 12:34:02 weeve Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/dc-qt/ChangeLog,v 1.6 2005/07/13 18:03:07 sekretarz Exp $ + + 13 Jul 2005; <sekretarz@gentoo.org> +files/dc-qt-0.1.2-xine.patch, + dc-qt-0.1.2.ebuild: + Added xine as a optional dependency, bug #79766 18 Oct 2004; Jason Wever <weeve@gentoo.org> dc-qt-0.1.2.ebuild: Added ~sparc keyword. diff --git a/net-p2p/dc-qt/dc-qt-0.1.2.ebuild b/net-p2p/dc-qt/dc-qt-0.1.2.ebuild index cb33f7227333..60e5fb47cf3b 100644 --- a/net-p2p/dc-qt/dc-qt-0.1.2.ebuild +++ b/net-p2p/dc-qt/dc-qt-0.1.2.ebuild @@ -1,8 +1,10 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/dc-qt/dc-qt-0.1.2.ebuild,v 1.3 2004/10/18 12:34:02 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/dc-qt/dc-qt-0.1.2.ebuild,v 1.4 2005/07/13 18:03:07 sekretarz Exp $ -IUSE="" +inherit eutils + +IUSE="xine" DESCRIPTION="Direct Connect Text Client, QT Gui" HOMEPAGE="http://dc-qt.sourceforge.net/" @@ -14,10 +16,19 @@ KEYWORDS="~x86 ~ppc ~amd64 ~sparc" DEPEND=">=x11-libs/qt-3.2 >=net-p2p/dctc-0.85.9 - >=media-libs/xine-lib-1_rc5" + xine? ( >=media-libs/xine-lib-1_rc5 )" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${P}-xine.patch + autoreconf +} src_compile() { - econf || die + econf \ + `use_with xine` || die emake || die } diff --git a/net-p2p/dc-qt/files/dc-qt-0.1.2-xine.patch b/net-p2p/dc-qt/files/dc-qt-0.1.2-xine.patch new file mode 100644 index 000000000000..c59fde70113f --- /dev/null +++ b/net-p2p/dc-qt/files/dc-qt-0.1.2-xine.patch @@ -0,0 +1,25 @@ +diff -Naur dc-qt-0.1.2.orig/configure.ac dc-qt-0.1.2/configure.ac +--- dc-qt-0.1.2.orig/configure.ac 2004-08-26 18:20:37.000000000 +0000 ++++ dc-qt-0.1.2/configure.ac 2005-07-13 19:39:29.000000000 +0000 +@@ -145,6 +145,11 @@ + AC_ARG_WITH(qt-libs, [ --with-qt-libs=DIR qt-libs in DIR]) + AC_ARG_WITH(pthread-libs, [ --with-pthread-libs=DIR bz2-pthread in DIR]) + ++AC_ARG_WITH(xine, [ --with-xine xine support]) ++if test -z "$with_xine"; then ++ with_xine="no" ++fi ++ + AC_ARG_WITH(xine-prefix, + [ --with-xine-prefix=DIR xine installed in DIR], + xine_cfg_prefix="$withval", xine_cfg_prefix="") +@@ -253,7 +258,8 @@ + AC_PATH_PROG(XINE_CONFIG, xine-config, no) + AC_MSG_CHECKING([for XINE-LIB version >= $min_xine_version]) + no_xine="" +- if test "$XINE_CONFIG" = "no" ; then ++ ++ if test "$with_xine" = "no" ; then + no_xine=yes + else + XINE_CFLAGS=`$XINE_CONFIG $xine_config_args --cflags` |