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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Dec 28 14:51:05 2014 UTC (5 years, 1 month ago) by titanofold
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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.31.ebuild,v 1.2 2014/11/03 11:12:33 titanofold Exp $
4
5 EAPI=4
6
7 inherit eutils linux-info autotools
8
9 HOMEPAGE="http://www.gnokii.org/"
10 if [ "$PV" != "9999" ]; then
11 SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2"
12 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
13 else
14 SRC_URI=""
15 KEYWORDS=""
16 EGIT_REPO_URI="git://git.savannah.nongnu.org/${PN}.git
17 http://git.savannah.gnu.org/r/${PN}.git"
18 inherit git-2
19 fi
20 DESCRIPTION="user space driver and tools for use with mobile phones"
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 IUSE="nls bluetooth ical irda sms postgres mysql usb X debug +pcsc-lite"
25
26 RDEPEND="!app-mobilephone/smstools
27 pcsc-lite? ( sys-apps/pcsc-lite )
28 X? ( x11-libs/gtk+:2 )
29 bluetooth? ( kernel_linux? ( net-wireless/bluez ) )
30 sms? (
31 !app-mobilephone/smstools
32 dev-libs/glib:2
33 postgres? ( >=dev-db/postgresql-8.0 )
34 mysql? ( >=virtual/mysql-4.1 )
35 )
36 ical? ( dev-libs/libical )
37 usb? ( =virtual/libusb-0* )"
38 DEPEND="${RDEPEND}
39 irda? ( virtual/os-headers )
40 nls? ( sys-devel/gettext )
41 dev-util/intltool"
42
43 CONFIG_CHECK="~UNIX98_PTYS"
44
45 S="${WORKDIR}/${PN}-${PV%.1}"
46
47 # Supported languages and translated documentation
48 # Be sure all languages are prefixed with a single space!
49 MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN"
50 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
51
52 src_prepare() {
53 if [ "$PV" != "9999" ]; then
54 epatch "${FILESDIR}"/${P}-fix_xgnokii_inclusion.patch
55 else
56 epatch "${FILESDIR}"/${P}-icon.patch
57 epatch "${FILESDIR}"/${P}-translations.patch
58 intltoolize --force --copy --automake || die "intltoolize error"
59 fi
60
61 eautoreconf
62 }
63
64 src_configure() {
65 strip-linguas ${MY_AVAILABLE_LINGUAS}
66
67 local config_xdebug="--disable-xdebug"
68 use X && use debug && config_xdebug="--enable-xdebug"
69
70 econf \
71 $(use_enable nls) \
72 $(use_enable ical libical) \
73 $(use_enable usb libusb) \
74 $(use_enable irda) \
75 $(use_enable bluetooth) \
76 $(use_with X x) \
77 $(use_enable sms smsd) \
78 $(use_enable mysql) \
79 $(use_enable postgres) \
80 $(use_enable debug fulldebug) \
81 ${config_xdebug} \
82 $(use_enable debug rlpdebug) \
83 --enable-security \
84 --disable-unix98test \
85 $(use_enable pcsc-lite libpcsclite)
86 }
87
88 src_install() {
89 default
90
91 insinto /etc
92 doins Docs/sample/gnokiirc
93 sed -i -e 's:/usr/local:'"${EPREFIX}"'/usr:' "${ED}/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