Magellan Linux

Contents of /trunk/extras/network-manager-applet/network-manager-applet-1.8.12-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31351 - (show annotations) (download)
Thu Jun 21 15:07:55 2018 UTC (5 years, 10 months ago) by niro
File size: 2942 byte(s)
auto added: ver bump to 1.8.12-r1
1 # $Id$
2
3 PNAME="network-manager-applet"
4 PVER="1.8.12"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="libnm-gtk libnma network-manager-applet"
8
9 PCAT="net-misc"
10
11 HOMEPAGE="http://projects.gnome.org/NetworkManager/"
12
13 LIB_DEPEND=">= dev-libs/glib2-2.56
14 >= sys-libs/dbus-libs-1.10
15 >= net-libs/libnm-glib-${PVER}
16 >= sys-fs/libgudev-232
17 >= x11-libs/gtk3+-3.22
18 >= net-misc/mobile-broadband-provider-info-2015
19 >= app-text/iso-codes-3.75"
20
21 NMA_DEPEND=">= net-misc/networkmanager-${PVER}
22 >= net-libs/libmm-glib-1.6
23 >= sys-libs/libstdc++-6.3
24 >= sys-apps/dbus-1.10
25 >= x11-libs/libnotify-0.7
26 >= app-crypt/libsecret-0.18
27 >= virtual/notification-daemon"
28
29 SDEPEND="${LIB_DEPEND}
30 ${NMA_DEPEND}
31 >= gnome-base/gcr-3.28
32 >= dev-util/pkgconfig-0.25
33 >= dev-util/intltool-0.50
34 >= dev-libs/gobject-introspection-1.56"
35
36 SRCFILE="${PNAME}-${PVER}.tar.xz"
37
38 sminclude gnome2 mtools glib2 gtk2 fdo-mime cleanutils
39
40 # use devel mode, odd numbers are stable versions too
41 UP2DATE="updatecmd_gnome network-manager-applet --devel"
42
43 split_info_libnm-gtk()
44 {
45 DESCRIPTION="Libraries for NetworkManager GUI support."
46 DEPEND="${LIB_DEPEND}"
47 PCAT="net-libs"
48 }
49
50 split_info_libnma()
51 {
52 DESCRIPTION="Libraries for NetworkManager GUI support."
53 DEPEND="${LIB_DEPEND}"
54 PCAT="net-libs"
55 }
56
57 split_info_network-manager-applet()
58 {
59 DESCRIPTION="NetworkManager applet for Gnome and Gtk2+"
60 DEPEND="== net-libs/libnm-gtk-${PVER}
61 == net-libs/libnma-${PVER}
62 ${NMA_DEPEND}"
63 }
64
65 src_compile()
66 {
67 cd ${SRCDIR}
68
69 gn2_configure \
70 --libexecdir=/usr/$(mlibdir)/networkmanager \
71 --localstatedir=/var \
72 --disable-more-warnings \
73 --disable-static \
74 --disable-migration \
75 --with-modem-manager-1 \
76 --with-gcr \
77 --with-team \
78 --with-wwan \
79 --without-selinux \
80 --without-appindicator \
81 || die
82
83 mmake || die
84 }
85
86 src_install_libnm-gtk()
87 {
88 cd ${SRCDIR}
89
90 mmake DESTDIR=${BINDIR} install || die
91 zapmost ${BINDIR} \
92 usr/include/libnm-gtk \
93 usr/$(mlibdir)/libnm-gtk.* \
94 usr/$(mlibdir)/pkgconfig/libnm-gtk.pc \
95 usr/$(mlibdir)/girepository-1.0/NMGtk-* \
96 usr/share/gir-1.0/NMGtk-* \
97 usr/share/gtk-doc/html/libnm-gtk \
98 || die
99 }
100
101 src_install_libnma()
102 {
103 cd ${SRCDIR}
104
105 mmake DESTDIR=${BINDIR} install || die
106 zapmost ${BINDIR} \
107 usr/include/libnma \
108 usr/$(mlibdir)/libnma.* \
109 usr/$(mlibdir)/pkgconfig/libnma.pc \
110 usr/$(mlibdir)/girepository-1.0/NMA-* \
111 usr/share/gir-1.0/NMA-* \
112 usr/share/gtk-doc/html/libnma \
113 || die
114 }
115
116 src_install_network-manager-applet()
117 {
118 cd ${SRCDIR}
119 mmake DESTDIR=${BINDIR} install || die
120
121 mdelete -r /usr/include || die
122 mdelete -r /usr/$(mlibdir) || die
123 mdelete -r /usr/share/gir-1.0 || die
124 mdelete -r /usr/share/gtk-doc || die
125
126 minstalldocs AUTHORS CONTRIBUTING COPYING ChangeLog NEWS README || die
127 }
128
129 postinstall_network-manager-applet()
130 {
131 glib2_update_schemas
132 gtk2_update_icon_cache
133 fdo-mime_update_desktop_db
134 }
135
136 postremove_network-manager-applet()
137 {
138 glib2_update_schemas
139 gtk2_update_icon_cache
140 fdo-mime_update_desktop_db
141 }