public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Priit Laes" <plaes@plaes.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-extra/gnome-contacts/, gnome-extra/gnome-contacts/files/
Date: Sat, 18 Aug 2012 10:40:59 +0000 (UTC)	[thread overview]
Message-ID: <1345286357.3f47f7dbeedc0bec8cf1ae18b132c04bd67aab8d.plaes@gentoo> (raw)

commit:     3f47f7dbeedc0bec8cf1ae18b132c04bd67aab8d
Author:     Priit Laes <plaes <AT> plaes <DOT> org>
AuthorDate: Sat Aug 18 10:39:17 2012 +0000
Commit:     Priit Laes <plaes <AT> plaes <DOT> org>
CommitDate: Sat Aug 18 10:39:17 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=3f47f7db

gnome-extra/gnome-contacts: Add 3.5.4.1 to overlay

---
 .../files/gnome-contacts-3.5.4.1-gst-flag.patch    |   52 ++++++++++++++++++++
 ...s-9999.ebuild => gnome-contacts-3.5.4.1.ebuild} |   26 ++++++++--
 .../gnome-contacts/gnome-contacts-9999.ebuild      |   16 ++++--
 3 files changed, 83 insertions(+), 11 deletions(-)

diff --git a/gnome-extra/gnome-contacts/files/gnome-contacts-3.5.4.1-gst-flag.patch b/gnome-extra/gnome-contacts/files/gnome-contacts-3.5.4.1-gst-flag.patch
new file mode 100644
index 0000000..ea69b83
--- /dev/null
+++ b/gnome-extra/gnome-contacts/files/gnome-contacts-3.5.4.1-gst-flag.patch
@@ -0,0 +1,52 @@
+From d67be14782eebfdc0685936071516de39ce4ce09 Mon Sep 17 00:00:00 2001
+From: Priit Laes <plaes@plaes.org>
+Date: Sat, 18 Aug 2012 13:25:07 +0300
+Subject: [PATCH] Add --{en,dis}able-gst flag to configure
+
+https://bugzilla.gnome.org/show_bug.cgi?id=682146
+---
+ configure.ac |   26 +++++++++++++++++++++++---
+ 1 files changed, 23 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 445a30e..3520f61 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -57,11 +57,31 @@ gstreamers_modules="gdk-x11-3.0
+ 		    cheese-gtk >= 3.3.5
+ 		    cheese
+                     "
+-PKG_CHECK_MODULES(CONTACTS_GSTREAMER,
++
++AC_MSG_CHECKING([whether to enable gstreamer/cheese support])
++AC_ARG_ENABLE([gst],
++    AS_HELP_STRING([--enable-gst], [Whether to enable gstreamer and cheese support @<:@default=auto@:>@]),
++    [], [enable_gst=auto])
++AC_MSG_RESULT([$enable_gst])
++if test "$enable_gst" != "no"; then
++    PKG_CHECK_MODULES(CONTACTS_GSTREAMER,
+                   [$gstreamers_modules],
+-                  AM_CONDITIONAL(USE_GSTREAMER, true),
+-                  AM_CONDITIONAL(USE_GSTREAMER, false))
++                  [have_gst=yes], [have_gst=no])
++    if test "$enable_gst" = "yes" -a "$have_gst" = "no"; then
++        AC_MSG_ERROR([GStreamer/Cheese support was requested but requirements were not met])
++    elif test "$have_gst" = "yes"; then
++        enable_gst=yes
++    else
++        enable_gst=no
++    fi
++fi
++
++if test "$enable_gst" = "yes"; then
++    AC_DEFINE([USE_GSTREAMER], 1,
++            [Define to enable gstreamer/cheese support])
++fi
+ 
++AM_CONDITIONAL(USE_GSTREAMER, test "$enable_gst" = "yes")
+ CONTACTS_GSTREAMER_PACKAGES="--pkg gdk-x11-3.0 --pkg gstreamer-0.10 --pkg gstreamer-interfaces-0.10"
+ AC_SUBST(CONTACTS_GSTREAMER_PACKAGES)
+ 
+-- 
+1.7.8.6
+

diff --git a/gnome-extra/gnome-contacts/gnome-contacts-9999.ebuild b/gnome-extra/gnome-contacts/gnome-contacts-3.5.4.1.ebuild
similarity index 64%
copy from gnome-extra/gnome-contacts/gnome-contacts-9999.ebuild
copy to gnome-extra/gnome-contacts/gnome-contacts-3.5.4.1.ebuild
index 08e43a6..5653f11 100644
--- a/gnome-extra/gnome-contacts/gnome-contacts-9999.ebuild
+++ b/gnome-extra/gnome-contacts/gnome-contacts-3.5.4.1.ebuild
@@ -5,7 +5,7 @@
 EAPI="4"
 GCONF_DEBUG="no"
 
-inherit gnome2
+inherit autotools eutils gnome2
 if [[ ${PV} = 9999 ]]; then
 	inherit gnome2-live
 fi
@@ -15,20 +15,25 @@ HOMEPAGE="https://live.gnome.org/Design/Apps/Contacts"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE=""
+IUSE="gstreamer"
 if [[ ${PV} = 9999 ]]; then
 	KEYWORDS=""
 else
 	KEYWORDS="~amd64 ~x86"
 fi
 
-RDEPEND=">=dev-libs/folks-0.6.1.1[eds]
+RDEPEND=">=dev-libs/folks-0.7.2[eds]
 	>=dev-libs/glib-2.31.10:2
 	>=x11-libs/gtk+-3.4:3
-	>=gnome-extra/evolution-data-server-3.2[gnome-online-accounts]
+	>=gnome-extra/evolution-data-server-3.5.3[gnome-online-accounts]
 	>=gnome-base/gnome-desktop-3.0:3
 	>=net-libs/telepathy-glib-0.17.5
 
+	gstreamer? ( media-libs/gstreamer
+				 media-libs/gst-plugins-base 
+				 >=media-video/cheese-3.3.5
+				 )
+
 	dev-libs/libgee:0
 	net-libs/gnome-online-accounts
 	x11-libs/cairo
@@ -40,12 +45,21 @@ DEPEND="${RDEPEND}
 	>=sys-devel/gettext-0.17
 	virtual/pkgconfig"
 # Regenerating C from vala sources requires:
-#	>=dev-lang/vala-0.14.0:0.14
+#	>=dev-lang/vala-0.17.2:0.18
 #	net-libs/telepathy-glib[vala]
 
 pkg_setup() {
 	DOCS="AUTHORS ChangeLog NEWS" # README is empty
 	# We do not need valac when building from pre-generated C sources,
 	# but configure checks for it anyway
-	G2CONF="${G2CONF} VALAC=$(type -P valac-0.14)"
+	G2CONF="${G2CONF} VALAC=$(type -P valac-0.18)
+		$(use_enable gstreamer gst)"
+}
+
+src_prepare() {
+	gnome2_src_prepare
+	# Automagic gstreamer
+	# https://bugzilla.gnome.org/show_bug.cgi?id=682146
+	epatch "${FILESDIR}/${P}-gst-flag.patch"
+	eautoreconf
 }

diff --git a/gnome-extra/gnome-contacts/gnome-contacts-9999.ebuild b/gnome-extra/gnome-contacts/gnome-contacts-9999.ebuild
index 08e43a6..2ed69b1 100644
--- a/gnome-extra/gnome-contacts/gnome-contacts-9999.ebuild
+++ b/gnome-extra/gnome-contacts/gnome-contacts-9999.ebuild
@@ -15,20 +15,25 @@ HOMEPAGE="https://live.gnome.org/Design/Apps/Contacts"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE=""
+IUSE="gstreamer"
 if [[ ${PV} = 9999 ]]; then
 	KEYWORDS=""
 else
 	KEYWORDS="~amd64 ~x86"
 fi
 
-RDEPEND=">=dev-libs/folks-0.6.1.1[eds]
+RDEPEND=">=dev-libs/folks-0.7.2[eds]
 	>=dev-libs/glib-2.31.10:2
 	>=x11-libs/gtk+-3.4:3
-	>=gnome-extra/evolution-data-server-3.2[gnome-online-accounts]
+	>=gnome-extra/evolution-data-server-3.5.3[gnome-online-accounts]
 	>=gnome-base/gnome-desktop-3.0:3
 	>=net-libs/telepathy-glib-0.17.5
 
+	gstreamer? ( media-libs/gstreamer
+				 media-libs/gst-plugins-base 
+				 >=media-video/cheese-3.3.5
+				 )
+
 	dev-libs/libgee:0
 	net-libs/gnome-online-accounts
 	x11-libs/cairo
@@ -40,12 +45,13 @@ DEPEND="${RDEPEND}
 	>=sys-devel/gettext-0.17
 	virtual/pkgconfig"
 # Regenerating C from vala sources requires:
-#	>=dev-lang/vala-0.14.0:0.14
+#	>=dev-lang/vala-0.17.2:0.18
 #	net-libs/telepathy-glib[vala]
 
 pkg_setup() {
 	DOCS="AUTHORS ChangeLog NEWS" # README is empty
 	# We do not need valac when building from pre-generated C sources,
 	# but configure checks for it anyway
-	G2CONF="${G2CONF} VALAC=$(type -P valac-0.14)"
+	G2CONF="${G2CONF} VALAC=$(type -P valac-0.18)
+		$(use_enable gstreamer gst)"
 }


             reply	other threads:[~2012-08-18 10:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-18 10:40 Priit Laes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-09-09 12:43 [gentoo-commits] proj/gnome:master commit in: gnome-extra/gnome-contacts/, gnome-extra/gnome-contacts/files/ Nirbheek Chauhan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1345286357.3f47f7dbeedc0bec8cf1ae18b132c04bd67aab8d.plaes@gentoo \
    --to=plaes@plaes.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox