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

Contents of /app-mobilephone/gammu/gammu-1.33.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 12 19:02:47 2015 UTC (3 years, 3 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
python-single-r1 to the rescue. Add slot operators and missing implicit deps.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)

1 # Copyright 1999-2015 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.33.0.ebuild,v 1.5 2015/04/19 09:47:53 ago Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 )
8
9 inherit eutils cmake-utils python-single-r1
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="bluetooth curl dbi debug irda mysql nls postgres python usb"
19
20 # TODO: figure out a way to disable gudev
21 RDEPEND="dev-libs/glib:2=
22 virtual/libgudev:=
23 bluetooth? ( net-wireless/bluez:= )
24 curl? ( net-misc/curl:= )
25 dbi? ( >=dev-db/libdbi-0.8.3:= )
26 mysql? ( virtual/mysql:= )
27 postgres? ( dev-db/postgresql:=[server] )
28 python? ( ${PYTHON_DEPS} )
29 usb? ( virtual/libusb:1= )
30 dev-util/dialog"
31 DEPEND="${RDEPEND}
32 irda? ( virtual/os-headers )
33 nls? ( sys-devel/gettext )"
34 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
35
36 # sys-devel/gettext is needed for creating .mo files
37 # Supported languages and translated documentation
38 # Be sure all languages are prefixed with a single space!
39 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"
40 IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
41
42 pkg_setup() {
43 use python && python-single-r1_pkg_setup
44 }
45
46 src_prepare() {
47 epatch "${FILESDIR}/${PN}-skip-locktest.patch"
48 epatch "${FILESDIR}/${PN}-1.32.0-bashcompdir.patch"
49
50 local lang support_linguas=no
51 for lang in ${MY_AVAILABLE_LINGUAS} ; do
52 if use linguas_${lang} ; then
53 support_linguas=yes
54 break
55 fi
56 done
57 # install all languages when all selected LINGUAS aren't supported
58 if [ "${support_linguas}" = "yes" ]; then
59 for lang in ${MY_AVAILABLE_LINGUAS} ; do
60 if ! use linguas_${lang} ; then
61 rm -rf locale/${lang} || die
62 fi
63 done
64 fi
65 }
66
67 src_configure() {
68 # debug flag is used inside cmake-utils.eclass
69 local mycmakeargs=(
70 $(cmake-utils_use_with bluetooth Bluez)
71 $(cmake-utils_use_with irda IRDA)
72 $(cmake-utils_use_with curl CURL)
73 $(cmake-utils_use_with usb USB)
74 $(cmake-utils_use_with python PYTHON)
75 $(cmake-utils_use_with mysql MySQL)
76 $(cmake-utils_use_with postgres Postgres)
77 $(cmake-utils_use_with dbi LibDBI)
78 $(cmake-utils_use_with nls GettextLibs)
79 $(cmake-utils_use_with nls Iconv)
80 -DBUILD_SHARED_LIBS=ON
81 -DINSTALL_DOC_DIR="share/doc/${PF}"
82 )
83 if use python; then
84 mycmakeargs+=( -DBUILD_PYTHON="${PYTHON}" )
85 fi
86 cmake-utils_src_configure
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 use python && python_optimize
96 }

  ViewVC Help
Powered by ViewVC 1.1.20