linkage 0.1.4 w/build patch

git-svn-id: http://svn.sabayonlinux.org/overlay@2214 d7aec97c-591d-0410-af39-a8856400b30a
This commit is contained in:
lxnay
2008-04-22 13:29:28 +00:00
parent f5f68cc338
commit 0d72ca2e2f
4 changed files with 87 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
AUX linkage-0.1.2-enable-disable-upnp.patch 932 RMD160 b30f534fd91d9d048918a387e9ceae7a831b698f SHA1 0220960c9904e52b4ecc5cd6d742228c0c03b5be SHA256 06d4e4491f6a2c9b89d6c8e0b5f23ddaf1acd6c9a3efe1b89683703547b28f75
AUX linkage-0.1.4-plugin-constructor.patch 414 RMD160 e4631a570346687255039966afd0d2736c7b569e SHA1 b7092f9f709ee0f4d2b6a230a75f3ff314f77346 SHA256 5bcd640a0754da359fd96d82819986192598471a42611e61976c54eac8240f06
DIST linkage-0.1.4.tar.gz 605105 RMD160 8fd3168ac0d2b52750e3f46e4686f56a89667671 SHA1 61597d63ba79009d54dbeedeb683295d0bc9caf8 SHA256 7cf1de1b1b29ec653c72c89366d1ae95de6ab8d6c74c61a2568de52a9bf432d0
EBUILD linkage-0.1.4-r1.ebuild 1205 RMD160 f66f6be338fc9f2912e1458c330e12b009c0b817 SHA1 8535b0d33a4b3bda648ec803d4789980910c64a8 SHA256 5dde5d67eb7d781f604f9d617f602b666fdec824728cf193c627d2d001edecd7
@@ -0,0 +1,28 @@
diff -ur linkage-0.1.2.orig/configure.ac linkage-0.1.2/configure.ac
--- linkage-0.1.2.orig/configure.ac 2007-05-04 18:44:57.000000000 +0300
+++ linkage-0.1.2/configure.ac 2007-07-22 18:28:14.000000000 +0300
@@ -37,8 +37,22 @@
AC_SUBST(DBUSGLIB_CFLAGS)
AC_SUBST(DBUSGLIB_LIBS)
-PKG_CHECK_MODULES(LIBUPNP, libupnp >= 1.4.1, USE_UPNP="yes", USE_UPNP="no")
-AM_CONDITIONAL(BUILDUPNP, test x$USE_UPNP = xyes)
+AC_ARG_ENABLE([upnp],
+ [AS_HELP_STRING([--enable-upnp], [Enable libupnp (default=disabled)])],
+ [enable_upnp="$enableval"],
+ [enable_upnp="no"]
+)
+
+if test "$enable_upnp" = "yes"; then
+ PKG_CHECK_MODULES([LIBUPNP], [libupnp >= 1.4.1])
+ AC_DEFINE([BUILDUPNP], [], [Define when building with libupnp])
+ BUILDUPNP="true"
+else
+ BUILDUPNP="false"
+fi
+
+AC_SUBST([ENABLE_LIBUPNP])
+AM_CONDITIONAL([BUILDUPNP], [test "$enable_upnp" = "yes"])
AC_SUBST(LIBUPNP_CFLAGS)
AC_SUBST(LIBUPNP_LIBS)
@@ -0,0 +1,11 @@
--- lib/linkage/Plugin.hh.orig 2007-12-30 05:04:37.000000000 -0800
+++ lib/linkage/Plugin.hh 2007-12-30 05:06:31.000000000 -0800
@@ -39,6 +39,8 @@
Glib::ustring website;
bool has_options;
PluginParent parent;
+
+ Info() : name(NULL), description(NULL), version(NULL), author(NULL), website(NULL), has_options(false), parent(PARENT_NONE) {}
Info(const Glib::ustring& n,
const Glib::ustring& d,
+44
View File
@@ -0,0 +1,44 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/linkage/linkage-0.1.4.ebuild,v 1.2 2007/11/01 17:33:24 drac Exp $
SCROLLKEEPER_UPDATE="no"
GCONF_DEBUG="no"
inherit gnome2 eutils
DESCRIPTION="BitTorrent client written in C++ using gtkmm and libtorrent."
HOMEPAGE="http://code.google.com/p/linkage"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="curl gnome upnp xfce"
RDEPEND=">=net-libs/rb_libtorrent-0.12
>=dev-cpp/gtkmm-2.10
>=dev-cpp/gconfmm-2.6
>=dev-cpp/libglademm-2.6
>=x11-libs/libnotify-0.4.4
>=dev-libs/dbus-glib-0.73
curl? ( >=net-misc/curl-7.14 )
gnome? ( >=dev-cpp/libgnomemm-2.16
>=dev-cpp/gnome-vfsmm-2.16
>=dev-cpp/libgnomeuimm-2.16 )
xfce? ( >=xfce-extra/exo-0.3 )
upnp? ( >=net-libs/gupnp-0.4 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
sys-devel/gettext"
GCONF2="${GCONF2} $(use_with curl) $(use_with gnome) \
$(use_with upnp gupnp) $(use_with xfce exo)"
DOCS="AUTHORS ChangeLog NEWS README TODO"
src_unpack () {
unpack "${A}"
cd "${S}"
epatch "${FILESDIR}"/linkage-0.1.4-plugin-constructor.patch
}