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
commit8256d1f45a4b1199eee10a44630fd9cef31ade2e (patch)
tree79876b06da83f69ae11007ffaef3e94e70065e3d /app-mobilephone/gnokii
parentSome cleanups to the java-stuff, also prevent build breakage with FEATURES="s... (diff)
downloadhistorical-8256d1f45a4b1199eee10a44630fd9cef31ade2e.tar.gz
historical-8256d1f45a4b1199eee10a44630fd9cef31ade2e.tar.bz2
historical-8256d1f45a4b1199eee10a44630fd9cef31ade2e.zip
Version bump. Closes bug #144463.
Package-Manager: portage-2.1.1
Diffstat (limited to 'app-mobilephone/gnokii')
-rw-r--r--app-mobilephone/gnokii/ChangeLog7
-rw-r--r--app-mobilephone/gnokii/Manifest28
-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
6 files changed, 306 insertions, 9 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/Manifest b/app-mobilephone/gnokii/Manifest
index d49e6591b43f..a4bd037b6503 100644
--- a/app-mobilephone/gnokii/Manifest
+++ b/app-mobilephone/gnokii/Manifest
@@ -1,3 +1,7 @@
+AUX gnokii-0.6.14-configure.in.patch 5406 RMD160 c0e89c7cf981161d1da2a278cfa76299da890618 SHA1 64be68fddd10f91944796b1beb9e84e0ed46d4fb SHA256 db094a13b423fdcafb0645bdc3dc7f5a16513e5a6132235055854239c52d73f2
+MD5 de149d7ddb35f1877c62e689dfcf6539 files/gnokii-0.6.14-configure.in.patch 5406
+RMD160 c0e89c7cf981161d1da2a278cfa76299da890618 files/gnokii-0.6.14-configure.in.patch 5406
+SHA256 db094a13b423fdcafb0645bdc3dc7f5a16513e5a6132235055854239c52d73f2 files/gnokii-0.6.14-configure.in.patch 5406
AUX gnokii-0.6.7-smsd-glib2.patch 779 RMD160 6a83e8d656dcdead0f8e0748834b72b0c4d6a7de SHA1 ebdd28557e470bf31e765074e1007d59227c5aee SHA256 21f7cd646c1538d240884f7c97acac069c115c9d133ddbd4699345339eb570e4
MD5 d35a120458debd2931e2c6f67104d9d1 files/gnokii-0.6.7-smsd-glib2.patch 779
RMD160 6a83e8d656dcdead0f8e0748834b72b0c4d6a7de files/gnokii-0.6.7-smsd-glib2.patch 779
@@ -15,7 +19,8 @@ MD5 135df3cf24c3041ccb20a5896482ed59 files/gnokii.desktop 260
RMD160 632d958a36303df3ac1d14ae460f3dd9f841d067 files/gnokii.desktop 260
SHA256 1176b84076d5200463c253fb4dae7758c9cf9c1a059ef1baec2ee59060373083 files/gnokii.desktop 260
DIST gnokii-0.6.10.tar.bz2 1916536
-DIST gnokii-0.6.12.tar.bz2 1517318
+DIST gnokii-0.6.12.tar.bz2 1517318 RMD160 98c1d4933455e6c05f460a0c59716baef3b0b83b SHA1 dc1b33d999c46f3fa74039201788b3440a26d412 SHA256 7ec179f8d933c1005af2b4996198fffc10b528f4604b796c471d6413cc825b58
+DIST gnokii-0.6.14.tar.bz2 1546845 RMD160 471689e6ccbb2a81c0eb27a073e27f88ed71e3df SHA1 df3c5a4fd96d84e81feee8ded2bdf112269e78f3 SHA256 cea63cddf79864d306198c7a84091af0b4685816b352ae253a3e2bfac5e67cb7
DIST gnokii-0.6.7.tar.bz2 1932632
DIST gnokii-0.6.8.tar.bz2 1980384
EBUILD gnokii-0.6.10.ebuild 2264 RMD160 8fb3ce3c895ce146922f022968e0cb7a1463ac73 SHA1 2d84cc240f47a9e12415ca77cffffde013cb043c SHA256 ac51ec94b14ba007e1b1c5502a170c2da100051f7404d213465b1947835e6c2f
@@ -26,6 +31,10 @@ EBUILD gnokii-0.6.12.ebuild 2401 RMD160 458df8e899e8485172c74562716f7db80570f3bc
MD5 a056c2cb0ee3a7467330f7414dc858e9 gnokii-0.6.12.ebuild 2401
RMD160 458df8e899e8485172c74562716f7db80570f3bc gnokii-0.6.12.ebuild 2401
SHA256 4a119f318b0ba1661406f326532905920951187671c53a792498d779c5c67adc gnokii-0.6.12.ebuild 2401
+EBUILD gnokii-0.6.14.ebuild 2983 RMD160 d46ee3b0401efd1503dd181ad3ed89efd828de21 SHA1 ac64c4eab569335e77d5c76ca38f0a18713dffd0 SHA256 36bd89c5cf9f15d9e96e229cc555f827f26ce79c89dbf33bd73fc8bbce2c0770
+MD5 81961d7d06a680a4c415b150ce9d85cb gnokii-0.6.14.ebuild 2983
+RMD160 d46ee3b0401efd1503dd181ad3ed89efd828de21 gnokii-0.6.14.ebuild 2983
+SHA256 36bd89c5cf9f15d9e96e229cc555f827f26ce79c89dbf33bd73fc8bbce2c0770 gnokii-0.6.14.ebuild 2983
EBUILD gnokii-0.6.7-r1.ebuild 2323 RMD160 3f7c2967f72152d61e0addd5d5983a8e8949ad22 SHA1 a65b1368ad0b51c9234945994354256953d1c4c0 SHA256 d6c2cadedfb80e43c44e337e90311bf3a0a9e9631bbb9be2c133f4fe7b9255e9
MD5 cba9a4289ee030177175548bb071572d gnokii-0.6.7-r1.ebuild 2323
RMD160 3f7c2967f72152d61e0addd5d5983a8e8949ad22 gnokii-0.6.7-r1.ebuild 2323
@@ -38,10 +47,10 @@ EBUILD gnokii-0.6.8.ebuild 2328 RMD160 7a542bd26eba634e7f6cb88cedc2af39ab464358
MD5 d8f6cfbab08d0644b83b55a2bea01c6e gnokii-0.6.8.ebuild 2328
RMD160 7a542bd26eba634e7f6cb88cedc2af39ab464358 gnokii-0.6.8.ebuild 2328
SHA256 c35ef3c94a6888cdb107cc63dbe797c23f9d7ab9868826c98e7135686062e7a1 gnokii-0.6.8.ebuild 2328
-MISC ChangeLog 9612 RMD160 9280c675076b413863f9b0b8fc73a7ba18ec85d4 SHA1 24da943612c8f35e03a1bbfcbbd05f7999bdecc9 SHA256 09413be86c234f841d713fb0ce12d45d33a0b3516a15d5f0196c8240f0049fc7
-MD5 82a9e24c2a71ebd82df7c3c49fb53f51 ChangeLog 9612
-RMD160 9280c675076b413863f9b0b8fc73a7ba18ec85d4 ChangeLog 9612
-SHA256 09413be86c234f841d713fb0ce12d45d33a0b3516a15d5f0196c8240f0049fc7 ChangeLog 9612
+MISC ChangeLog 9743 RMD160 fd32f005d1f382698ecf721627a8027655fab416 SHA1 1eff6aa5bac14cb80fb47665ce82a0daabbc0f34 SHA256 a5b68621bff961ef4a998632727d154dfc1c789a33d74c6ac91ed80999cf8fcb
+MD5 b61916c266b7cde500ed68f34215154e ChangeLog 9743
+RMD160 fd32f005d1f382698ecf721627a8027655fab416 ChangeLog 9743
+SHA256 a5b68621bff961ef4a998632727d154dfc1c789a33d74c6ac91ed80999cf8fcb ChangeLog 9743
MISC metadata.xml 467 RMD160 f4f42815e8e048a9393a44da04ca01dac19c2cb5 SHA1 ffe70f8fab241fb7d19fb7807e6a04a5134fee6e SHA256 568184cf4297917d644b08f231861be42f00830d26e6c3789e3a4d65016430d6
MD5 01ec5e34cbf064fdf9a0862d481b01d9 metadata.xml 467
RMD160 f4f42815e8e048a9393a44da04ca01dac19c2cb5 metadata.xml 467
@@ -49,9 +58,12 @@ SHA256 568184cf4297917d644b08f231861be42f00830d26e6c3789e3a4d65016430d6 metadata
MD5 1ae951a2b197095da2c0d74c0067181f files/digest-gnokii-0.6.10 67
RMD160 26b882060332f6f9e1f9452334ee1efca7ada3e8 files/digest-gnokii-0.6.10 67
SHA256 edbcbd23dc827d28d6e66a526414bc35621707028f2c3b1ef32f53065d20ab15 files/digest-gnokii-0.6.10 67
-MD5 169306d7a9fcb154274898c7330a9491 files/digest-gnokii-0.6.12 67
-RMD160 680bbf3556026584a170922c410828a9998815aa files/digest-gnokii-0.6.12 67
-SHA256 4e60da7e64132d0ffc5ecc0f069883b794c86f1026a9db921c857754566a81c3 files/digest-gnokii-0.6.12 67
+MD5 2edf9c743bbee0a31892646cf06e8d65 files/digest-gnokii-0.6.12 247
+RMD160 058e63d781dd89c6a3447c99c15dd82bbfb79004 files/digest-gnokii-0.6.12 247
+SHA256 03488b3b67f3daf0240f76f6c01503bc4ca78f8ec851338170b9478a1788dea1 files/digest-gnokii-0.6.12 247
+MD5 e11b217bdc80c76accbe14ddf2551844 files/digest-gnokii-0.6.14 247
+RMD160 163a9f496688c3c4c75ed67cd6c717e12715f192 files/digest-gnokii-0.6.14 247
+SHA256 b885674830291c32e9183bdb622e705eb8ac3b84448a0aabdc6f6c1030478296 files/digest-gnokii-0.6.14 247
MD5 c4cdcbc35ff57082908ea21d7aa1f9a3 files/digest-gnokii-0.6.7-r1 66
RMD160 7a7ee735423ace7e3adef44e97a6798e3440e108 files/digest-gnokii-0.6.7-r1 66
SHA256 8b399f6d7f42ad3a39db2678f3444b59540e4a4c9baeec518ab006aab0b6c988 files/digest-gnokii-0.6.7-r1 66
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..."
+}