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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Nov 8 09:38:52 2012 UTC (20 months, 2 weeks ago) by pinkbyte
Branch: MAIN
Version bump wrt bug #395919

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="4"
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/${PN}/releases/${P}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="bash-completion bluetooth curl dbi debug irda mysql nls postgres 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 DEPEND="${RDEPEND}
28 irda? ( virtual/os-headers )
29 nls? ( sys-devel/gettext )"
30
31 # sys-devel/gettext is needed for creating .mo files
32 # Supported languages and translated documentation
33 # Be sure all languages are prefixed with a single space!
34 MY_AVAILABLE_LINGUAS=" af ar bg ca cs da de el en_GB es et fi fr gl he hu id it ko nl pl pt_BR ru sk sv sw tr zh_CN zh_TW"
35 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
36
37 pkg_setup() {
38 if use python; then
39 python_set_active_version 2
40 python_pkg_setup
41 fi
42 }
43
44 src_prepare() {
45 epatch "${FILESDIR}"/${PN}-skip-locktest.patch
46
47 local lang support_linguas=no
48 for lang in ${MY_AVAILABLE_LINGUAS} ; do
49 if use linguas_${lang} ; then
50 support_linguas=yes
51 break
52 fi
53 done
54 # install all languages when all selected LINGUAS aren't supported
55 if [ "${support_linguas}" = "yes" ]; then
56 for lang in ${MY_AVAILABLE_LINGUAS} ; do
57 if ! use linguas_${lang} ; then
58 rm -rf locale/${lang} || die
59 fi
60 done
61 fi
62 }
63
64 src_configure() {
65 # debug flag is used inside cmake-utils.eclass
66 local mycmakeargs=(
67 $(cmake-utils_use_with bluetooth Bluez) \
68 $(cmake-utils_use_with irda IRDA) \
69 $(cmake-utils_use_with curl CURL) \
70 $(cmake-utils_use_with usb USB) \
71 $(cmake-utils_use_with python PYTHON) \
72 $(cmake-utils_use_with mysql MySQL) \
73 $(cmake-utils_use_with postgres Postgres) \
74 $(cmake-utils_use_with dbi LibDBI) \
75 $(cmake-utils_use_with nls GettextLibs) \
76 $(cmake-utils_use_with nls Iconv) \
77 -DBUILD_SHARED_LIBS=ON \
78 -DINSTALL_DOC_DIR="share/doc/${PF}"
79 )
80 if ! use bash-completion; then
81 mycmakeargs+=( -DINSTALL_BASH_COMPLETION=OFF )
82 fi
83 if use python; then
84 mycmakeargs+=( -DBUILD_PYTHON="$(PYTHON -a)" )
85 fi
86 cmake-utils_src_configure
87 }
88
89 src_compile() {
90 cmake-utils_src_compile
91 }
92
93 src_test() {
94 LD_LIBRARY_PATH="${WORKDIR}/${PN}_build/common" cmake-utils_src_test
95 }
96
97 src_install() {
98 cmake-utils_src_install
99 }
100
101 pkg_postinst() {
102 use python && python_mod_optimize gammu
103 }
104
105 pkg_postrm() {
106 use python && python_mod_cleanup gammu
107 }

  ViewVC Help
Powered by ViewVC 1.1.20