Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 03:15:57 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        marius@nuenneri.ch
Subject:   ports/176830: [PATCH] graphics/libexif-gtk: update to 0.4.0, OptionsNG, added documentation, NLS, license
Message-ID:  <20130311022118.8C69ED95@hub.freebsd.org>
Resent-Message-ID: <201303110230.r2B2U0se091334@freefall.freebsd.org>

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

>Number:         176830
>Category:       ports
>Synopsis:       [PATCH] graphics/libexif-gtk: update to 0.4.0, OptionsNG, added documentation, NLS, license
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 02:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10
>Description:
- Update to 0.4.0

Removed file(s):
- files/patch-configure.in <-- not more needed

Makefile changed:

Port is now safe with NOPORTDOCS=yes in /etc/make.conf

+LICENSE=	LGPL21
-post-patch: <-- not more needed
+PORTDOCS=	AUTHORS ChangeLog NEWS README
+.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS NLS
+.if ${PORT_OPTIONS:MDOCS}
+.if ${PORT_OPTIONS:MNLS}
+post-install:

Changed and refined:
 pkg-descr
 pkg-plist

Port maintainer (marius@nuenneri.ch) is cc'd.

Generated and tested manually, tested with port test, sent with FreeBSD Port Tools 0.99_6 (mode: update, diff: ports)
>How-To-Repeat:

portlint -A
looks usual.

port test: clean

>Fix:

--- libexif-gtk-0.4.0.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/libexif-gtk/Makefile ./Makefile
--- /usr/ports/graphics/libexif-gtk/Makefile	2013-01-14 17:57:12.000000000 +0100
+++ ./Makefile	2013-03-11 02:59:07.000000000 +0100
@@ -6,14 +6,15 @@
 #
 
 PORTNAME=	libexif-gtk
-PORTVERSION=	0.3.5
-PORTREVISION=	10
+PORTVERSION=	0.4.0
 CATEGORIES=	graphics
 MASTER_SITES=	SF/libexif/${PORTNAME}/${PORTVERSION}
 
 MAINTAINER=	marius@nuenneri.ch
 COMMENT=	GTK+ widgets to display/edit EXIF tags
 
+LICENSE=	LGPL21
+
 LIB_DEPENDS=	exif.12:${PORTSDIR}/graphics/libexif
 
 USE_GNOME=	gnomehack gtk20
@@ -22,8 +23,30 @@
 LDFLAGS+=	-L${LOCALBASE}/lib
 USE_LDCONFIG=	yes
 
-post-patch:
-	@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
-		's|-D.*_DISABLE_DEPRECATED||g'
+PORTDOCS=	AUTHORS ChangeLog NEWS README
+
+OPTIONS_DEFINE=	DOCS NLS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+PLIST_SUB+=	PORTDOCS=""
+.else
+PLIST_SUB+=	PORTDOCS="@comment "
+.endif
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT=	yes
+PLIST_SUB+=	NLS=""
+.else
+CONFIGURE_ARGS+=	--disable-nls
+PLIST_SUB+=	NLS="@comment "
+.endif
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/graphics/libexif-gtk/distinfo ./distinfo
--- /usr/ports/graphics/libexif-gtk/distinfo	2013-01-14 17:57:12.000000000 +0100
+++ ./distinfo	2013-03-11 02:54:33.000000000 +0100
@@ -1,2 +1,2 @@
-SHA256 (libexif-gtk-0.3.5.tar.gz) = d9b58f2f8524520829b19b11c550a3eb97d33d273a8033a41ba7d305c144bff9
-SIZE (libexif-gtk-0.3.5.tar.gz) = 396534
+SHA256 (libexif-gtk-0.4.0.tar.gz) = 4d4ac85dab9f10304f329ab6efd7094eaf88411b76a43b3a32e50edb480fad18
+SIZE (libexif-gtk-0.4.0.tar.gz) = 452303
diff -ruN --exclude=CVS /usr/ports/graphics/libexif-gtk/files/patch-configure.in ./files/patch-configure.in
--- /usr/ports/graphics/libexif-gtk/files/patch-configure.in	2013-01-14 17:57:12.000000000 +0100
+++ ./files/patch-configure.in	1970-01-01 01:00:00.000000000 +0100
@@ -1,20 +0,0 @@
---- configure.in.orig	Tue Oct 19 04:12:58 2004
-+++ configure.in	Thu Mar 30 23:22:23 2006
-@@ -52,7 +52,7 @@
- dnl ---------------------------------------------------------------------------
- CPPFLAGS_save="$CPPFLAGS"
- CPPFLAGS=$LIBEXIF_GTK_CFLAGS
--AC_CHECK_HEADER([exif-mem.h], [
-+PKG_CHECK_MODULES(HAVE_EXIF_0_6_12, libexif >= 0.6.12, [
- 	exif_msg=">= 0.6.12"
- 	AC_DEFINE(HAVE_EXIF_0_6_12,1,[whether we use a version of libexif greater than 0.6.12])],[
- 	exif_msg="< 0.6.12 (think about upgrading)"])
-@@ -73,7 +73,7 @@
- 
- Configuration (${PACKAGE}):
- 
--	Source code location:    $(srcdir)
-+	Source code location:    ${srcdir}
- 	Version:                 ${VERSION}
- 	Compiler:                ${CC}
- 
diff -ruN --exclude=CVS /usr/ports/graphics/libexif-gtk/pkg-descr ./pkg-descr
--- /usr/ports/graphics/libexif-gtk/pkg-descr	2013-01-14 17:57:12.000000000 +0100
+++ ./pkg-descr	2013-03-11 03:01:54.000000000 +0100
@@ -1,3 +1,5 @@
-This library provides GTK+ widgets to display/edit EXIF tags.
+Most digital cameras produce EXIF files, which are JPEG files with extra tags
+that contain information about the image. The EXIF library allows you to parse
+an EXIF file and read the data from those tags.
 
 WWW: http://sourceforge.net/projects/libexif/
diff -ruN --exclude=CVS /usr/ports/graphics/libexif-gtk/pkg-plist ./pkg-plist
--- /usr/ports/graphics/libexif-gtk/pkg-plist	2013-01-14 17:57:12.000000000 +0100
+++ ./pkg-plist	2013-03-11 02:55:49.000000000 +0100
@@ -15,9 +15,16 @@
 lib/libexif-gtk.a
 lib/libexif-gtk.la
 lib/libexif-gtk.so
-lib/libexif-gtk.so.5
+lib/libexif-gtk.so.6
 libdata/pkgconfig/libexif-gtk.pc
-share/locale/es/LC_MESSAGES/libexif-gtk.mo
-share/locale/fr/LC_MESSAGES/libexif-gtk.mo
-share/locale/ru/LC_MESSAGES/libexif-gtk.mo
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%NLS%%share/locale/de/LC_MESSAGES/libexif-gtk-5.mo
+%%NLS%%share/locale/es/LC_MESSAGES/libexif-gtk-5.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/libexif-gtk-5.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/libexif-gtk-5.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/libexif-gtk-5.mo
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
 @dirrm include/libexif-gtk
--- libexif-gtk-0.4.0.patch ends here ---

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



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