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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (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.12: +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-9999.ebuild,v 1.12 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 # Supported languages and translated documentation
46 # Be sure all languages are prefixed with a single space!
47 MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN"
48 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
49
50 src_prepare() {
51 if [ "$PV" = "9999" ]; then
52 epatch "${FILESDIR}"/${P}-icon.patch
53 epatch "${FILESDIR}"/${P}-translations.patch
54 intltoolize --force --copy --automake || die "intltoolize error"
55 fi
56
57 eautoreconf
58 }
59
60 src_configure() {
61 strip-linguas ${MY_AVAILABLE_LINGUAS}
62
63 local config_xdebug="--disable-xdebug"
64 use X && use debug && config_xdebug="--enable-xdebug"
65
66 econf \
67 $(use_enable nls) \
68 $(use_enable ical libical) \
69 $(use_enable usb libusb) \
70 $(use_enable irda) \
71 $(use_enable bluetooth) \
72 $(use_with X x) \
73 $(use_enable sms smsd) \
74 $(use_enable mysql) \
75 $(use_enable postgres) \
76 $(use_enable debug fulldebug) \
77 ${config_xdebug} \
78 $(use_enable debug rlpdebug) \
79 --enable-security \
80 --disable-unix98test \
81 $(use_enable pcsc-lite libpcsclite)
82 }
83
84 src_install() {
85 default
86
87 insinto /etc
88 doins Docs/sample/gnokiirc
89 sed -i -e 's:/usr/local:'"${EPREFIX}"'/usr:' "${ED}/etc/gnokiirc"
90
91 # only one file needs suid root to make a pseudo device
92 fperms 4755 /usr/sbin/mgnokiidev
93
94 if use X; then
95 newicon Docs/sample/logo/gnokii.xpm xgnokii.xpm
96 fi
97
98 if use sms; then
99 pushd "${S}/smsd"
100 insinto /usr/share/doc/${PN}/smsd
101 use mysql && doins sms.tables.mysql.sql README.MySQL
102 use postgres && doins sms.tables.pq.sql
103 doins README ChangeLog README.Tru64 action
104 popd
105 fi
106 }
107
108 pkg_postinst() {
109 elog "Make sure the user that runs gnokii has read/write access to the device"
110 elog "which your phone is connected to."
111 elog "The simple way of doing that is to add your user to the uucp group."
112 if [ "$PV" == "9999" ]; then
113 elog "This is the GIT version of ${PN}. It is experimental but may have important bug fixes."
114 elog "You can keep track of the most recent commits at:"
115 elog " http://git.savannah.gnu.org/cgit/gnokii.git/"
116 elog "Whenever there is a change you are interested in, you can re-emerge ${P}."
117 fi
118 }

  ViewVC Help
Powered by ViewVC 1.1.20