[prev in list] [next in list] [prev in thread] [next in thread] 

List:       licq-devel
Subject:    [Licq-devel] ebuild for CVS daily
From:       Mauricio Oliveira Carneiro <carneiro () tecgraf ! puc-rio ! br>
Date:       2004-06-10 16:55:44
Message-ID: 40C89290.9090608 () tecgraf ! puc-rio ! br
[Download RAW message or body]

Maybe it's useful for you gentoo users, I've made a quick ebuild for the 
daily cvs snapshot.

Just put it into : /usr/local/portage/net-im/licq-cvs/ and run :

digest /usr/local/portage/net-im/licq-cvs/licq-cvs-1.3.0.ebuild


Next, just emerge licq-cvs. And don't worry, it won't be erased in your 
next emerge sync.

[]s
Mauricio Oliveira Carneiro
http://www.procc.fiocruz.br/~carneiro

["licq-cvs-1.3.0.ebuild" (text/plain)]

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-im/licq/licq-1.2.7.ebuild,v 1.14 2004/04/27 \
21:59:12 agriffis Exp $

inherit eutils

DESCRIPTION="ICQ Client Daily CVS Snapshot"
HOMEPAGE="http://www.licq.org/"
SRC_URI="http://www.rhrk.uni-kl.de/~dmuell/licq/licq-daily.tar.bz2"

LICENSE="GPL-2"
SLOT="2"
KEYWORDS="x86 ppc sparc alpha ia64 ~amd64"
IUSE="ssl socks5 qt kde ncurses"

# we can't have conditional dependencies so "use kde && inherit kde-base"
# won't work -- messes up dep caching.

# need-kde and their eclass friends inject things into DEPEND. But we only
# want them enabled if the kde USE flag is set. We get around this in the
# following dep lines:
RDEPEND="kde? ( >=kde-base/kdelibs-3.0 )"
DEPEND="kde? ( >=kde-base/kdelibs-3.0 )
	ssl? ( >=dev-libs/openssl-0.9.6 )
	qt? ( >=x11-libs/qt-3.0.0 )
	ncurses? ( sys-libs/ncurses )"

src_unpack() {
	unpack ${A}
	S="${WORKDIR}/licq-*"
	autoconf

	if [ "`use kde`" ]
	then
		# fix for #12436
		ebegin "Setting kde plugin as default..."
		cp ${S}/src/licq.conf.h ${T}
		sed "s:Plugin1 = qt-gui:Plugin1 = kde-gui:" \
			${T}/licq.conf.h > ${S}/src/licq.conf.h
		eend $?
	else
		if [ -z "`use qt`" ]
		then
				ebegin "Setting console plugin as default..."
				cp ${S}/src/licq.conf.h ${T}
				sed "s:Plugin1 = qt-gui:Plugin1 = console:" \
					${T}/licq.conf.h > ${S}/src/licq.conf.h
				eend $?
		fi
	fi
}

src_compile() {
	local first_conf
	use ssl		|| myconf="${myconf} --disable-openssl"
	use socks5	&& myconf="${myconf} --enable-socks5"

	S="${WORKDIR}/licq-*"
	cd ${S}
	econf ${myconf} || die
	emake || die

	# Create the various plug-ins

	# First, the Qt plug-in
	if [ "`use qt`" ]
	then
		# A hack to build against the latest QT:
		local v
		for v in /usr/qt/[0-9]
		do
			[ -d "${v}" ] && export QTDIR="${v}"
		done
		use kde && kde_src_compile myconf
		use kde && myconf="${myconf} --with-kde"

		# note! watch the --prefix=/usr placement;
		# licq itself installs into /usr, but the
		# optional kde/qt interface (to which second_conf belogns)
		# installs its files in $KDE3DIR/{lib,share}/licq

		cd ${S}/plugins/qt-gui
		einfo "Compiling Qt GUI plug-in"
		econf ${myconf} || die
		emake || die
	fi

	# The Console Plug-in was taken out of the cvs ebuild
	# for it was not working as of 26 may 2004
	
	# Now the console plug-in
#	if [ "`use ncurses `" ]
#	then
#		cd ${S}/plugins/console
#		einfo "Compiling the Console plug-in"
#		econf || die
# 		emake || die
# 	fi

	# The Auto-Responder plug-in
	cd ${S}/plugins/auto-reply
	einfo "Compiling the Auto-Reply plug-in"
	econf || die
	emake || die

	# The Remote Management Service
	cd ${S}/plugins/rms
	einfo "Compiling Remote Management Services plug-in"
	econf || die
	emake || die
}

src_install() {
	S="${WORKDIR}/licq-*"
	cd ${S}
	make DESTDIR=${D} install || die

	dodoc ChangeLog INSTALL README* doc/*

	# Install the plug-ins
	if [ "`use qt`" ]
	then
		cd ${S}/plugins/qt-gui
		make DESTDIR=${D} install || die
		docinto plugins/qt-gui
		dodoc README*

		# fix bug #12436, see my comment there
##		if [ "`use kde`" ]; then
##			cd $D/usr/lib/licq
##			ln -s licq_kde-gui.la licq_qt-gui.la
##			ln -s licq_kde-gui.so licq_qt-gui.so
##		fi
	fi
	
	# The Console Plug-in was taken out of the cvs ebuild
	# for it was not working as of 26 may 2004
#	if [ "`use ncurses`" ]
#	then
# 	    cd ${S}/plugins/console
# 	    make DESTDIR=${D} install || die
# 	    docinto plugins/console
# 	    dodoc README
# 	fi


	cd ${S}/plugins/auto-reply
	make DESTDIR=${D} install || die
	docinto plugins/auto-reply
	dodoc README licq_autoreply.conf

	cd ${S}/plugins/rms
	make DESTDIR=${D} install || die
	docinto plugins/rms
	dodoc README licq_rms.conf

	# fixes bug #22136
	rm -fR ${D}/var
	
	einfo "If you are upgrading from 1.2.7 or lower, be sure to apply the \
upgrade-1.30.sh script, available \
from:	http://cvs.sourceforge.net/viewcvs.py/*checkout*/licq/licq/upgrade/upgrade-1.3.0.sh?rev=1.3"
 }


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Licq-devel mailing list
Licq-devel@licq.org
https://lists.sourceforge.net/lists/listinfo/licq-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic