Lines 1-19
Link Here
|
1 |
# Copyright 1999-2014 Gentoo Foundation |
1 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: net-misc/dhcpcd-ui/dhcpcd-ui-0.7.2.ebuild,v 1.1 2014/09/17 18:29:24 -tclover Exp $ |
3 |
# $Header: net-misc/dhcpcd-ui/dhcpcd-ui-0.7.2.ebuild,v 1.1 2014/09/18 18:29:24 -tclover Exp $ |
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit systemd multilib |
7 |
if [[ ${PV} == "9999" ]]; then |
|
|
8 |
FOSSIL_URI="http://roy.marples.name/projects/dhcpcd" |
9 |
else |
10 |
SRC_URI="http://roy.marples.name/downloads/${PN}/${P}.tar.bz2" |
11 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
12 |
fi |
13 |
|
14 |
inherit eutils systemd |
8 |
|
15 |
|
9 |
DESCRIPTION="Desktop notification and configuration for dhcpcd" |
16 |
DESCRIPTION="Desktop notification and configuration for dhcpcd" |
10 |
HOMEPAGE="http://roy.marples.name/projects/dhcpcd-ui/" |
17 |
HOMEPAGE="http://roy.marples.name/projects/dhcpcd-ui/" |
11 |
SRC_URI="http://roy.marples.name/downloads/dhcpcd/${P}.tar.bz2" |
|
|
12 |
|
18 |
|
13 |
LICENSE="BSD-2" |
19 |
LICENSE="BSD-2" |
14 |
SLOT="0" |
20 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" |
|
|
16 |
IUSE="debug gtk gtk3 icons qt4 systemd libnotify" |
21 |
IUSE="debug gtk gtk3 icons qt4 systemd libnotify" |
|
|
22 |
REQUIRED_USE="qt4? ( icons )" |
17 |
|
23 |
|
18 |
DEPEND="virtual/libintl |
24 |
DEPEND="virtual/libintl |
19 |
libnotify? ( virtual/notification-daemon ) |
25 |
libnotify? ( virtual/notification-daemon ) |
Lines 24-30
Link Here
|
24 |
RDEPEND="${DEPEND} |
30 |
RDEPEND="${DEPEND} |
25 |
!icons? ( x11-themes/hicolor-icon-theme )" |
31 |
!icons? ( x11-themes/hicolor-icon-theme )" |
26 |
|
32 |
|
27 |
src_configure() { |
33 |
if [[ ${PV} == "9999" ]]; then |
|
|
34 |
DEPEND+=" dev-vcs/fossil" |
35 |
|
36 |
src_unpack() |
37 |
{ |
38 |
local distdir=${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}} |
39 |
local repo=${distdir}/fossil/${PN}.fossil |
40 |
|
41 |
addwrite "${distdir}" |
42 |
|
43 |
if [[ -e "${repo}" ]]; then |
44 |
fossil pull "${FOSSIL_URI}" -R "${repo}" || die |
45 |
else |
46 |
mkdir -p "${distdir}/fossil" || die |
47 |
fossil clone "${FOSSIL_URI}" "${repo}" || die |
48 |
fi |
49 |
|
50 |
mkdir -p "${S}" || die |
51 |
cd "${S}" || die |
52 |
fossil open "${repo}" || die |
53 |
} |
54 |
fi |
55 |
|
56 |
src_prepare() |
57 |
{ |
58 |
epatch_user |
59 |
} |
60 |
|
61 |
src_configure() |
62 |
{ |
28 |
local myeconfargs=( |
63 |
local myeconfargs=( |
29 |
$(use_enable debug) |
64 |
$(use_enable debug) |
30 |
$(use_with icons) |
65 |
$(use_with icons) |
Lines 35-44
Link Here
|
35 |
econf "${myeconfargs[@]}" |
70 |
econf "${myeconfargs[@]}" |
36 |
} |
71 |
} |
37 |
|
72 |
|
38 |
src_install() { |
73 |
src_install() |
|
|
74 |
{ |
39 |
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install |
75 |
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install |
40 |
|
76 |
|
41 |
use systemd && systemd_dounit src/dhcpcd-online/dhcpcd-wait-online.service |
77 |
use systemd && systemd_dounit src/dhcpcd-online/dhcpcd-wait-online.service |
42 |
} |
78 |
} |
43 |
|
79 |
|
44 |
|
|
|