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