/[gentoo-x86]/net-misc/dhcpcd-ui/dhcpcd-ui-0.7.4.ebuild
Gentoo

Contents of /net-misc/dhcpcd-ui/dhcpcd-ui-0.7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Wed Nov 12 19:28:24 2014 UTC (5 years, 7 months ago) by hwoarang
Branch: MAIN
Changes since 1.3: +3 -3 lines
Allow building without gtk/gtk3/qt4 in order to get only the dhcpcd-online application. Fix icon restrictions. Bug #528904

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

1 hwoarang 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 hwoarang 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/dhcpcd-ui/dhcpcd-ui-0.7.4.ebuild,v 1.3 2014/11/11 17:51:31 hwoarang Exp $
4 hwoarang 1.1
5     EAPI=5
6    
7     inherit eutils systemd
8    
9     DESCRIPTION="Desktop notification and configuration for dhcpcd"
10     HOMEPAGE="http://roy.marples.name/projects/dhcpcd-ui/"
11     SRC_URI="http://roy.marples.name/downloads/${PN%-ui}/${P}.tar.bz2"
12    
13     LICENSE="BSD-2"
14     SLOT="0"
15     KEYWORDS="~amd64 ~x86"
16 hwoarang 1.3 IUSE="debug gtk gtk3 +icons qt4 libnotify"
17 hwoarang 1.4 REQUIRED_USE="?? ( gtk gtk3 qt4 )
18 hwoarang 1.1 gtk3? ( !gtk ) gtk? ( !gtk3 )
19 hwoarang 1.4 icons? ( || ( gtk gtk3 qt4 ) )"
20 hwoarang 1.1
21     DEPEND="${DEPEND}
22     virtual/libintl
23     libnotify? (
24     gtk? ( x11-libs/libnotify )
25     gtk3? ( x11-libs/libnotify )
26     qt4? ( kde-base/kdelibs )
27     )
28     gtk? ( x11-libs/gtk+:2 )
29     gtk3? ( x11-libs/gtk+:3 )
30     qt4? ( dev-qt/qtgui:4 )"
31    
32     RDEPEND=">=net-misc/dhcpcd-6.4.4
33     !icons? ( x11-themes/hicolor-icon-theme )"
34    
35     src_prepare()
36     {
37     epatch_user
38     }
39    
40     src_configure()
41     {
42     local myeconfargs=(
43     $(use_enable debug)
44     $(use_with icons)
45     $(usex gtk '--with-gtk=gtk+-2.0' '')
46     $(usex gtk3 '--with-gtk=gtk+-3.0' '')
47     $(use_with qt4 qt)
48     $(use_enable libnotify notification)
49 hwoarang 1.2 $(use gtk || use gtk3 || echo '--without-gtk')
50 hwoarang 1.1 )
51     econf "${myeconfargs[@]}"
52     }
53    
54     src_install()
55     {
56     emake DESTDIR="${D}" INSTALL_ROOT="${D}" install
57    
58     systemd_dounit src/dhcpcd-online/dhcpcd-wait-online.service
59     }

  ViewVC Help
Powered by ViewVC 1.1.20