diff options
author | Alin Năstac <mrness@gentoo.org> | 2009-08-16 08:05:49 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2009-08-16 08:05:49 +0000 |
commit | 71fdc674bfabdbc63e6b45ace65ca9a4659d77f4 (patch) | |
tree | fb866228c21a9fbc57b32441b71ac578bf25e81c /app-mobilephone/gammu | |
parent | Remove old patch (diff) | |
download | gentoo-2-71fdc674bfabdbc63e6b45ace65ca9a4659d77f4.tar.gz gentoo-2-71fdc674bfabdbc63e6b45ace65ca9a4659d77f4.tar.bz2 gentoo-2-71fdc674bfabdbc63e6b45ace65ca9a4659d77f4.zip |
Version bump. Skip locking test (#279960).
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'app-mobilephone/gammu')
-rw-r--r-- | app-mobilephone/gammu/ChangeLog | 8 | ||||
-rw-r--r-- | app-mobilephone/gammu/files/gammu-1.25.0-skip-locktest.patch | 12 | ||||
-rw-r--r-- | app-mobilephone/gammu/gammu-1.25.0.ebuild | 84 |
3 files changed, 103 insertions, 1 deletions
diff --git a/app-mobilephone/gammu/ChangeLog b/app-mobilephone/gammu/ChangeLog index 7e0f86707dd9..4f7d1500259a 100644 --- a/app-mobilephone/gammu/ChangeLog +++ b/app-mobilephone/gammu/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-mobilephone/gammu # Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/ChangeLog,v 1.70 2009/06/15 21:24:16 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/ChangeLog,v 1.71 2009/08/16 08:05:49 mrness Exp $ + +*gammu-1.25.0 (16 Aug 2009) + + 16 Aug 2009; Alin Năstac <mrness@gentoo.org> + +files/gammu-1.25.0-skip-locktest.patch, +gammu-1.25.0.ebuild: + Version bump. Skip locking test (#279960). 15 Jun 2009; Alin Năstac <mrness@gentoo.org> gammu-1.24.0-r1.ebuild: Add USB support (#270039). diff --git a/app-mobilephone/gammu/files/gammu-1.25.0-skip-locktest.patch b/app-mobilephone/gammu/files/gammu-1.25.0-skip-locktest.patch new file mode 100644 index 000000000000..65a7be0f743c --- /dev/null +++ b/app-mobilephone/gammu/files/gammu-1.25.0-skip-locktest.patch @@ -0,0 +1,12 @@ +diff -Nru gammu-1.25.0.orig/tests/CMakeLists.txt gammu-1.25.0/tests/CMakeLists.txt +--- gammu-1.25.0.orig/tests/CMakeLists.txt 2009-08-16 01:08:09.000000000 +0200 ++++ gammu-1.25.0/tests/CMakeLists.txt 2009-08-16 01:40:36.000000000 +0200 +@@ -645,7 +645,7 @@ + + # Test for locking, only on !WIN32 and if we can write to lock dir + if (NOT WIN32) +- execute_process(COMMAND test -w /var/lock/ RESULT_VARIABLE VAR_LOCK_WRITABLE) ++ set (VAR_LOCK_WRITABLE 1) + if (VAR_LOCK_WRITABLE EQUAL 0) + add_executable(locking locking.c) + target_link_libraries(locking libGammu) diff --git a/app-mobilephone/gammu/gammu-1.25.0.ebuild b/app-mobilephone/gammu/gammu-1.25.0.ebuild new file mode 100644 index 000000000000..3eaf32452c11 --- /dev/null +++ b/app-mobilephone/gammu/gammu-1.25.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/gammu-1.25.0.ebuild,v 1.1 2009/08/16 08:05:49 mrness Exp $ + +EAPI="2" + +inherit cmake-utils distutils + +DESCRIPTION="a fork of the gnokii project, a tool to handle your cellular phone" +HOMEPAGE="http://www.gammu.org" +SRC_URI="http://dl.cihar.com/gammu/releases/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="curl debug bluetooth irda mysql postgres dbi nls usb" + +RDEPEND="bluetooth? ( || ( net-wireless/bluez net-wireless/bluez-libs ) ) + curl? ( net-misc/curl ) + usb? ( dev-libs/libusb:1 ) + mysql? ( virtual/mysql ) + postgres? ( virtual/postgresql-server ) + dbi? ( >=dev-db/libdbi-0.8.3 ) + dev-util/dialog + dev-lang/python + !dev-python/python-gammu" # needs to be removed from the tree +DEPEND="${RDEPEND} + irda? ( virtual/os-headers ) + nls? ( sys-devel/gettext ) + dev-util/cmake" + +# sys-devel/gettext is needed for creating .mo files +# Supported languages and translated documentation +# Be sure all languages are prefixed with a single space! +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 zh_CN zh_TW" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-skip-locktest.patch + + local lang support_linguas=no + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if use linguas_${lang} ; then + support_linguas=yes + break + fi + done + # install all languages when all selected LINGUAS aren't supported + if [ "${support_linguas}" = "yes" ]; then + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if ! use linguas_${lang} ; then + rm -rf locale/${lang} || die + fi + done + fi +} + +src_configure() { + # debug flag is used inside cmake-utils.eclass + local mycmakeargs="$(cmake-utils_use_with bluetooth Bluez) \ + $(cmake-utils_use_with irda IRDA) \ + $(cmake-utils_use_with curl CURL) \ + $(cmake-utils_use_with usb USB) \ + $(cmake-utils_use_with mysql MySQL) \ + $(cmake-utils_use_with postgres Postgres) \ + $(cmake-utils_use_with dbi LibDBI) \ + $(cmake-utils_use_with nls GettextLibs) \ + $(cmake-utils_use_with nls Iconv) \ + -DBUILD_SHARED_LIBS=ON -DINSTALL_DOC_DIR=share/doc/${PF} \ + -DBUILD_PYTHON=/usr/bin/python" + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_test() { + LD_LIBRARY_PATH="${WORKDIR}"/${PN}_build/common cmake-utils_src_test +} + +src_install() { + cmake-utils_src_install +} |