From 8f357b3af0b1b9ea729ba89565d46c19d41df4d0 Mon Sep 17 00:00:00 2001 From: Alin Năstac Date: Wed, 18 Feb 2009 19:55:46 +0000 Subject: Build and install libGammu.so (#255303). (Portage version: 2.1.6.4/cvs/Linux 2.6.25-gentoo-r6 x86_64) --- app-mobilephone/gammu/ChangeLog | 8 ++- app-mobilephone/gammu/gammu-1.22.1-r1.ebuild | 73 ---------------------------- app-mobilephone/gammu/gammu-1.22.1-r2.ebuild | 73 ++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 74 deletions(-) delete mode 100644 app-mobilephone/gammu/gammu-1.22.1-r1.ebuild create mode 100644 app-mobilephone/gammu/gammu-1.22.1-r2.ebuild diff --git a/app-mobilephone/gammu/ChangeLog b/app-mobilephone/gammu/ChangeLog index 8de89f1f5837..977c84fced7e 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.63 2009/02/18 19:32:42 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gammu/ChangeLog,v 1.64 2009/02/18 19:55:46 mrness Exp $ + +*gammu-1.22.1-r2 (18 Feb 2009) + + 18 Feb 2009; Alin Năstac -gammu-1.22.1-r1.ebuild, + +gammu-1.22.1-r2.ebuild: + Build and install libGammu.so (#255303). 18 Feb 2009; Alin Năstac gammu-1.22.1-r1.ebuild: Update bluetooth dependency atom (#255424). diff --git a/app-mobilephone/gammu/gammu-1.22.1-r1.ebuild b/app-mobilephone/gammu/gammu-1.22.1-r1.ebuild deleted file mode 100644 index 444de9416697..000000000000 --- a/app-mobilephone/gammu/gammu-1.22.1-r1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# 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.22.1-r1.ebuild,v 1.2 2009/02/18 19:32:42 mrness Exp $ - -inherit cmake-utils - -DESCRIPTION="a fork of the gnokii project, a tool to handle your cellular phone" -HOMEPAGE="http://www.gammu.org" -SRC_URI="ftp://dl.cihar.com/gammu/releases/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" -IUSE="debug bluetooth irda mysql postgres nls" - -RDEPEND="bluetooth? ( || ( net-wireless/bluez net-wireless/bluez-libs ) ) - mysql? ( virtual/mysql ) - postgres? ( virtual/postgresql-server ) - dev-util/dialog" -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=" cs de es id it pl ru" -IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" - -src_unpack() { - unpack ${A} - - epatch "${FILESDIR}"/${P}-assert.patch - epatch "${FILESDIR}"/${P}-skip-locktest.patch - - pushd "${S}"/locale || die "locale directory not found" - 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 - sed -i -e "/^[[:space:]]*${lang}[[:space:]]*$/d" CMakeLists.txt - fi - done - fi - popd -} - -src_compile() { - # 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 mysql MySQL) \ - $(cmake-utils_use_with postgres Postgres) \ - -DENABLE_SHARED=ON" - cmake-utils_src_compile -} - -src_test() { - LD_LIBRARY_PATH="${WORKDIR}"/${PN}_build/common cmake-utils_src_test -} - -pkg_preinst() { - # use standard -l options - sed -i -e 's:-l[a-z0-9A-Z_/-]*/lib\([a-z]*\)\.so:-l\1:g' "${D}"/usr/*/pkgconfig/gammu.pc || die "sed failed" -} diff --git a/app-mobilephone/gammu/gammu-1.22.1-r2.ebuild b/app-mobilephone/gammu/gammu-1.22.1-r2.ebuild new file mode 100644 index 000000000000..5fe49adc89fe --- /dev/null +++ b/app-mobilephone/gammu/gammu-1.22.1-r2.ebuild @@ -0,0 +1,73 @@ +# 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.22.1-r2.ebuild,v 1.1 2009/02/18 19:55:46 mrness Exp $ + +inherit cmake-utils + +DESCRIPTION="a fork of the gnokii project, a tool to handle your cellular phone" +HOMEPAGE="http://www.gammu.org" +SRC_URI="ftp://dl.cihar.com/gammu/releases/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug bluetooth irda mysql postgres nls" + +RDEPEND="bluetooth? ( || ( net-wireless/bluez net-wireless/bluez-libs ) ) + mysql? ( virtual/mysql ) + postgres? ( virtual/postgresql-server ) + dev-util/dialog" +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=" cs de es id it pl ru" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}"/${P}-assert.patch + epatch "${FILESDIR}"/${P}-skip-locktest.patch + + pushd "${S}"/locale || die "locale directory not found" + 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 + sed -i -e "/^[[:space:]]*${lang}[[:space:]]*$/d" CMakeLists.txt + fi + done + fi + popd +} + +src_compile() { + # 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 mysql MySQL) \ + $(cmake-utils_use_with postgres Postgres) \ + -DBUILD_SHARED_LIBS=ON" + cmake-utils_src_compile +} + +src_test() { + LD_LIBRARY_PATH="${WORKDIR}"/${PN}_build/common cmake-utils_src_test +} + +pkg_preinst() { + # use standard -l options + sed -i -e 's:-l[a-z0-9A-Z_/-]*/lib\([a-z]*\)\.so:-l\1:g' "${D}"/usr/*/pkgconfig/gammu.pc || die "sed failed" +} -- cgit v1.2.3-65-gdbad