Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-mobilephone/gnokii: ChangeLog gnokii-0.6.22.ebuild
Date: Sat, 01 Dec 2007 10:42:14
Message-Id: E1IyPnV-000229-Dj@stork.gentoo.org
1 mrness 07/12/01 10:42:09
2
3 Modified: ChangeLog
4 Added: gnokii-0.6.22.ebuild
5 Log:
6 Version bump (#200879); add linguas flags.
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.64 app-mobilephone/gnokii/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/gnokii/ChangeLog?rev=1.64&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/gnokii/ChangeLog?rev=1.64&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/gnokii/ChangeLog?r1=1.63&r2=1.64
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/ChangeLog,v
19 retrieving revision 1.63
20 retrieving revision 1.64
21 diff -u -r1.63 -r1.64
22 --- ChangeLog 25 Oct 2007 20:43:18 -0000 1.63
23 +++ ChangeLog 1 Dec 2007 10:42:08 -0000 1.64
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-mobilephone/gnokii
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/ChangeLog,v 1.63 2007/10/25 20:43:18 mrness Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/ChangeLog,v 1.64 2007/12/01 10:42:08 mrness Exp $
29 +
30 +*gnokii-0.6.22 (01 Dec 2007)
31 +
32 + 01 Dec 2007; Alin Năstac <mrness@g.o> +gnokii-0.6.22.ebuild:
33 + Version bump (#200879); add linguas flags.
34
35 *gnokii-0.6.19 (25 Oct 2007)
36
37
38
39
40 1.1 app-mobilephone/gnokii/gnokii-0.6.22.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/gnokii/gnokii-0.6.22.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-mobilephone/gnokii/gnokii-0.6.22.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gnokii-0.6.22.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/gnokii-0.6.22.ebuild,v 1.1 2007/12/01 10:42:08 mrness Exp $
50
51 WANT_AUTOMAKE="none"
52
53 inherit eutils linux-info autotools
54
55 DESCRIPTION="user space driver and tools for use with mobile phones"
56 HOMEPAGE="http://www.gnokii.org/"
57 SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
62 IUSE="nls bluetooth ical irda sms postgres mysql usb X debug"
63
64 RESTRICT="test" #test fails; maybe it will work in the future, but till then...
65
66 RDEPEND="X? ( >=x11-libs/gtk+-2.8.19 )
67 bluetooth? ( >=net-wireless/bluez-libs-2.25 )
68 sms? ( >=dev-libs/glib-2.10.3
69 postgres? ( >=dev-db/postgresql-8.0.8 )
70 mysql? ( >=virtual/mysql-4.1 )
71 )
72 ical? ( >=dev-libs/libical-0.26.6 )
73 usb? ( >=dev-libs/libusb-0.1.11 )"
74 DEPEND="${RDEPEND}
75 irda? ( virtual/os-headers )
76 nls? ( >=sys-devel/gettext-0.14.5 )"
77
78 CONFIG_CHECK="UNIX98_PTYS"
79
80 # Supported languages and translated documentation
81 # Be sure all languages are prefixed with a single space!
82 MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN"
83 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88
89 if use sms ; then
90 local MY_SMSD_DB_OBJS="file.lo"
91 local MY_SMSD_DB_LIBS="libfile.la"
92 if use postgres; then
93 MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} pq.lo"
94 MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libpq.la"
95 fi
96 if use mysql; then
97 MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} mysql.lo"
98 MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libmysql.la"
99 fi
100
101 sed -i \
102 -e "s/^\(DB_OBJS[\t ]*=\).*$/\1 ${MY_SMSD_DB_OBJS}/" \
103 -e "s/^\(DB_LIBS[\t ]*=\).*$/\1 ${MY_SMSD_DB_LIBS}/" \
104 -e 's/\(^.*LIBTOOL.*--mode=finish.*$\)/#\1/' \
105 smsd/Makefile
106
107 #Change default database module
108 local MY_DEFAULT_DB_MODULE="file"
109 if use postgres ; then
110 MY_DEFAULT_DB_MODULE="pq"
111 elif use mysql ; then
112 MY_DEFAULT_DB_MODULE="mysql"
113 fi
114 sed -i -e "s/\(smsdConfig[.]dbMod[\t ]*=.*\"\).*\(\"\)/\1${MY_DEFAULT_DB_MODULE}\2/" smsd/smsd.c
115 fi
116
117 # sys-devel/gettext is needed for creating .mo files
118 local lang MY_LANGUAGES=""
119 for lang in ${MY_AVAILABLE_LINGUAS} ; do
120 if use linguas_${lang} ; then
121 MY_LANGUAGES="${MY_LANGUAGES} ${lang}"
122 fi
123 done
124 sed -i -e "s:^ALL_LINGUAS=.*$:ALL_LINGUAS=\"${MY_LANGUAGES}\":" configure.in
125 eautoconf
126 }
127
128 src_compile() {
129 config_xdebug="--disable-xdebug"
130 use X && use debug && config_xdebug="--enable-xdebug"
131
132 econf \
133 $(use_enable nls) \
134 $(use_enable ical libical) \
135 $(use_enable usb libusb) \
136 $(use_enable irda) \
137 $(use_enable bluetooth) \
138 $(use_with X x) \
139 $(use_enable debug) \
140 ${config_xdebug} \
141 $(use_enable debug rlpdebug) \
142 --enable-security \
143 --disable-unix98test \
144 || die "configure failed"
145
146 emake -j1 || die "make failed"
147
148 if use sms; then
149 pushd "${S}/smsd"
150 emake || die "smsd make install failed"
151 popd
152 fi
153 }
154
155 src_install() {
156 einstall || die "make install failed"
157
158 if use X; then
159 insinto /usr/share/pixmaps
160 newins Docs/sample/logo/gnokii.xpm xgnokii.xpm
161 fi
162
163 insinto /etc
164 doins Docs/sample/gnokiirc
165 sed -i -e 's:/usr/local:/usr:' "${D}/etc/gnokiirc"
166
167 doman Docs/man/*
168
169 dodir "/usr/share/doc/${PF}"
170 cp -r Docs/sample "${D}/usr/share/doc/${PF}/sample"
171 cp -r Docs/protocol "${D}/usr/share/doc/${PF}/protocol"
172 rm -rf Docs/man Docs/sample Docs/protocol
173 dodoc Docs/* ChangeLog TODO MAINTAINERS
174
175 # only one file needs suid root to make a pseudo device
176 fperms 4755 /usr/sbin/mgnokiidev
177
178 if use sms; then
179 pushd "${S}/smsd"
180 einstall || die "smsd make install failed"
181 insinto /usr/share/doc/${PF}/smsd
182 use mysql && doins sms.tables.mysql.sql README.MySQL
183 use postgres && doins sms.tables.pq.sql
184 doins README ChangeLog README.Tru64 action
185 popd
186 fi
187 }
188
189 pkg_postinst() {
190 elog "Make sure the user that runs gnokii has read/write access to the device"
191 elog "which your phone is connected to."
192 elog "The simple way of doing that is to add your user to the uucp group."
193 }
194
195
196
197 --
198 gentoo-commits@g.o mailing list