/[gentoo-x86]/net-misc/modemmanager/modemmanager-0.7.990.ebuild
Gentoo

Contents of /net-misc/modemmanager/modemmanager-0.7.990.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jul 20 19:26:36 2013 UTC (6 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, drop old. Also remove 9999 ebuild as nobody is really maintaining it.

(Portage version: 2.1.12.13/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/modemmanager/modemmanager-0.7.990.ebuild,v 1.2 2013/01/31 06:00:34 tetromino Exp $
4
5 EAPI="5"
6 GNOME_ORG_MODULE="ModemManager"
7
8 inherit eutils gnome.org user multilib toolchain-funcs udev virtualx
9
10 DESCRIPTION="Modem and mobile broadband management libraries"
11 HOMEPAGE="http://cgit.freedesktop.org/ModemManager/ModemManager/"
12
13 LICENSE="GPL-2+"
14 SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N}
15 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="doc policykit +qmi qmi-newest test"
17 REQUIRED_USE="qmi-newest? ( qmi )"
18
19 RDEPEND=">=dev-libs/glib-2.30.2:2
20 net-dialup/ppp
21 >=virtual/udev-147[gudev]
22 policykit? ( >=sys-auth/polkit-0.106 )
23 qmi? ( net-libs/libqmi )
24 "
25 DEPEND="${RDEPEND}
26 doc? (
27 app-office/dia
28 dev-libs/libxslt
29 dev-util/gtk-doc )
30 test? (
31 dev-lang/python:2.7
32 dev-python/dbus-python[python_targets_python2_7]
33 dev-python/pygobject:2[python_targets_python2_7] )
34 dev-util/gdbus-codegen
35 >=dev-util/intltool-0.40
36 sys-devel/gettext
37 virtual/pkgconfig
38 "
39
40 src_prepare() {
41 # Use python2.7 shebangs for test scripts
42 sed -e 's@\(^#!.*python\)@\12.7@' \
43 -i test/*.py || die
44
45 epatch_user
46 default
47 }
48
49 src_configure() {
50 # ppp-2.4.5 changes the plugin directory
51 if has_version '=net-dialup/ppp-2.4.4*'; then
52 pppd_plugin_dir="pppd/2.4.4"
53 elif has_version '=net-dialup/ppp-2.4.5*'; then
54 pppd_plugin_dir="pppd/2.4.5"
55 fi
56
57 econf \
58 --disable-more-warnings \
59 --with-udev-base-dir="$(udev_get_udevdir)" \
60 --disable-static \
61 --with-dist-version=${PVR} \
62 --with-pppd-plugin-dir="/usr/$(get_libdir)/${pppd_plugin_dir}" \
63 $(use_with doc docs) \
64 $(use_with policykit polkit) \
65 $(use_with qmi) \
66 $(use_with qmi-newest newest-qmi-commands) \
67 $(use_with test tests)
68 }
69
70 src_install() {
71 default
72 use doc && dohtml docs/spec.html
73
74 # Allow users in plugdev group full control over their modem
75 if use policykit; then
76 insinto /usr/share/polkit-1/rules.d/
77 doins "${FILESDIR}"/01-org.freedesktop.ModemManager.rules
78 fi
79
80 # Remove useless .la files
81 prune_libtool_files --modules
82 }
83
84 pkg_postinst() {
85 if use policykit; then
86 enewgroup plugdev
87 elog "To control your modem without needing to enter the root password,"
88 elog "add your user account to the 'plugdev' group."
89 elog
90 fi
91
92 # The polkit rules file moved to /usr/share
93 old_rules="${EROOT}etc/polkit-1/rules.d/01-org.freedesktop.ModemManager.rules"
94 if [[ -f "${old_rules}" ]]; then
95 case "$(md5sum ${old_rules})" in
96 c5ff02532cb1da2c7545c3069e5d0992* | 5c50f0dc603c0a56e2851a5ce9389335* )
97 # Automatically delete the old rules.d file if the user did not change it
98 elog
99 elog "Removing old ${old_rules} ..."
100 rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually"
101 ;;
102 * )
103 elog "The ${old_rules}"
104 elog "file moved to /usr/share/polkit-1/rules.d/ in >=modemmanager-0.5.2.0-r2"
105 elog "If you edited ${old_rules}"
106 elog "without changing its behavior, you may want to remove it."
107 ;;
108 esac
109 fi
110
111 elog "If your USB modem shows up as a Flash drive when you plug it in,"
112 elog "You should install sys-apps/usb_modeswitch which will automatically"
113 elog "switch it over to USB modem mode whenever you plug it in."
114 }

  ViewVC Help
Powered by ViewVC 1.1.20