diff options
author | Alin Năstac <mrness@gentoo.org> | 2008-06-14 12:10:33 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2008-06-14 12:10:33 +0000 |
commit | b2aae24d696f3a2b8b5fecb3d4bbe8d31ce51d48 (patch) | |
tree | 048c7b51e04e455a8b19f7382118d11d29cdec6a /app-mobilephone/gnokii | |
parent | amd64/arm stable wrt #223513, comment #3. (diff) | |
download | gentoo-2-b2aae24d696f3a2b8b5fecb3d4bbe8d31ce51d48.tar.gz gentoo-2-b2aae24d696f3a2b8b5fecb3d4bbe8d31ce51d48.tar.bz2 gentoo-2-b2aae24d696f3a2b8b5fecb3d4bbe8d31ce51d48.zip |
Remove obsolete versions.
(Portage version: 2.1.4.4)
Diffstat (limited to 'app-mobilephone/gnokii')
-rw-r--r-- | app-mobilephone/gnokii/ChangeLog | 8 | ||||
-rw-r--r-- | app-mobilephone/gnokii/files/gnokii-0.6.14-configure.in.patch | 159 | ||||
-rw-r--r-- | app-mobilephone/gnokii/files/gnokii-0.6.18-xlibpath.patch | 23 | ||||
-rw-r--r-- | app-mobilephone/gnokii/gnokii-0.6.14-r2.ebuild | 137 | ||||
-rw-r--r-- | app-mobilephone/gnokii/gnokii-0.6.18-r1.ebuild | 141 | ||||
-rw-r--r-- | app-mobilephone/gnokii/gnokii-0.6.19.ebuild | 130 |
6 files changed, 7 insertions, 591 deletions
diff --git a/app-mobilephone/gnokii/ChangeLog b/app-mobilephone/gnokii/ChangeLog index f0dc91129f4e..1a2a2db04457 100644 --- a/app-mobilephone/gnokii/ChangeLog +++ b/app-mobilephone/gnokii/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-mobilephone/gnokii # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/ChangeLog,v 1.76 2008/06/04 18:34:10 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/ChangeLog,v 1.77 2008/06/14 12:10:32 mrness Exp $ + + 14 Jun 2008; Alin Năstac <mrness@gentoo.org> + -files/gnokii-0.6.14-configure.in.patch, + -files/gnokii-0.6.18-xlibpath.patch, -gnokii-0.6.14-r2.ebuild, + -gnokii-0.6.18-r1.ebuild, -gnokii-0.6.19.ebuild: + Remove obsolete versions. 04 Jun 2008; Raúl Porcel <armin76@gentoo.org> gnokii-0.6.22-r2.ebuild: sparc stable wrt #203745 diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.14-configure.in.patch b/app-mobilephone/gnokii/files/gnokii-0.6.14-configure.in.patch deleted file mode 100644 index 28efeb044647..000000000000 --- a/app-mobilephone/gnokii/files/gnokii-0.6.14-configure.in.patch +++ /dev/null @@ -1,159 +0,0 @@ ---- configure.in 2006-08-28 00:36:54.000000000 +0200 -+++ configure.in.new 2006-09-12 09:23:52.000000000 +0200 -@@ -27,6 +27,105 @@ - AC_PROG_LIBTOOL - AC_PROG_INSTALL - -+dnl Copyright (C) 2003 Free Software Foundation, Inc. -+dnl This file is free software, distributed under the terms of the GNU -+dnl General Public License. As a special exception to the GNU General -+dnl Public License, this file may be distributed as part of a program -+dnl that contains a configuration script generated by Autoconf, under -+dnl the same distribution terms as the rest of that program. -+ -+dnl From Bruno Haible. -+ -+dnl Support for relocateble programs. -+AC_DEFUN([AC_RELOCATABLE], -+[ -+ AC_REQUIRE([AC_PROG_INSTALL]) -+ AC_BEFORE([AC_PROG_INSTALL],[AC_RELOCATABLE]) -+ AC_REQUIRE([AC_LIB_LIBPATH]) -+ AC_REQUIRE([AC_RELOCATABLE_LIBRARY]) -+ use_elf_origin_trick=no -+ if test $RELOCATABLE = yes; then -+ # --enable-relocatable implies --disable-rpath -+ enable_rpath=no -+ AC_LIBOBJ([relocatable]) -+ AC_DEFINE([ENABLE_RELOCATABLE], 1, -+ [Define to 1 if the package shall run at any location in the filesystem.]) -+ case "$host_os" in -+ linux*) use_elf_origin_trick=yes ;; -+ esac -+ if test $use_elf_origin_trick = yes; then -+ dnl Use the dynamic linker's support for relocatable programs. -+ case "$ac_aux_dir" in -+ /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;; -+ *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;; -+ esac -+ SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"@host@\" \"\$(RELOCATABLE_LIBRARY_PATH)\"" -+ else -+ dnl Unfortunately we cannot define INSTALL_PROGRAM to a command -+ dnl consisting of more than one word - libtool doesn't support this. -+ dnl So we abuse the INSTALL_PROGRAM_ENV hook, originally meant for the -+ dnl 'install-strip' target. -+ SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\"" -+ case "$ac_aux_dir" in -+ /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;; -+ *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;; -+ esac -+ fi -+ else -+ SET_RELOCATABLE= -+ fi -+ AC_SUBST([SET_RELOCATABLE]) -+ AM_CONDITIONAL([RELOCATABLE_VIA_LD], -+ [test $use_elf_origin_trick = yes]) -+]) -+ -+dnl Support for relocatable libraries. -+AC_DEFUN([AC_RELOCATABLE_LIBRARY], -+[ -+ AC_REQUIRE([AC_RELOCATABLE_NOP]) -+ dnl Easier to put this here once, instead of into the DEFS of each Makefile. -+ if test "X$prefix" = "XNONE"; then -+ reloc_final_prefix="$ac_default_prefix" -+ else -+ reloc_final_prefix="$prefix" -+ fi -+ AC_DEFINE_UNQUOTED([INSTALLPREFIX], ["${reloc_final_prefix}"], -+ [Define to the value of ${prefix}, as a string.]) -+]) -+ -+dnl Support for relocatable packages for which it is a nop. -+AC_DEFUN([AC_RELOCATABLE_NOP], -+[ -+ AC_MSG_CHECKING([whether to activate relocatable installation]) -+ AC_ARG_ENABLE(relocatable, -+ [ --enable-relocatable install a package that can be moved in the filesystem], -+ [if test "$enableval" != no; then -+ RELOCATABLE=yes -+ else -+ RELOCATABLE=no -+ fi -+ ], RELOCATABLE=no) -+ AC_SUBST(RELOCATABLE) -+ AC_MSG_RESULT([$RELOCATABLE]) -+]) -+ -+dnl Determine the platform dependent parameters needed to use relocatability: -+dnl shlibpath_var. -+AC_DEFUN([AC_LIB_LIBPATH], -+[ -+ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD -+ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host -+ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir -+ AC_CACHE_CHECK([for shared library path variable], acl_cv_libpath, [ -+ LD="$LD" \ -+ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh -+ . ./conftest.sh -+ rm -f ./conftest.sh -+ acl_cv_libpath=${acl_cv_shlibpath_var:-none} -+ ]) -+ shlibpath_var="$acl_cv_shlibpath_var" -+]) -+ - AC_RELOCATABLE - - AM_ICONV -@@ -250,6 +349,9 @@ - ) - - USE_LIBICAL="no" -+AC_ARG_ENABLE(usb, AC_HELP_STRING([--enable-ical], -+[enable libical support (default is no)]),, [enable_ical=no]) -+if test "$enable_ical" == "yes"; then - OLD_LIBS="$LIBS" - OLD_CFLAGS="$CFLAGS" - LIBS="$LIBS $ICAL_LIBS -lpthread -lical" -@@ -282,22 +384,27 @@ - CFLAGS="$OLD_CFLAGS" - ] - ) -+fi - - dnl ======================== Check for libusb - USE_LIBUSB="no" --AC_MSG_CHECKING(whether libusb is installed) --AC_TRY_COMPILE([#include <usb.h>], -- [struct usb_dev_handle *dev;], -- [ -- AC_MSG_RESULT(yes) -- AC_DEFINE([HAVE_LIBUSB],[1],[Use libusb]) -- USE_LIBUSB="yes" -- LIBS="$LIBS -lusb" -- ], -- [ -- AC_MSG_RESULT(no) -- ] --) -+AC_ARG_ENABLE(usb, AC_HELP_STRING([--enable-usb], -+[enable libusb support (default is no)]),, [enable_usb=no]) -+if test "$enable_usb" == "yes"; then -+ AC_MSG_CHECKING(whether libusb is installed) -+ AC_TRY_COMPILE([#include <usb.h>], -+ [struct usb_dev_handle *dev;], -+ [ -+ AC_MSG_RESULT(yes) -+ AC_DEFINE([HAVE_LIBUSB],[1],[Use libusb]) -+ USE_LIBUSB="yes" -+ LIBS="$LIBS -lusb" -+ ], -+ [ -+ AC_MSG_RESULT(no) -+ ] -+ ) -+fi - - dnl ======================== Checks for gethostbyname support - AC_CHECK_FUNC(gethostbyname, , diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.18-xlibpath.patch b/app-mobilephone/gnokii/files/gnokii-0.6.18-xlibpath.patch deleted file mode 100644 index baa96a2ee97f..000000000000 --- a/app-mobilephone/gnokii/files/gnokii-0.6.18-xlibpath.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff -Nru gnokii-0.6.18.orig/configure.in gnokii-0.6.18/configure.in ---- gnokii-0.6.18.orig/configure.in 2007-07-24 23:31:35.000000000 +0300 -+++ gnokii-0.6.18/configure.in 2007-08-16 23:26:21.000000000 +0300 -@@ -468,11 +469,16 @@ - fi - CPPFLAGS="$CPPFLAGS $XINCL" - AC_CHECK_HEADERS(X11/xpm.h, -- [ AC_CHECK_LIB(Xpm, XpmWriteFileFromXpmImage, -- [ XPM_CFLAGS="$XINCL" XPM_LIBS="-L$x_libraries -lXpm -lX11" -+ [ XLIBPATH="" -+ if test "x$x_libraries" != "x"; then -+ XLIBPATH="-L$x_libraries" -+ fi -+ AC_CHECK_LIB(Xpm, XpmWriteFileFromXpmImage, -+ [ XPM_CFLAGS="$XINCL" -+ XPM_LIBS="$XLIBPATH -lXpm -lX11" - AC_DEFINE(XPM) ], - AC_MSG_WARN(Cannot found library libXpm - disabling XPM support.), -- [ -L$x_libraries -lX11 ] -+ [ $XLIBPATH -lX11 ] - ) - ] - ) diff --git a/app-mobilephone/gnokii/gnokii-0.6.14-r2.ebuild b/app-mobilephone/gnokii/gnokii-0.6.14-r2.ebuild deleted file mode 100644 index 2bfc763ea3d4..000000000000 --- a/app-mobilephone/gnokii/gnokii-0.6.14-r2.ebuild +++ /dev/null @@ -1,137 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/gnokii-0.6.14-r2.ebuild,v 1.12 2008/05/21 15:52:49 dev-zero Exp $ - -inherit eutils flag-o-matic linux-info - -DESCRIPTION="user space driver and tools for use with mobile phones" -HOMEPAGE="http://www.gnokii.org/" -SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 hppa ppc ppc64 sparc x86" -IUSE="nls bluetooth ical irda sms postgres mysql usb X" - -RESTRICT="test" #test fails; maybe it will work in the future, but till then... - -RDEPEND="X? ( >=x11-libs/gtk+-2.8.19 ) - bluetooth? ( >=net-wireless/bluez-libs-2.25 ) - sms? ( >=dev-libs/glib-2.10.3 - postgres? ( >=virtual/postgresql-server-8.0 ) - mysql? ( >=virtual/mysql-4.1 ) - ) - ical? ( >=dev-libs/libical-0.26.6 ) - usb? ( >=dev-libs/libusb-0.1.11 )" -DEPEND="${RDEPEND} - irda? ( virtual/os-headers ) - nls? ( >=sys-devel/gettext-0.14.5 ) - >=sys-devel/autoconf-2.59-r7 - >=app-text/recode-3.6-r2" - -CONFIG_CHECK="UNIX98_PTYS" - -src_unpack() { - unpack ${A} - cd "${S}" - - # Add proper conditional support for ical and usb USE flags - epatch "${FILESDIR}"/${P}-configure.in.patch - - if use sms ; then - local MY_SMSD_DB_OBJS="file.lo" - local MY_SMSD_DB_LIBS="libfile.la" - if use postgres; then - MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} pq.lo" - MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libpq.la" - fi - if use mysql; then - MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} mysql.lo" - MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libmysql.la" - fi - - sed -i \ - -e "s/^DB_OBJS.*=.*file[.]lo/DB_OBJS = ${MY_SMSD_DB_OBJS}/" \ - -e "s/^DB_LIBS.*=.*libfile[.]la/DB_LIBS = ${MY_SMSD_DB_LIBS}/" \ - -e 's/\(^.*LIBTOOL.*--mode=finish.*$\)/#\1/' \ - smsd/Makefile - - #Change default database module if pq not supported - if ! use postgres ; then - local MY_DEFAULT_DB_MODULE="file" - if use mysql ; then - MY_DEFAULT_DB_MODULE="mysql" - fi - sed -i -e "s/\"pq\"/\"${MY_DEFAULT_DB_MODULE}\"/" smsd/smsd.c - fi - fi -} - -src_compile() { - find po/ -name '*.po' -exec recode latin1..u8 {} \; - append-flags -fno-strict-aliasing - append-ldflags $(bindnow-flags) #avoid QA notices - - autoconf && econf \ - $(use_enable nls) \ - $(use_enable usb) \ - $(use_enable ical) \ - $(use_with X x) \ - --disable-debug \ - --disable-xdebug \ - --disable-rlpdebug \ - --enable-security \ - --disable-unix98test \ - || die "configure failed" - - emake -j1 || die "make failed" - - if use sms; then - cd "${S}/smsd" - - emake || die "smsd make install failed" - - cd "${S}" - fi -} - -src_install() { - einstall || die "make install failed" - - if use X; then - insinto /usr/share/pixmaps - newins Docs/sample/logo/gnokii.xpm xgnokii.xpm - fi - - insinto /etc - doins Docs/sample/gnokiirc - sed -i -e 's:/usr/local:/usr:' "${D}/etc/gnokiirc" - - doman Docs/man/* - dodir "/usr/share/doc/${PF}" - cp -r Docs/sample "${D}/usr/share/doc/${PF}/sample" - cp -r Docs/protocol "${D}/usr/share/doc/${PF}/protocol" - rm -rf Docs/man Docs/sample Docs/protocol - dodoc Docs/* - - # only one file needs suid root to make a pseudo device - fperms 4755 /usr/sbin/mgnokiidev - - if use sms; then - cd "${S}/smsd" - - einstall || die "smsd make install failed" - - cd "${S}" - fi -} - -pkg_postinst() { - elog "Make sure the user that runs gnokii has read/write access to the device" - elog "which your phone is connected to." - elog "The simple way of doing that is to add your user to the uucp group." - echo - ewarn "We've received at least one report of gnokii with USB connection" - ewarn "breaking the phone, which needed to be serviced afterwards." - ewarn "Be careful if you decide to try that..." -} diff --git a/app-mobilephone/gnokii/gnokii-0.6.18-r1.ebuild b/app-mobilephone/gnokii/gnokii-0.6.18-r1.ebuild deleted file mode 100644 index b2dfd5ac1c1c..000000000000 --- a/app-mobilephone/gnokii/gnokii-0.6.18-r1.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/gnokii-0.6.18-r1.ebuild,v 1.3 2008/05/21 15:52:49 dev-zero Exp $ - -inherit eutils flag-o-matic linux-info autotools - -DESCRIPTION="user space driver and tools for use with mobile phones" -HOMEPAGE="http://www.gnokii.org/" -SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="nls bluetooth ical irda sms postgres mysql usb X debug" - -RESTRICT="test" #test fails; maybe it will work in the future, but till then... - -RDEPEND="X? ( >=x11-libs/gtk+-2.8.19 ) - bluetooth? ( >=net-wireless/bluez-libs-2.25 ) - sms? ( >=dev-libs/glib-2.10.3 - postgres? ( >=virtual/postgresql-server-8.0 ) - mysql? ( >=virtual/mysql-4.1 ) - ) - ical? ( >=dev-libs/libical-0.26.6 ) - usb? ( >=dev-libs/libusb-0.1.11 )" -DEPEND="${RDEPEND} - irda? ( virtual/os-headers ) - nls? ( >=sys-devel/gettext-0.14.5 )" - -CONFIG_CHECK="UNIX98_PTYS" - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${P}-xlibpath.patch - - if use sms ; then - local MY_SMSD_DB_OBJS="file.lo" - local MY_SMSD_DB_LIBS="libfile.la" - if use postgres; then - MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} pq.lo" - MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libpq.la" - fi - if use mysql; then - MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} mysql.lo" - MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libmysql.la" - fi - - sed -i \ - -e "s/^\(DB_OBJS[\t ]*=\).*$/\1 ${MY_SMSD_DB_OBJS}/" \ - -e "s/^\(DB_LIBS[\t ]*=\).*$/\1 ${MY_SMSD_DB_LIBS}/" \ - -e 's/\(^.*LIBTOOL.*--mode=finish.*$\)/#\1/' \ - smsd/Makefile - - #Change default database module - local MY_DEFAULT_DB_MODULE="file" - if use postgres ; then - MY_DEFAULT_DB_MODULE="pq" - elif use mysql ; then - MY_DEFAULT_DB_MODULE="mysql" - fi - sed -i -e "s/\(smsdConfig[.]dbMod[\t ]*=.*\"\).*\(\"\)/\1${MY_DEFAULT_DB_MODULE}\2/" smsd/smsd.c - fi - - eautoconf -} - -src_compile() { - append-flags -fno-strict-aliasing - append-ldflags $(bindnow-flags) #avoid QA notices - - config_xdebug="--disable-xdebug" - use X && use debug && config_xdebug="--enable-xdebug" - - econf \ - $(use_enable nls) \ - $(use_enable ical libical) \ - $(use_enable usb libusb) \ - $(use_enable irda) \ - $(use_enable bluetooth) \ - $(use_with X x) \ - $(use_enable debug) \ - ${config_xdebug} \ - $(use_enable debug rlpdebug) \ - --enable-security \ - --disable-unix98test \ - || die "configure failed" - - emake -j1 || die "make failed" - - if use sms; then - pushd "${S}/smsd" - emake || die "smsd make install failed" - popd - fi -} - -src_install() { - einstall || die "make install failed" - - if use X; then - insinto /usr/share/pixmaps - newins Docs/sample/logo/gnokii.xpm xgnokii.xpm - fi - - insinto /etc - doins Docs/sample/gnokiirc - sed -i -e 's:/usr/local:/usr:' "${D}/etc/gnokiirc" - - doman Docs/man/* - - dodir "/usr/share/doc/${PF}" - cp -r Docs/sample "${D}/usr/share/doc/${PF}/sample" - cp -r Docs/protocol "${D}/usr/share/doc/${PF}/protocol" - rm -rf Docs/man Docs/sample Docs/protocol - dodoc Docs/* ChangeLog TODO MAINTAINERS - - # only one file needs suid root to make a pseudo device - fperms 4755 /usr/sbin/mgnokiidev - - if use sms; then - pushd "${S}/smsd" - einstall || die "smsd make install failed" - insinto /usr/share/doc/${PF}/smsd - use mysql && doins sms.tables.mysql.sql README.MySQL - use postgres && doins sms.tables.pq.sql - doins README ChangeLog README.Tru64 action - popd - fi -} - -pkg_postinst() { - elog "Make sure the user that runs gnokii has read/write access to the device" - elog "which your phone is connected to." - elog "The simple way of doing that is to add your user to the uucp group." - echo - ewarn "We've received at least one report of gnokii with USB connection" - ewarn "breaking the phone, which needed to be serviced afterwards." - ewarn "Be careful if you decide to try that..." -} diff --git a/app-mobilephone/gnokii/gnokii-0.6.19.ebuild b/app-mobilephone/gnokii/gnokii-0.6.19.ebuild deleted file mode 100644 index d69ecc3f5f2e..000000000000 --- a/app-mobilephone/gnokii/gnokii-0.6.19.ebuild +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/gnokii-0.6.19.ebuild,v 1.2 2008/05/21 15:52:49 dev-zero Exp $ - -inherit eutils linux-info - -DESCRIPTION="user space driver and tools for use with mobile phones" -HOMEPAGE="http://www.gnokii.org/" -SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="nls bluetooth ical irda sms postgres mysql usb X debug" - -RESTRICT="test" #test fails; maybe it will work in the future, but till then... - -RDEPEND="X? ( >=x11-libs/gtk+-2.8.19 ) - bluetooth? ( >=net-wireless/bluez-libs-2.25 ) - sms? ( >=dev-libs/glib-2.10.3 - postgres? ( >=virtual/postgresql-server-8.0 ) - mysql? ( >=virtual/mysql-4.1 ) - ) - ical? ( >=dev-libs/libical-0.26.6 ) - usb? ( >=dev-libs/libusb-0.1.11 )" -DEPEND="${RDEPEND} - irda? ( virtual/os-headers ) - nls? ( >=sys-devel/gettext-0.14.5 )" - -CONFIG_CHECK="UNIX98_PTYS" - -src_unpack() { - unpack ${A} - cd "${S}" - - if use sms ; then - local MY_SMSD_DB_OBJS="file.lo" - local MY_SMSD_DB_LIBS="libfile.la" - if use postgres; then - MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} pq.lo" - MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libpq.la" - fi - if use mysql; then - MY_SMSD_DB_OBJS="${MY_SMSD_DB_OBJS} mysql.lo" - MY_SMSD_DB_LIBS="${MY_SMSD_DB_LIBS} libmysql.la" - fi - - sed -i \ - -e "s/^\(DB_OBJS[\t ]*=\).*$/\1 ${MY_SMSD_DB_OBJS}/" \ - -e "s/^\(DB_LIBS[\t ]*=\).*$/\1 ${MY_SMSD_DB_LIBS}/" \ - -e 's/\(^.*LIBTOOL.*--mode=finish.*$\)/#\1/' \ - smsd/Makefile - - #Change default database module - local MY_DEFAULT_DB_MODULE="file" - if use postgres ; then - MY_DEFAULT_DB_MODULE="pq" - elif use mysql ; then - MY_DEFAULT_DB_MODULE="mysql" - fi - sed -i -e "s/\(smsdConfig[.]dbMod[\t ]*=.*\"\).*\(\"\)/\1${MY_DEFAULT_DB_MODULE}\2/" smsd/smsd.c - fi -} - -src_compile() { - config_xdebug="--disable-xdebug" - use X && use debug && config_xdebug="--enable-xdebug" - - econf \ - $(use_enable nls) \ - $(use_enable ical libical) \ - $(use_enable usb libusb) \ - $(use_enable irda) \ - $(use_enable bluetooth) \ - $(use_with X x) \ - $(use_enable debug) \ - ${config_xdebug} \ - $(use_enable debug rlpdebug) \ - --enable-security \ - --disable-unix98test \ - || die "configure failed" - - emake -j1 || die "make failed" - - if use sms; then - pushd "${S}/smsd" - emake || die "smsd make install failed" - popd - fi -} - -src_install() { - einstall || die "make install failed" - - if use X; then - insinto /usr/share/pixmaps - newins Docs/sample/logo/gnokii.xpm xgnokii.xpm - fi - - insinto /etc - doins Docs/sample/gnokiirc - sed -i -e 's:/usr/local:/usr:' "${D}/etc/gnokiirc" - - doman Docs/man/* - - dodir "/usr/share/doc/${PF}" - cp -r Docs/sample "${D}/usr/share/doc/${PF}/sample" - cp -r Docs/protocol "${D}/usr/share/doc/${PF}/protocol" - rm -rf Docs/man Docs/sample Docs/protocol - dodoc Docs/* ChangeLog TODO MAINTAINERS - - # only one file needs suid root to make a pseudo device - fperms 4755 /usr/sbin/mgnokiidev - - if use sms; then - pushd "${S}/smsd" - einstall || die "smsd make install failed" - insinto /usr/share/doc/${PF}/smsd - use mysql && doins sms.tables.mysql.sql README.MySQL - use postgres && doins sms.tables.pq.sql - doins README ChangeLog README.Tru64 action - popd - fi -} - -pkg_postinst() { - elog "Make sure the user that runs gnokii has read/write access to the device" - elog "which your phone is connected to." - elog "The simple way of doing that is to add your user to the uucp group." -} |