/[gentoo-x86]/net-p2p/linuxdcpp/linuxdcpp-1.0.3-r1.ebuild
Gentoo

Contents of /net-p2p/linuxdcpp/linuxdcpp-1.0.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri May 4 06:33:34 2012 UTC (2 years, 3 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-p2p/linuxdcpp/linuxdcpp-1.0.3-r1.ebuild,v 1.4 2011/03/28 14:30:10 nirbheek Exp $
4
5 EAPI=2
6
7 inherit eutils
8
9 DESCRIPTION="Direct connect client, looks and works like famous DC++"
10 HOMEPAGE="https://launchpad.net/linuxdcpp"
11 SRC_URI="http://launchpad.net/linuxdcpp/1.0/${PV}/+download/${P}.tar.bz2"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
15 IUSE="debug"
16
17 RDEPEND=">=gnome-base/libglade-2.4:2.0
18 >=x11-libs/gtk+-2.6:2
19 app-arch/bzip2
20 dev-libs/openssl"
21 DEPEND="${RDEPEND}
22 media-libs/fontconfig
23 >=dev-util/scons-0.96
24 virtual/pkgconfig"
25
26 src_prepare() {
27 # prevent scons installation of *txt files to wrong directory
28 sed -i 's/.*source = text_files.*//' SConstruct
29 }
30
31 src_compile() {
32 local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
33
34 local myconf=""
35 use debug && myconf="${myconf} debug=1"
36
37 scons ${myconf} ${sconsopts} CXXFLAGS="${CXXFLAGS}" PREFIX=/usr || die "scons failed"
38 }
39
40 src_install() {
41 # linuxdcpp does not install docs according to gentoos naming scheme, so do it by hand
42 dodoc Readme.txt Changelog.txt Credits.txt
43 rm "${S}"/*.txt
44
45 scons install PREFIX="/usr" FAKE_ROOT="${D}" || die "scons install failed"
46
47 doicon pixmaps/${PN}.png
48 make_desktop_entry ${PN} ${PN}
49 }
50
51 pkg_postinst() {
52 elog
53 elog "After adding first directory to shares you might need to restart linuxdcpp."
54 elog
55 }

  ViewVC Help
Powered by ViewVC 1.1.20