summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Noberasco <s4t4n@gentoo.org>2006-09-12 07:52:14 +0000
committerMichele Noberasco <s4t4n@gentoo.org>2006-09-12 07:52:14 +0000
commit628ff006577a83d0e40040717da4d23cecf9a63b (patch)
tree67afc2020a34423a6ad781ff0616444d40276ea2 /app-mobilephone/gnokii
parentSome cleanups to the java-stuff, also prevent build breakage with FEATURES="s... (diff)
downloadgentoo-2-628ff006577a83d0e40040717da4d23cecf9a63b.tar.gz
gentoo-2-628ff006577a83d0e40040717da4d23cecf9a63b.tar.bz2
gentoo-2-628ff006577a83d0e40040717da4d23cecf9a63b.zip
Version bump. Closes bug #144463.
(Portage version: 2.1.1)
Diffstat (limited to 'app-mobilephone/gnokii')
-rw-r--r--app-mobilephone/gnokii/ChangeLog7
-rw-r--r--app-mobilephone/gnokii/files/digest-gnokii-0.6.122
-rw-r--r--app-mobilephone/gnokii/files/digest-gnokii-0.6.143
-rw-r--r--app-mobilephone/gnokii/files/gnokii-0.6.14-configure.in.patch159
-rw-r--r--app-mobilephone/gnokii/gnokii-0.6.14.ebuild116
5 files changed, 286 insertions, 1 deletions
diff --git a/app-mobilephone/gnokii/ChangeLog b/app-mobilephone/gnokii/ChangeLog
index a6e2f2d92e0b..762e289d3dd2 100644
--- a/app-mobilephone/gnokii/ChangeLog
+++ b/app-mobilephone/gnokii/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-mobilephone/gnokii
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/ChangeLog,v 1.40 2006/06/10 09:26:30 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/gnokii/ChangeLog,v 1.41 2006/09/12 07:52:14 s4t4n Exp $
+
+*gnokii-0.6.14 (11 Sep 2006)
+
+ 11 Sep 2006; Michele Noberasco <s4t4n@gentoo.org> +gnokii-0.6.14.ebuild:
+ Version bump (#144463).
10 Jun 2006; Michael Hanselmann <hansmi@gentoo.org> gnokii-0.6.12.ebuild:
Stable on ppc.
diff --git a/app-mobilephone/gnokii/files/digest-gnokii-0.6.12 b/app-mobilephone/gnokii/files/digest-gnokii-0.6.12
index 4e3f7be5c775..1d1c9cffcd05 100644
--- a/app-mobilephone/gnokii/files/digest-gnokii-0.6.12
+++ b/app-mobilephone/gnokii/files/digest-gnokii-0.6.12
@@ -1 +1,3 @@
MD5 846e03e7cf3581000c9d0141c2950b79 gnokii-0.6.12.tar.bz2 1517318
+RMD160 98c1d4933455e6c05f460a0c59716baef3b0b83b gnokii-0.6.12.tar.bz2 1517318
+SHA256 7ec179f8d933c1005af2b4996198fffc10b528f4604b796c471d6413cc825b58 gnokii-0.6.12.tar.bz2 1517318
diff --git a/app-mobilephone/gnokii/files/digest-gnokii-0.6.14 b/app-mobilephone/gnokii/files/digest-gnokii-0.6.14
new file mode 100644
index 000000000000..2f801c789991
--- /dev/null
+++ b/app-mobilephone/gnokii/files/digest-gnokii-0.6.14
@@ -0,0 +1,3 @@
+MD5 89449d613c7a7e765a0d8da57ef1bb88 gnokii-0.6.14.tar.bz2 1546845
+RMD160 471689e6ccbb2a81c0eb27a073e27f88ed71e3df gnokii-0.6.14.tar.bz2 1546845
+SHA256 cea63cddf79864d306198c7a84091af0b4685816b352ae253a3e2bfac5e67cb7 gnokii-0.6.14.tar.bz2 1546845
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
new file mode 100644
index 000000000000..28efeb044647
--- /dev/null
+++ b/app-mobilephone/gnokii/files/gnokii-0.6.14-configure.in.patch
@@ -0,0 +1,159 @@
+--- 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/gnokii-0.6.14.ebuild b/app-mobilephone/gnokii/gnokii-0.6.14.ebuild
new file mode 100644
index 000000000000..19bb08c1f071
--- /dev/null
+++ b/app-mobilephone/gnokii/gnokii-0.6.14.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2006 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.ebuild,v 1.1 2006/09/12 07:52:14 s4t4n 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="~alpha ~amd64 ~hppa ~ia64 ~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? ( >=dev-db/postgresql-8.0.8 )
+ mysql? ( >=dev-db/mysql-4.1.21 )
+ )
+ ical? ( >=dev-libs/libical-0.26.6 )
+ usb? ( >=dev-libs/libusb-0.1.11 )"
+DEPEND="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
+
+}
+
+src_compile() {
+
+ find po/ -name '*.po' -exec recode latin1..u8 {} \;
+ 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"
+
+ if use sms ; then
+ cd "${S}/smsd"
+
+ if use postgres; then
+ emake libpq.la || die "smsd make failed"
+ elif use mysql; then
+ emake libmysql.la || die "smsd make failed"
+ else
+ emake libfile.la || die "smsd make failed"
+ fi
+
+ cd "${S}"
+ fi
+
+ emake -j1 || die "make failed"
+}
+
+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() {
+ einfo "gnokii does not need it's own group anymore."
+ einfo "Make sure the user that runs gnokii has read/write access to the device"
+ einfo "which your phone is connected to. eg. chown <user> /dev/ttyS0"
+ echo
+ ewarn "We received at least one report of gnokii with usb connection breaking the phone,"
+ ewarn "which was in need to be serviced afterwards. Be careful if you decide to try that..."
+}