Bug 185424 - [patch] graphics/lensfun upgrade & stagedir support
Summary: [patch] graphics/lensfun upgrade & stagedir support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-02 18:30 UTC by Matthieu Volat
Modified: 2014-01-15 05:40 UTC (History)
0 users

See Also:


Attachments
file.diff (1.38 KB, patch)
2014-01-02 18:30 UTC, Matthieu Volat
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Volat 2014-01-02 18:30:00 UTC
lensfun 0.2.8 was released last october, while a minor update regarding code, it add many entries in the lenses db and so would be very appreciated in the ports tree.

Fix: here is a patch to update the version, the main changes are PORTVERSION and using BERLIOS as MASTERSITE with fetch(1) options that allows redirection, the means of retrieving sources having changed a bit. it also add stagedir support.

Patch attached with submission follows:
How-To-Repeat: -
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-01-04 05:44:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danfe

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2014-01-15 05:36:25 UTC
Author: danfe
Date: Wed Jan 15 05:36:17 2014
New Revision: 339754
URL: http://svnweb.freebsd.org/changeset/ports/339754
QAT: https://qat.redports.org/buildarchive/r339754/

Log:
  - Update to version 0.2.8, another minor maintenance release, which brings
    build system fixes and includes many new lens profiles (as always)
  - Set MASTER_SITES back to BERLIOS; SF/lensfun.berlios does not provide
    distfile for v0.2.8 (carries 13 distfiles; 0.2.2b -> 0.2.7)
  - Convert USE_GMAKE, modernize LIB_DEPENDS, sort knobs, stagify while here
  
  PR:		ports/185424
  Submitted by:	Matthieu Volat

Modified:
  head/graphics/lensfun/Makefile
  head/graphics/lensfun/distinfo
  head/graphics/lensfun/pkg-plist

Modified: head/graphics/lensfun/Makefile
==============================================================================
--- head/graphics/lensfun/Makefile	Wed Jan 15 05:31:35 2014	(r339753)
+++ head/graphics/lensfun/Makefile	Wed Jan 15 05:36:17 2014	(r339754)
@@ -2,31 +2,29 @@
 # $FreeBSD$
 
 PORTNAME=	lensfun
-PORTVERSION=	0.2.7
+PORTVERSION=	0.2.8
 CATEGORIES=	graphics
-MASTER_SITES=	SF/lensfun.berlios
+MASTER_SITES=	BERLIOS
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Library for fixing lens geometry distortions
 
 LICENSE=	LGPL3
 
-LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png
+LIB_DEPENDS=	libpng15.so:${PORTSDIR}/graphics/png
 
-USES=		pkgconfig
+USES=		gmake pkgconfig
 USE_BZIP2=	yes
-USE_GMAKE=	yes
 USE_GNOME=	glib20
 USE_LDCONFIG=	yes
 USE_PYTHON_BUILD=	yes
 
-MAKEFILE=	GNUmakefile
-LIBVERSION=	2
-
 HAS_CONFIGURE=	yes
 CONFIGURE_ENV=	LD="${CXX}" AR="${AR}"
 CONFIGURE_ARGS=	--prefix=${PREFIX} --target=${TARGET} --vectorization=SSE
 MAKE_ARGS=	V=1	# we want to know what's going on during the build
+MAKEFILE=	GNUmakefile
+LIBVERSION=	2
 
 PLIST_SUB+=	LIBVERSION=${LIBVERSION}
 
@@ -36,13 +34,12 @@ post-patch: .SILENT
 	${REINPLACE_CMD} -e \
 		's|CONF_LIBDIR)pkgconfig|CONF_LIBDIR)../libdata/pkgconfig|' \
 			${WRKSRC}/build/tibs/compiler/pkgconfig.mak
-	${REINPLACE_CMD} -e '/-s -O3/d' -e '/LDFLAGS\.r/s|-s|${STRIP}|' \
+	${REINPLACE_CMD} -e '/-s -O3/d' \
 		${WRKSRC}/build/tibs/compiler/gcc.mak
 	${REINPLACE_CMD} -e '/GROUPS/s| DOCS||' ${WRKSRC}/build/tibs/rules.mak
 
-NO_STAGE=	yes
 post-install:
 	${LN} -sf lib${PORTNAME}.so \
-		${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
+		${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.${LIBVERSION}
 
 .include <bsd.port.mk>

Modified: head/graphics/lensfun/distinfo
==============================================================================
--- head/graphics/lensfun/distinfo	Wed Jan 15 05:31:35 2014	(r339753)
+++ head/graphics/lensfun/distinfo	Wed Jan 15 05:36:17 2014	(r339754)
@@ -1,2 +1,2 @@
-SHA256 (lensfun-0.2.7.tar.bz2) = 3ddf0747bd6af1ec7d722f8c45dafdd8adfb96c081492b216c14d89f82806477
-SIZE (lensfun-0.2.7.tar.bz2) = 552960
+SHA256 (lensfun-0.2.8.tar.bz2) = f88f97fbc78259a2b2edddef295caf50770901107c8469e54bb5e9699faa1a48
+SIZE (lensfun-0.2.8.tar.bz2) = 628913

Modified: head/graphics/lensfun/pkg-plist
==============================================================================
--- head/graphics/lensfun/pkg-plist	Wed Jan 15 05:31:35 2014	(r339753)
+++ head/graphics/lensfun/pkg-plist	Wed Jan 15 05:36:17 2014	(r339754)
@@ -14,14 +14,18 @@ libdata/pkgconfig/lensfun.pc
 %%DATADIR%%/compact-panasonic.xml
 %%DATADIR%%/compact-pentax.xml
 %%DATADIR%%/compact-ricoh.xml
+%%DATADIR%%/compact-samsung.xml
 %%DATADIR%%/compact-sigma.xml
 %%DATADIR%%/compact-sony.xml
 %%DATADIR%%/generic.xml
 %%DATADIR%%/mil-canon.xml
+%%DATADIR%%/mil-fujifilm.xml
 %%DATADIR%%/mil-nikon.xml
 %%DATADIR%%/mil-olympus.xml
 %%DATADIR%%/mil-panasonic.xml
 %%DATADIR%%/mil-samsung.xml
+%%DATADIR%%/mil-samyang.xml
+%%DATADIR%%/mil-sigma.xml
 %%DATADIR%%/mil-sony.xml
 %%DATADIR%%/rf-leica.xml
 %%DATADIR%%/slr-canon.xml
@@ -34,8 +38,10 @@ libdata/pkgconfig/lensfun.pc
 %%DATADIR%%/slr-panasonic.xml
 %%DATADIR%%/slr-pentax.xml
 %%DATADIR%%/slr-samsung.xml
+%%DATADIR%%/slr-samyang.xml
 %%DATADIR%%/slr-schneider.xml
 %%DATADIR%%/slr-sigma.xml
+%%DATADIR%%/slr-soligor.xml
 %%DATADIR%%/slr-sony.xml
 %%DATADIR%%/slr-tamron.xml
 %%DATADIR%%/slr-tokina.xml
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2014-01-15 05:38:31 UTC
State Changed
From-To: open->closed

Port was updated (r339754), thanks for your submission!