/[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.6 - (show annotations) (download)
Fri Nov 21 09:48:26 2014 UTC (4 weeks, 1 day ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +5 -6 lines
Use makeopts_jobs instead of parsing MAKEOPTS by hand & note this needs converting to escons.

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 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.5 2012/05/04 06:33:34 jdhore Exp $
4
5 EAPI=2
6
7 # TODO: This needs to use the escons eclass.
8 inherit eutils multiprocessing
9
10 DESCRIPTION="Direct connect client, looks and works like famous DC++"
11 HOMEPAGE="https://launchpad.net/linuxdcpp"
12 SRC_URI="http://launchpad.net/linuxdcpp/1.0/${PV}/+download/${P}.tar.bz2"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
16 IUSE="debug"
17
18 RDEPEND=">=gnome-base/libglade-2.4:2.0
19 >=x11-libs/gtk+-2.6:2
20 app-arch/bzip2
21 dev-libs/openssl"
22 DEPEND="${RDEPEND}
23 media-libs/fontconfig
24 >=dev-util/scons-0.96
25 virtual/pkgconfig"
26
27 src_prepare() {
28 # prevent scons installation of *txt files to wrong directory
29 sed -i 's/.*source = text_files.*//' SConstruct
30 }
31
32 src_compile() {
33 local myconf=""
34 use debug && myconf="${myconf} debug=1"
35
36 scons ${myconf} -j$(makeopts_jobs) CXXFLAGS="${CXXFLAGS}" PREFIX=/usr || die "scons failed"
37 }
38
39 src_install() {
40 # linuxdcpp does not install docs according to gentoos naming scheme, so do it by hand
41 dodoc Readme.txt Changelog.txt Credits.txt
42 rm "${S}"/*.txt
43
44 scons install PREFIX="/usr" FAKE_ROOT="${D}" || die "scons install failed"
45
46 doicon pixmaps/${PN}.png
47 make_desktop_entry ${PN} ${PN}
48 }
49
50 pkg_postinst() {
51 elog
52 elog "After adding first directory to shares you might need to restart linuxdcpp."
53 elog
54 }

  ViewVC Help
Powered by ViewVC 1.1.20