# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit cvs eutils DESCRIPTION="Direct connect client, looks and works like famous DC++" HOMEPAGE="http://linuxdcpp.berlios.de" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="debug" ECVS_SERVER="cvs.linuxdcpp.berlios.de:/cvsroot/linuxdcpp" ECVS_MODULE="linuxdcpp" ECVS_AUTH="pserver" ECVS_USER="anonymous" S=${WORKDIR}/${ECVS_MODULE} RDEPEND=">=gnome-base/libglade-2.4 >=x11-libs/gtk+-2.6 app-arch/bzip2" DEPEND="${RDEPEND} dev-util/scons" src_compile() { sed -i -e 's:/usr/local:/usr:' SConstruct if use debug; then scons debug=1 || "scons failed." else # respect MAKEOPTS and CXXFLAGS defined in /etc/make.conf, so stripping # upstream defined optimization -O3. sed -i -e 's:-O3::' SConstruct scons ${MAKEOPTS} release=1 || "scons failed." fi } src_install() { rm -rf glade/CVS pixmaps/CVS pixmaps/svg/CVS insinto /usr/share/${PN} doins -r ${PN} pixmaps glade dodoc Readme.txt Changelog.txt Credits.txt dosym /usr/share/${PN}/${PN} /usr/bin/${PN} fperms +x /usr/share/${PN}/${PN} dosym /usr/share/${PN}/pixmaps/${PN}.png /usr/share/pixmaps/${PN}.png make_desktop_entry ${PN} "${PN}" ${PN}.png } pkg_postinst() { elog elog "When adding first directory to shares, restart might be required." elog "UTF-8 is known to cause issues, read /usr/share/doc/${P}/Readme.txt.gz" elog "for information." elog }