1 |
commit: 6a45b8c223f9fa9b259dbc422766626c71077b71 |
2 |
Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 23:16:45 2011 +0000 |
4 |
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 6 00:12:19 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=6a45b8c2 |
7 |
|
8 |
Add net-misc/modemmanager-0.4.996 |
9 |
|
10 |
* Install udev rules in /lib/udev instead of /etc/udev |
11 |
|
12 |
--- |
13 |
net-misc/modemmanager/modemmanager-0.4.996.ebuild | 61 +++++++++++++++++++++ |
14 |
1 files changed, 61 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/modemmanager/modemmanager-0.4.996.ebuild b/net-misc/modemmanager/modemmanager-0.4.996.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..5eb20f4 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/modemmanager/modemmanager-0.4.996.ebuild |
21 |
@@ -0,0 +1,61 @@ |
22 |
+# Copyright 1999-2011 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/modemmanager/modemmanager-0.4_p20110205.ebuild,v 1.1 2011/02/05 00:00:36 dagger Exp $ |
25 |
+ |
26 |
+EAPI="4" |
27 |
+GNOME_ORG_MODULE="ModemManager" |
28 |
+ |
29 |
+inherit gnome.org eutils |
30 |
+ |
31 |
+DESCRIPTION="Modem and mobile broadband management libraries" |
32 |
+HOMEPAGE="http://cgit.freedesktop.org/ModemManager/ModemManager/" |
33 |
+ |
34 |
+LICENSE="LGPL-2.1" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
37 |
+IUSE="doc policykit test" |
38 |
+ |
39 |
+RDEPEND=">=dev-libs/glib-2.18:2 |
40 |
+ >=sys-fs/udev-145[extras] |
41 |
+ >=dev-libs/dbus-glib-0.86 |
42 |
+ net-dialup/ppp |
43 |
+ policykit? ( >=sys-auth/polkit-0.99 )" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ >=dev-util/intltool-0.35.0 |
46 |
+ sys-devel/gettext |
47 |
+ dev-util/pkgconfig" |
48 |
+ |
49 |
+S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}" |
50 |
+ |
51 |
+DOCS="AUTHORS ChangeLog NEWS README" |
52 |
+ |
53 |
+src_configure() { |
54 |
+ # ppp-2.4.5 changes the plugin directory |
55 |
+ if has_version '=net-dialup/ppp-2.4.4*'; then |
56 |
+ pppd_plugin_dir="pppd/2.4.4" |
57 |
+ elif has_version '=net-dialup/ppp-2.4.5*'; then |
58 |
+ pppd_plugin_dir="pppd/2.4.5" |
59 |
+ fi |
60 |
+ |
61 |
+ econf \ |
62 |
+ --disable-more-warnings \ |
63 |
+ --with-udev-base-dir=/lib/udev/ \ |
64 |
+ --disable-static \ |
65 |
+ --with-dist-version=${PVR} \ |
66 |
+ --with-pppd-plugin-dir="/usr/$(get_libdir)/${pppd_plugin_dir}" \ |
67 |
+ $(use_with doc docs) \ |
68 |
+ $(use_with policykit polkit) \ |
69 |
+ $(use_with test tests) |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ default |
74 |
+ # Remove useless .la files |
75 |
+ find "${D}" -name '*.la' -exec rm -f {} + |
76 |
+} |
77 |
+ |
78 |
+pkg_postinst() { |
79 |
+ elog "If your USB modem shows up as a Flash drive when you plug it in," |
80 |
+ elog "You should install sys-apps/usb_modeswitch which will automatically" |
81 |
+ elog "switch it over to USB modem mode whenever you plug it in." |
82 |
+} |