/[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 - (hide annotations) (download)
Fri May 4 06:33:34 2012 UTC (2 years, 4 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 jdhore 1.5 # Copyright 1999-2012 Gentoo Foundation
2 sochotnicky 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.5 # $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 sochotnicky 1.1
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 nirbheek 1.4 RDEPEND=">=gnome-base/libglade-2.4:2.0
18     >=x11-libs/gtk+-2.6:2
19 sochotnicky 1.1 app-arch/bzip2
20     dev-libs/openssl"
21     DEPEND="${RDEPEND}
22     media-libs/fontconfig
23     >=dev-util/scons-0.96
24 jdhore 1.5 virtual/pkgconfig"
25 sochotnicky 1.1
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 ssuominen 1.3 local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[[:space:]]*[0-9]\+\).*/\1/; p }")
33    
34 sochotnicky 1.1 local myconf=""
35     use debug && myconf="${myconf} debug=1"
36    
37 ssuominen 1.3 scons ${myconf} ${sconsopts} CXXFLAGS="${CXXFLAGS}" PREFIX=/usr || die "scons failed"
38 sochotnicky 1.1 }
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 ssuominen 1.2 make_desktop_entry ${PN} ${PN}
49 sochotnicky 1.1 }
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