/[gentoo-x86]/app-mobilephone/gammu/gammu-1.29.0.ebuild
Gentoo

Contents of /app-mobilephone/gammu/gammu-1.29.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue May 22 16:06:13 2012 UTC (2 years, 2 months ago) by ssuominen
Branch: MAIN
Changes since 1.2: +3 -3 lines
Use virtual/libusb instead of dev-libs/libusb.

(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/gammu-1.29.0.ebuild,v 1.2 2011/08/13 07:15:53 xarthisius Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="python? 2"
8
9 inherit eutils cmake-utils python
10
11 DESCRIPTION="A tool to handle your cellular phone"
12 HOMEPAGE="http://www.wammu.eu/"
13 SRC_URI="http://dl.cihar.com/gammu/releases/${P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="curl debug bluetooth irda mysql postgres dbi nls python usb"
19
20 RDEPEND="bluetooth? ( net-wireless/bluez )
21 curl? ( net-misc/curl )
22 usb? ( virtual/libusb:1 )
23 mysql? ( virtual/mysql )
24 postgres? ( dev-db/postgresql-server )
25 dbi? ( >=dev-db/libdbi-0.8.3 )
26 dev-util/dialog
27 !dev-python/python-gammu" # needs to be removed from the tree
28 DEPEND="${RDEPEND}
29 irda? ( virtual/os-headers )
30 nls? ( sys-devel/gettext )
31 dev-util/cmake"
32
33 # sys-devel/gettext is needed for creating .mo files
34 # Supported languages and translated documentation
35 # Be sure all languages are prefixed with a single space!
36 MY_AVAILABLE_LINGUAS=" af bg ca cs da de el es et fi fr gl he hu id it ko nl pl pt_BR ru sk sv sw zh_CN zh_TW"
37 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
38
39 pkg_setup() {
40 if use python; then
41 python_set_active_version 2
42 python_pkg_setup
43 fi
44 }
45
46 src_prepare() {
47 epatch "${FILESDIR}"/${PN}-skip-locktest.patch
48
49 local lang support_linguas=no
50 for lang in ${MY_AVAILABLE_LINGUAS} ; do
51 if use linguas_${lang} ; then
52 support_linguas=yes
53 break
54 fi
55 done
56 # install all languages when all selected LINGUAS aren't supported
57 if [ "${support_linguas}" = "yes" ]; then
58 for lang in ${MY_AVAILABLE_LINGUAS} ; do
59 if ! use linguas_${lang} ; then
60 rm -rf locale/${lang} || die
61 fi
62 done
63 fi
64 }
65
66 src_configure() {
67 # debug flag is used inside cmake-utils.eclass
68 local mycmakeargs="$(cmake-utils_use_with bluetooth Bluez) \
69 $(cmake-utils_use_with irda IRDA) \
70 $(cmake-utils_use_with curl CURL) \
71 $(cmake-utils_use_with usb USB) \
72 $(cmake-utils_use_with python PYTHON) \
73 $(cmake-utils_use_with mysql MySQL) \
74 $(cmake-utils_use_with postgres Postgres) \
75 $(cmake-utils_use_with dbi LibDBI) \
76 $(cmake-utils_use_with nls GettextLibs) \
77 $(cmake-utils_use_with nls Iconv) \
78 -DBUILD_SHARED_LIBS=ON -DINSTALL_DOC_DIR=share/doc/${PF}"
79 if use python; then
80 mycmakeargs="${mycmakeargs} -DBUILD_PYTHON=$(PYTHON -a)"
81 fi
82 cmake-utils_src_configure
83 }
84
85 src_compile() {
86 cmake-utils_src_compile
87 }
88
89 src_test() {
90 LD_LIBRARY_PATH="${WORKDIR}"/${PN}_build/common cmake-utils_src_test
91 }
92
93 src_install() {
94 cmake-utils_src_install
95 }
96
97 pkg_postinst() {
98 use python && python_mod_optimize gammu
99 }
100
101 pkg_postrm() {
102 use python && python_mod_cleanup gammu
103 }

  ViewVC Help
Powered by ViewVC 1.1.20