You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-p2p/linuxdcpp/linuxdcpp-9999.ebuild

53 lines
1.3 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/linuxdcpp/linuxdcpp-9999.ebuild,v 1.16 2012/05/04 06:33:34 jdhore Exp $
EAPI="1"
inherit bzr eutils
DESCRIPTION="Direct connect client, looks and works like famous DC++"
HOMEPAGE="https://launchpad.net/linuxdcpp"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="debug"
EBZR_REPO_URI="lp:linuxdcpp"
S=${WORKDIR}/${P}
RDEPEND=">=gnome-base/libglade-2.4:2.0
>=x11-libs/gtk+-2.6:2
app-arch/bzip2
dev-libs/openssl"
DEPEND="${RDEPEND}
media-libs/fontconfig
>=dev-util/scons-0.96
virtual/pkgconfig
>=dev-libs/boost-1.35.0-r2"
src_compile() {
local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
local myconf=""
use debug && myconf="${myconf} debug=1"
scons ${myconf} ${sconsopts} CXXFLAGS="${CXXFLAGS}" PREFIX=/usr || die "scons failed"
}
src_install() {
# linuxdcpp does not install docs according to gentoos naming scheme, so do it by hand
dodoc Readme.txt Changelog.txt Credits.txt
rm "${S}"/*.txt
scons install PREFIX="/usr" FAKE_ROOT="${D}" || die "scons install failed"
}
pkg_postinst() {
elog
elog "After adding first directory to shares you might need to restart linuxdcpp."
elog
}