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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Mon Jan 28 05:11:32 2013 UTC (6 years, 10 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Fix license; ModemManager had switched from LGPL to GPL in 2009. Drop old.

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)

1 # Copyright 1999-2012 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.4.ebuild,v 1.10 2012/12/02 22:46:07 ssuominen Exp $
4
5 EAPI="2"
6
7 inherit gnome.org eutils multilib udev
8
9 # ModemManager likes itself with capital letters
10 MY_PN="${PN/modemmanager/ModemManager}"
11
12 DESCRIPTION="Modem and mobile broadband management libraries"
13 HOMEPAGE="http://mail.gnome.org/archives/networkmanager-list/2008-July/msg00274.html"
14 SRC_URI="${SRC_URI//${PN}/${MY_PN}}"
15
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 KEYWORDS="amd64 ~arm ppc ppc64 x86"
19 IUSE="doc policykit test"
20
21 RDEPEND=">=dev-libs/glib-2.18
22 virtual/udev[gudev]
23 >=dev-libs/dbus-glib-0.86
24 net-dialup/ppp
25 policykit? ( >=sys-auth/polkit-0.95 )"
26 DEPEND="${RDEPEND}
27 >=dev-util/intltool-0.35.0
28 sys-devel/gettext
29 virtual/pkgconfig"
30
31 S="${WORKDIR}/${MY_PN}-${PV}"
32
33 src_prepare() {
34 # fix building against glib-2.31 headers
35 epatch "${FILESDIR}/${PN}-0.5-glib-2.31.patch"
36 }
37
38 src_configure() {
39 # ppp-2.4.5 will change the plugin directory (not added to portage yet)
40 if has_version '=net-dialup/ppp-2.4.4*'; then
41 pppd_plugin_dir="pppd/2.4.4"
42 elif has_version '=net-dialup/ppp-2.4.5*'; then
43 pppd_plugin_dir="pppd/2.4.5"
44 fi
45
46 econf \
47 --disable-more-warnings \
48 --with-udev-base-dir="$(udev_get_udevdir)" \
49 --disable-static \
50 --with-dist-version=${PVR} \
51 --with-pppd-plugin-dir="/usr/$(get_libdir)/${pppd_plugin_dir}" \
52 $(use_with doc docs) \
53 $(use_with policykit polkit) \
54 $(use_with test tests)
55 }
56
57 src_install() {
58 emake DESTDIR="${D}" install || die "emake install failed"
59 dodoc AUTHORS ChangeLog NEWS README
60 # Remove useless .la files
61 rm -vf "${D}"/usr/$(get_libdir)/{${MY_PN},${pppd_plugin_dir}}/*.la
62 }
63
64 pkg_postinst() {
65 elog "If your USB modem shows up as a Flash drive when you plug it in,"
66 elog "You should install sys-apps/usb_modeswitch which will automatically"
67 elog "switch it over to USB modem mode whenever you plug it in."
68 }

  ViewVC Help
Powered by ViewVC 1.1.20