/[gentoo-x86]/app-mobilephone/gnokii/gnokii-0.6.29.ebuild
Gentoo

Contents of /app-mobilephone/gnokii/gnokii-0.6.29.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Dec 28 14:51:05 2014 UTC (4 years, 3 months ago) by titanofold
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -2 lines
Rename virtual/postgresql to dev-db/postgresql

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/gnokii-0.6.29.ebuild,v 1.10 2014/11/03 11:12:33 titanofold Exp $
4
5 EAPI=2
6
7 inherit eutils linux-info autotools
8
9 DESCRIPTION="user space driver and tools for use with mobile phones"
10 HOMEPAGE="http://www.gnokii.org/"
11 if [ "$PV" != "9999" ]; then
12 SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2"
13 KEYWORDS="amd64 hppa ppc ppc64 sparc x86"
14 else
15 SRC_URI=""
16 KEYWORDS=""
17 EGIT_REPO_URI="git://git.savannah.nongnu.org/gnokii.git"
18 inherit git
19 fi
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 IUSE="nls bluetooth ical irda sms postgres mysql usb X debug"
24
25 RDEPEND="!app-mobilephone/smstools
26 sys-apps/pcsc-lite
27 X? ( x11-libs/gtk+:2 )
28 bluetooth? ( net-wireless/bluez )
29 sms? (
30 !app-mobilephone/smstools
31 dev-libs/glib:2
32 postgres? ( >=dev-db/postgresql-8.0 )
33 mysql? ( >=virtual/mysql-4.1 )
34 )
35 ical? ( dev-libs/libical )
36 usb? ( =virtual/libusb-0* )"
37 DEPEND="${RDEPEND}
38 irda? ( virtual/os-headers )
39 nls? ( sys-devel/gettext )
40 dev-util/intltool"
41
42 CONFIG_CHECK="~UNIX98_PTYS"
43
44 S="${WORKDIR}/${PN}-${PV%.1}"
45
46 # Supported languages and translated documentation
47 # Be sure all languages are prefixed with a single space!
48 MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN"
49 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
50
51 src_prepare() {
52 if [ "$PV" != "9999" ]; then
53 epatch "${FILESDIR}"/${PN}-0.6.29-pcsc.patch
54 else
55 epatch "${FILESDIR}"/${P}-icon.patch
56 epatch "${FILESDIR}"/${P}-translations.patch
57 intltoolize --force --copy --automake || die "intltoolize error"
58 fi
59
60 eautoreconf
61 }
62
63 src_configure() {
64 strip-linguas ${MY_AVAILABLE_LINGUAS}
65
66 local config_xdebug="--disable-xdebug"
67 use X && use debug && config_xdebug="--enable-xdebug"
68
69 econf \
70 $(use_enable nls) \
71 $(use_enable ical libical) \
72 $(use_enable usb libusb) \
73 $(use_enable irda) \
74 $(use_enable bluetooth) \
75 $(use_with X x) \
76 $(use_enable sms smsd) \
77 $(use_enable mysql) \
78 $(use_enable postgres) \
79 $(use_enable debug fulldebug) \
80 ${config_xdebug} \
81 $(use_enable debug rlpdebug) \
82 --enable-security \
83 --disable-unix98test \
84 --enable-libpcsclite \
85 || die "configure failed"
86 }
87
88 src_install() {
89 einstall || die "make install failed"
90
91 insinto /etc
92 doins Docs/sample/gnokiirc
93 sed -i -e 's:/usr/local:/usr:' "${D}/etc/gnokiirc"
94
95 # only one file needs suid root to make a pseudo device
96 fperms 4755 /usr/sbin/mgnokiidev
97
98 if use X; then
99 newicon Docs/sample/logo/gnokii.xpm xgnokii.xpm
100 fi
101
102 if use sms; then
103 pushd "${S}/smsd"
104 insinto /usr/share/doc/${PN}/smsd
105 use mysql && doins sms.tables.mysql.sql README.MySQL
106 use postgres && doins sms.tables.pq.sql
107 doins README ChangeLog README.Tru64 action
108 popd
109 fi
110 }
111
112 src_test() {
113 echo common/phones/fake.c >> "${S}"/po/POTFILES.in
114 default
115 }
116
117 pkg_postinst() {
118 elog "Make sure the user that runs gnokii has read/write access to the device"
119 elog "which your phone is connected to."
120 elog "The simple way of doing that is to add your user to the uucp group."
121 if [ "$PV" == "9999" ]; then
122 elog "This is the GIT version of ${PN}. It is experimental but may have important bug fixes."
123 elog "You can keep track of the most recent commits at:"
124 elog " http://git.savannah.gnu.org/cgit/gnokii.git/"
125 elog "Whenever there is a change you are interested in, you can re-emerge ${P}."
126 fi
127 }

  ViewVC Help
Powered by ViewVC 1.1.20