Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2012 00:14:10 GMT
From:      clutton <mbsd@isgroup.com.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/171901: [MAINTAINER REPLACE AND PORT UPDATE] multimedia/ffmpegthumbnailer: Update to 2.0.8 add gnome scheme support
Message-ID:  <201209240014.q8O0EA9R074814@red.freebsd.org>
Resent-Message-ID: <201209240020.q8O0K3r5081252@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171901
>Category:       ports
>Synopsis:       [MAINTAINER REPLACE AND PORT UPDATE] multimedia/ffmpegthumbnailer: Update to 2.0.8 add gnome scheme support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 24 00:20:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     clutton
>Release:        any
>Organization:
isgroup.com.ua
>Environment:
>Description:
I sent patch to original maintainer and he offered me to take that port.
So, I'm going ahead.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/multimedia/ffmpegthumbnailer/Makefile b/multimedia/ffmpegthumbnailer/Makefile
index 73ed727..91d9442 100644
--- a/multimedia/ffmpegthumbnailer/Makefile
+++ b/multimedia/ffmpegthumbnailer/Makefile
@@ -5,12 +5,11 @@
 # $FreeBSD$
 
 PORTNAME=	ffmpegthumbnailer
-PORTVERSION=	2.0.7
-PORTREVISION=	2
+PORTVERSION=	2.0.8
 CATEGORIES=	multimedia graphics
 MASTER_SITES=	GOOGLE_CODE
 
-MAINTAINER=	dierk@blaxxtarz.de
+MAINTAINER=	mbsd@isgroup.com.ua
 COMMENT=	Lightweight video thumbnailer that can be used by file managers
 
 LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
@@ -19,22 +18,32 @@ LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png \
 
 CPPFLAGS+=	${PTHREAD_CFLAGS} -I${LOCALBASE}/include
 LDFLAGS+=	${PTHREAD_LIBS} -L${LOCALBASE}/lib
-CONFIGURE_ARGS=	--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig \
-		--enable-gio
+CONFIGURE_ARGS=	--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig --enable-gio
 
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_GNOME=	gnomehack pkgconfig _glib20
 USE_LDCONFIG=	yes
 
-MAN1=		ffmpegthumbnailer.1
+WANT_GNOME=	yes
+
+OPTIONS_DEFINE=	GNOME
+
+.include <bsd.port.pre.mk>
 
-SUB_FILES=	pkg-message
+.if ${PORT_OPTIONS:MGNOME}
+PKGNAMESUFFIX+=	-gnome
+GCONF_SCHEMAS=	ffmpegthumbnailer.schemas
+.endif
+
+MAN1=		ffmpegthumbnailer.1
 
 post-install:
 	cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} install-pkgconfigDATA
-	${MKDIR} ${DATADIR}
-	${INSTALL_SCRIPT} ${FILESDIR}/bind-nautilus.sh ${DATADIR}
-	@${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.mk>
+.if ${PORT_OPTIONS:MGNOME}
+	${INSTALL_DATA} ${FILESDIR}/${GCONF_SCHEMAS} ${LOCALBASE}/etc/gconf/schemas
+	@${SETENV} GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
+		gconftool-2 --makefile-install-rule ${LOCALBASE}/etc/gconf/schemas/${GCONF_SCHEMAS} \
+		> /dev/null
+.endif
+.include <bsd.port.post.mk>
diff --git a/multimedia/ffmpegthumbnailer/distinfo b/multimedia/ffmpegthumbnailer/distinfo
index 778322d..9deff7f 100644
--- a/multimedia/ffmpegthumbnailer/distinfo
+++ b/multimedia/ffmpegthumbnailer/distinfo
@@ -1,2 +1,2 @@
-SHA256 (ffmpegthumbnailer-2.0.7.tar.gz) = a71155339d17201a13fc3ebb649b0d00c7ab2d5a8880da071c8157a69c6f612b
-SIZE (ffmpegthumbnailer-2.0.7.tar.gz) = 359864
+SHA256 (ffmpegthumbnailer-2.0.8.tar.gz) = 2c8bbefa838d38ea42fc8ac78258cda36865d974c991624b14cffdb92a3bc68b
+SIZE (ffmpegthumbnailer-2.0.8.tar.gz) = 367186
diff --git a/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh b/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
index 327f5db..e69de29 100644
--- a/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
+++ b/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# Use this script to bind ffmpegthumbnailer to nautilus.
-
-type="application@x-extension-webm video/3gpp video/3gpp2 video@avi \
-video@flv video@mkv video@mp4 video@mpeg video@ogg video@quicktime video@webm \
-video@x-avi video@x-flv video@x-m4v video@x-matroska video@x-mkv video@x-mp4 \
-video@x-mpeg video@x-ms-asf video@x-ms-wmv video@x-ms-wvx video@x-msvideo \
-video@x-msvideo@avi video@x-theora@ogg video@x-theora@ogv video@x-webm"
-
-cmd="/usr/bin/ffmpegthumbnailer -s %s -i %i -o %o -f"
-
-for i in $type; do
-gconftool-2 -s "/desktop/gnome/thumbnailers/$i/command" -t string "$cmd"
-gconftool-2 -s "/desktop/gnome/thumbnailers/$i/enable" -t boolean "true"
-done
diff --git a/multimedia/ffmpegthumbnailer/files/pkg-message.in b/multimedia/ffmpegthumbnailer/files/pkg-message.in
index bcf6cc1..e69de29 100644
--- a/multimedia/ffmpegthumbnailer/files/pkg-message.in
+++ b/multimedia/ffmpegthumbnailer/files/pkg-message.in
@@ -1,2 +0,0 @@
-Gnome users may bind ffmpegthumbnailer to nautilus using:
-%%DATADIR%%/bind-nautilus.sh.
diff --git a/multimedia/ffmpegthumbnailer/pkg-plist b/multimedia/ffmpegthumbnailer/pkg-plist
index a4f5145..7f8e8fb 100644
--- a/multimedia/ffmpegthumbnailer/pkg-plist
+++ b/multimedia/ffmpegthumbnailer/pkg-plist
@@ -10,6 +10,4 @@ lib/libffmpegthumbnailer.la
 lib/libffmpegthumbnailer.so
 lib/libffmpegthumbnailer.so.4
 libdata/pkgconfig/libffmpegthumbnailer.pc
-%%DATADIR%%/bind-nautilus.sh
 @dirrm include/libffmpegthumbnailer
-@dirrm %%DATADIR%%


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209240014.q8O0EA9R074814>