summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2011-11-02 16:24:23 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2011-11-02 16:24:23 +0000
commit143b2eb357c40a30dd0b803fd40d8f09905c2ac6 (patch)
tree412a4ce3d167cca38c39219b2da52d4472557784 /gnome-extra
parentMarked stable on AMD64 based on arch testing by Agostino ago Sarubbo & Ian De... (diff)
downloadgentoo-2-143b2eb357c40a30dd0b803fd40d8f09905c2ac6.tar.gz
gentoo-2-143b2eb357c40a30dd0b803fd40d8f09905c2ac6.tar.bz2
gentoo-2-143b2eb357c40a30dd0b803fd40d8f09905c2ac6.zip
New ebuild from the gnome-overlay, split off from app-misc/tracker in order to avoid circular dependencies with nautilus[tracker]. For simplicity and build speed, it uses a custom makefile (most of tracker's build infrastructure is unnecessary for building the nautilus extension).
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'gnome-extra')
-rw-r--r--gnome-extra/nautilus-tracker-tags/ChangeLog13
-rw-r--r--gnome-extra/nautilus-tracker-tags/files/0.12.5-Makefile15
-rw-r--r--gnome-extra/nautilus-tracker-tags/metadata.xml5
-rw-r--r--gnome-extra/nautilus-tracker-tags/nautilus-tracker-tags-0.12.7.ebuild43
4 files changed, 76 insertions, 0 deletions
diff --git a/gnome-extra/nautilus-tracker-tags/ChangeLog b/gnome-extra/nautilus-tracker-tags/ChangeLog
new file mode 100644
index 000000000000..0da6d4645e9e
--- /dev/null
+++ b/gnome-extra/nautilus-tracker-tags/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for gnome-extra/nautilus-tracker-tags
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/nautilus-tracker-tags/ChangeLog,v 1.1 2011/11/02 16:24:23 tetromino Exp $
+
+*nautilus-tracker-tags-0.12.7 (02 Nov 2011)
+
+ 02 Nov 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
+ +files/0.12.5-Makefile, +nautilus-tracker-tags-0.12.7.ebuild, +metadata.xml:
+ New package from the gnome-overlay, split off from app-misc/tracker in order
+ to avoid circular dependencies with nautilus[tracker]. For simplicity and
+ build speed, it uses a custom makefile (most of tracker's build
+ infrastructure is unnecessary for building the nautilus extension).
+
diff --git a/gnome-extra/nautilus-tracker-tags/files/0.12.5-Makefile b/gnome-extra/nautilus-tracker-tags/files/0.12.5-Makefile
new file mode 100644
index 000000000000..c2aececf863d
--- /dev/null
+++ b/gnome-extra/nautilus-tracker-tags/files/0.12.5-Makefile
@@ -0,0 +1,15 @@
+EXTENSIONDIR := $(shell pkg-config --variable=extensiondir libnautilus-extension)
+CFLAGS := -fPIC $(CFLAGS) $(shell pkg-config --cflags glib-2.0 gtk+-3.0 libnautilus-extension tracker-sparql-$(TRACKER_API))
+LIBS := $(shell pkg-config --libs glib-2.0 gtk+-3.0 libnautilus-extension tracker-sparql-$(TRACKER_API))
+RPATH := $(shell pkg-config --variable=libdir tracker-sparql-$(TRACKER_API))/tracker-$(TRACKER_API)
+INSTALL = install
+
+object_files = tracker-tags-extension.o tracker-tags-utils.o tracker-tags-view.o
+
+libnautilus-tracker-tags.so: $(object_files)
+ $(CC) -shared -Wl,-rpath=$(RPATH) -Wl,-soname=$@ $(LDFLAGS) $^ $(LIBS) -o $@
+
+install: libnautilus-tracker-tags.so
+ $(INSTALL) -d $(DESTDIR)$(EXTENSIONDIR)/
+ $(INSTALL) $^ $(DESTDIR)$(EXTENSIONDIR)/
+
diff --git a/gnome-extra/nautilus-tracker-tags/metadata.xml b/gnome-extra/nautilus-tracker-tags/metadata.xml
new file mode 100644
index 000000000000..941d094fcec5
--- /dev/null
+++ b/gnome-extra/nautilus-tracker-tags/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>freedesktop</herd>
+</pkgmetadata>
diff --git a/gnome-extra/nautilus-tracker-tags/nautilus-tracker-tags-0.12.7.ebuild b/gnome-extra/nautilus-tracker-tags/nautilus-tracker-tags-0.12.7.ebuild
new file mode 100644
index 000000000000..530e9b26050a
--- /dev/null
+++ b/gnome-extra/nautilus-tracker-tags/nautilus-tracker-tags-0.12.7.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-extra/nautilus-tracker-tags/nautilus-tracker-tags-0.12.7.ebuild,v 1.1 2011/11/02 16:24:23 tetromino Exp $
+
+EAPI="4"
+GNOME_ORG_MODULE="tracker"
+GNOME_TARBALL_SUFFIX="xz"
+
+inherit gnome.org toolchain-funcs
+
+DESCRIPTION="Nautilus extension to tag files for Tracker"
+HOMEPAGE="http://www.tracker-project.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND=">=app-misc/tracker-${PV}
+ >=dev-libs/glib-2.28:2
+ >=gnome-base/nautilus-2.90
+ x11-libs/gtk+:3"
+RDEPEND="${COMMON_DEPEND}
+ !<app-misc/tracker-0.12.5-r1[nautilus]"
+# Before tracker-0.12.5-r1, nautilus-tracker-tags was part of tracker
+DEPEND="${COMMON_DEPEND}"
+
+S="${S}/src/plugins/nautilus"
+
+pkg_setup() {
+ tc-export CC
+ export TRACKER_API=${GNOME_ORG_PVP}
+}
+
+src_prepare() {
+ cp "${FILESDIR}/0.12.5-Makefile" Makefile || die "cp failed"
+ # config.h is not used, but is included in every source file...
+ sed -e 's:#include "config.h"::' -i *.c *.h || die "sed failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+}