Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 May 2013 02:20:42 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/178888: [MAINTAINER] graphics/xsane: update to 0.999
Message-ID:  <20130524002043.E4A13E46@hub.freebsd.org>
Resent-Message-ID: <201305240030.r4O0U0rE001189@freefall.freebsd.org>

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

>Number:         178888
>Category:       ports
>Synopsis:       [MAINTAINER] graphics/xsane: update to 0.999
>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:   Fri May 24 00: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: Tue Jan 29 15:02:50 EST 2013
>Description:
- Update to 0.999
- Trim master sites
- Add license
- Add desktop dependency
- Add dependencies for print/freetype2 graphics/lcms gdkpixbuf2
- Trim dependency for graphics/gimp-app
- Fix docs
- Makefile tweaks
- Trim pkg-message
- Trim pkg-plist, no more docs

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

Build log

https://redports.org/buildarchive/20130523235700-50403/

>Fix:

--- xsane-0.999.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/xsane/Makefile ./Makefile
--- /usr/ports/graphics/xsane/Makefile	2013-04-26 16:36:27.000000000 +0200
+++ ./Makefile	2013-05-24 01:46:39.000000000 +0200
@@ -2,29 +2,34 @@
 # $FreeBSD: head/graphics/xsane/Makefile 316464 2013-04-24 18:10:30Z ak $
 
 PORTNAME=	xsane
-PORTVERSION=	0.998
-PORTREVISION=	3
+PORTVERSION=	0.999
 CATEGORIES=	graphics
-MASTER_SITES=	http://www.xsane.org/download/ \
-		http://gd.tuwien.ac.at/hci/sane/xsane/ \
-		ftp://ftp.mostang.com/pub/sane/xsane/
+MASTER_SITES=	http://www.xsane.org/download/
 
 MAINTAINER=	nemysis@gmx.ch
 COMMENT=	Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
 
+LICENSE=	GPLv2
+
 LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
 		png15:${PORTSDIR}/graphics/png \
-		tiff:${PORTSDIR}/graphics/tiff
+		tiff:${PORTSDIR}/graphics/tiff \
+		freetype:${PORTSDIR}/print/freetype2 \
+		lcms.1:${PORTSDIR}/graphics/lcms
 BUILD_DEPENDS=	scanimage:${PORTSDIR}/graphics/sane-backends
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-USE_GMAKE=	yes
+USES=		desktop-file-utils
+USE_GNOME=	gtk20 gdkpixbuf2
 GNU_CONFIGURE=	yes
-USE_GNOME=	gtk20
+USE_GMAKE=	yes
+
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-MAN1=		xsane.1
+MAN1=		${PORTNAME}.1
+
+PORTDOCS=	*.html *.jpg
 
 OPTIONS_DEFINE=	GIMP NLS
 GIMP_DESC=	GIMP plugin support
@@ -42,17 +47,25 @@
 
 .if ${PORT_OPTIONS:MGIMP}
 SUB_FILES+=	pkg-message
-LIB_DEPENDS+=	gimp:${PORTSDIR}/graphics/gimp-app
+RUN_DEPENDS+=	${LOCALBASE}/bin/gimp:${PORTSDIR}/graphics/gimp-app
 CONFIGURE_ARGS+=--enable-gimp2
 .else
 CONFIGURE_ARGS+=--disable-gimp
 .endif
 
-pre-patch:
-	@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \
-		-i "" -e 's|\$$(DESTDIR)\$$(sbindir)||g'
+post-patch:
+	@${REINPLACE_CMD} -e 's| $$(DESTDIR)$$(sbindir)||' \
+		-e 's|$$(DESTDIR)$$(xsanedocdir)||' ${WRKSRC}/src/Makefile.in
+	@${REINPLACE_CMD} -e 's|@POSUB@ doc|@POSUB@|' ${WRKSRC}/Makefile.in
 
 post-install:
+	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.man ${MAN1PREFIX}/man/man1/${PORTNAME}.1
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
+.endif
+
 .if ${PORT_OPTIONS:MGIMP}
 	@${ECHO_CMD}
 	@${CAT} ${PKGMESSAGE}
diff -ruN --exclude=CVS /usr/ports/graphics/xsane/distinfo ./distinfo
--- /usr/ports/graphics/xsane/distinfo	2013-01-14 17:57:03.000000000 +0100
+++ ./distinfo	2013-05-23 20:09:56.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (xsane-0.998.tar.gz) = a32e2f8057782a29619f082dcf6b5f944bf12abe3d4121c516f7c9589064c26e
-SIZE (xsane-0.998.tar.gz) = 2950560
+SHA256 (xsane-0.999.tar.gz) = 5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b
+SIZE (xsane-0.999.tar.gz) = 2950621
diff -ruN --exclude=CVS /usr/ports/graphics/xsane/files/pkg-message.in ./files/pkg-message.in
--- /usr/ports/graphics/xsane/files/pkg-message.in	2013-02-04 17:00:44.000000000 +0100
+++ ./files/pkg-message.in	2013-05-24 00:52:24.000000000 +0200
@@ -7,7 +7,7 @@
     ln -sf %%LOCALBASE%%/bin/xsane ~/.gimp-*/plug-ins/xsane
 
 Then run the GIMP, and a new "XSane" menu item should appear in the
-"File->Acquire" menu. Use this to access your scanner.
+"File -> Acquire" menu. Use this to access your scanner.
 
 Have fun!
 
diff -ruN --exclude=CVS /usr/ports/graphics/xsane/pkg-plist ./pkg-plist
--- /usr/ports/graphics/xsane/pkg-plist	2013-01-14 17:57:03.000000000 +0100
+++ ./pkg-plist	2013-05-23 23:50:02.000000000 +0200
@@ -1,4 +1,5 @@
 bin/xsane
+share/applications/xsane.desktop
 %%NLS%%share/locale/ca/LC_MESSAGES/xsane.mo
 %%NLS%%share/locale/cs/LC_MESSAGES/xsane.mo
 %%NLS%%share/locale/da/LC_MESSAGES/xsane.mo
@@ -24,151 +25,10 @@
 %%NLS%%share/locale/vi/LC_MESSAGES/xsane.mo
 %%NLS%%share/locale/zh/LC_MESSAGES/xsane.mo
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/xsane.mo
-share/applications/xsane.desktop
 share/pixmaps/xsane.xpm
 share/sane/xsane/Mustek-logo.xpm
 share/sane/xsane/Plustek-logo.xpm
 share/sane/xsane/UMAX-logo.xpm
-share/sane/xsane/doc/sane-backends-doc.html
-share/sane/xsane/doc/sane-pnm-doc.html
-share/sane/xsane/doc/sane-problems-doc.html
-share/sane/xsane/doc/sane-scantips-doc.html
-share/sane/xsane/doc/sane-xsane-advanced-doc.html
-share/sane/xsane/doc/sane-xsane-batch-scan-doc.html
-share/sane/xsane/doc/sane-xsane-color-correction-doc.html
-share/sane/xsane/doc/sane-xsane-color-management-doc.html
-share/sane/xsane/doc/sane-xsane-copy-doc.html
-share/sane/xsane/doc/sane-xsane-doc.html
-share/sane/xsane/doc/sane-xsane-empty-doc.html
-share/sane/xsane/doc/sane-xsane-fax-doc.html
-share/sane/xsane/doc/sane-xsane-gimp-doc.html
-share/sane/xsane/doc/sane-xsane-histogram-doc.html
-share/sane/xsane/doc/sane-xsane-medium-definition-doc.html
-share/sane/xsane/doc/sane-xsane-preview-doc.html
-share/sane/xsane/doc/sane-xsane-save-doc.html
-share/sane/xsane/doc/sane-xsane-setup-color-management-doc.html
-share/sane/xsane/doc/sane-xsane-setup-copy-doc.html
-share/sane/xsane/doc/sane-xsane-setup-display-doc.html
-share/sane/xsane/doc/sane-xsane-setup-enhancement-doc.html
-share/sane/xsane/doc/sane-xsane-setup-fax-doc.html
-share/sane/xsane/doc/sane-xsane-setup-save-doc.html
-share/sane/xsane/doc/sane-xsane-standard-doc.html
-share/sane/xsane/doc/sane-xsane-viewer-doc.html
-share/sane/xsane/doc/xsane-advanced.jpg
-share/sane/xsane/doc/xsane-aspect-ratio.jpg
-share/sane/xsane/doc/xsane-autoenhance.jpg
-share/sane/xsane/doc/xsane-autoraise_scanarea.jpg
-share/sane/xsane/doc/xsane-autoselect.jpg
-share/sane/xsane/doc/xsane-batch-scan-add.jpg
-share/sane/xsane/doc/xsane-batch-scan-delete.jpg
-share/sane/xsane/doc/xsane-batch-scan.jpg
-share/sane/xsane/doc/xsane-blur.jpg
-share/sane/xsane/doc/xsane-brightness.jpg
-share/sane/xsane/doc/xsane-clone.jpg
-share/sane/xsane/doc/xsane-cms-function.jpg
-share/sane/xsane/doc/xsane-color-correction-rgb-default.jpg
-share/sane/xsane/doc/xsane-color-management-main-window.jpg
-share/sane/xsane/doc/xsane-colormode.jpg
-share/sane/xsane/doc/xsane-contrast.jpg
-share/sane/xsane/doc/xsane-copy.jpg
-share/sane/xsane/doc/xsane-default.jpg
-share/sane/xsane/doc/xsane-delete-preview-cache.jpg
-share/sane/xsane/doc/xsane-despeckle.jpg
-share/sane/xsane/doc/xsane-disk.jpg
-share/sane/xsane/doc/xsane-edit-medium.jpg
-share/sane/xsane/doc/xsane-enable-color-management.jpg
-share/sane/xsane/doc/xsane-fax-project.jpg
-share/sane/xsane/doc/xsane-fax.jpg
-share/sane/xsane/doc/xsane-gamma.jpg
-share/sane/xsane/doc/xsane-gimp.jpg
-share/sane/xsane/doc/xsane-histogram.jpg
-share/sane/xsane/doc/xsane-logo.jpg
-share/sane/xsane/doc/xsane-medium.jpg
-share/sane/xsane/doc/xsane-medium-add.jpg
-share/sane/xsane/doc/xsane-mirror-x.jpg
-share/sane/xsane/doc/xsane-mirror-y.jpg
-share/sane/xsane/doc/xsane-negative.jpg
-share/sane/xsane/doc/xsane-new.jpg
-share/sane/xsane/doc/xsane-ocr.jpg
-share/sane/xsane/doc/xsane-open.jpg
-share/sane/xsane/doc/xsane-paper-landscape-bottom-left.jpg
-share/sane/xsane/doc/xsane-paper-landscape-bottom-right.jpg
-share/sane/xsane/doc/xsane-paper-landscape-center.jpg
-share/sane/xsane/doc/xsane-paper-landscape-top-left.jpg
-share/sane/xsane/doc/xsane-paper-landscape-top-right.jpg
-share/sane/xsane/doc/xsane-paper-portrait-bottom-left.jpg
-share/sane/xsane/doc/xsane-paper-portrait-bottom-right.jpg
-share/sane/xsane/doc/xsane-paper-portrait-center.jpg
-share/sane/xsane/doc/xsane-paper-portrait-top-left.jpg
-share/sane/xsane/doc/xsane-paper-portrait-top-right.jpg
-share/sane/xsane/doc/xsane-pipette-black.jpg
-share/sane/xsane/doc/xsane-pipette-gray.jpg
-share/sane/xsane/doc/xsane-pipette-white.jpg
-share/sane/xsane/doc/xsane-preferences.jpg
-share/sane/xsane/doc/xsane-preset-area.jpg
-share/sane/xsane/doc/xsane-preset-area-context-menu.jpg
-share/sane/xsane/doc/xsane-preview.jpg
-share/sane/xsane/doc/xsane-printer.jpg
-share/sane/xsane/doc/xsane-rename.jpg
-share/sane/xsane/doc/xsane-resolution.jpg
-share/sane/xsane/doc/xsane-restore.jpg
-share/sane/xsane/doc/xsane-rgb-default.jpg
-share/sane/xsane/doc/xsane-rgb-values.jpg
-share/sane/xsane/doc/xsane-rotate-180.jpg
-share/sane/xsane/doc/xsane-rotate-270.jpg
-share/sane/xsane/doc/xsane-rotate-90.jpg
-share/sane/xsane/doc/xsane-rotation.jpg
-share/sane/xsane/doc/xsane-save.jpg
-share/sane/xsane/doc/xsane-save2.jpg
-share/sane/xsane/doc/xsane-scale.jpg
-share/sane/xsane/doc/xsane-scansource.jpg
-share/sane/xsane/doc/xsane-setup-copy.jpg
-share/sane/xsane/doc/xsane-setup-display.jpg
-share/sane/xsane/doc/xsane-setup-color-management.jpg
-share/sane/xsane/doc/xsane-setup-enhancement.jpg
-share/sane/xsane/doc/xsane-setup-fax.jpg
-share/sane/xsane/doc/xsane-setup-ocr.jpg
-share/sane/xsane/doc/xsane-setup-save.jpg
-share/sane/xsane/doc/xsane-standard.jpg
-share/sane/xsane/doc/xsane-store.jpg
-share/sane/xsane/doc/xsane-threshold.jpg
-share/sane/xsane/doc/xsane-viewer-window.jpg
-share/sane/xsane/doc/xsane-viewer.jpg
-share/sane/xsane/doc/xsane-visible-area.jpg
-share/sane/xsane/doc/xsane-zoom-in.jpg
-share/sane/xsane/doc/xsane-zoom-not.jpg
-share/sane/xsane/doc/xsane-zoom-out.jpg
-share/sane/xsane/doc/xsane-zoom-undo.jpg
-share/sane/xsane/doc/xsane-zoom.jpg
-share/sane/xsane/doc/sane-xsane-email-doc.html
-share/sane/xsane/doc/xsane-adf-pages.jpg
-share/sane/xsane/doc/sane-xsane-guide-doc.html
-share/sane/xsane/doc/sane-xsane-multipage-doc.html
-share/sane/xsane/doc/sane-xsane-scan-options-doc.html
-share/sane/xsane/doc/sane-xsane-setup-email-doc.html
-share/sane/xsane/doc/sane-xsane-setup-filetype-doc.html
-share/sane/xsane/doc/xsane-color-correction.jpg
-share/sane/xsane/doc/xsane-copy-number.jpg
-share/sane/xsane/doc/xsane-email-project.jpg
-share/sane/xsane/doc/xsane-email.jpg
-share/sane/xsane/doc/xsane-guide-1-decoration.jpg
-share/sane/xsane/doc/xsane-guide-10-scan.jpg
-share/sane/xsane/doc/xsane-guide-2-menu.jpg
-share/sane/xsane/doc/xsane-guide-3-options.jpg
-share/sane/xsane/doc/xsane-guide-4.jpg
-share/sane/xsane/doc/xsane-guide-4a-adf-pages.jpg
-share/sane/xsane/doc/xsane-guide-4b-xsane-mode.jpg
-share/sane/xsane/doc/xsane-guide-5-saving-options.jpg
-share/sane/xsane/doc/xsane-guide-6-scan-options.jpg
-share/sane/xsane/doc/xsane-guide-7-medium-selection.jpg
-share/sane/xsane/doc/xsane-guide-8-resolution.jpg
-share/sane/xsane/doc/xsane-guide-9-color-correction.jpg
-share/sane/xsane/doc/xsane-multipage-project.jpg
-share/sane/xsane/doc/xsane-multipage.jpg
-share/sane/xsane/doc/xsane-setup-email.jpg
-share/sane/xsane/doc/xsane-setup-filetype.jpg
-share/sane/xsane/doc/xsane-step.jpg
-share/sane/xsane/doc/xsane-target.jpg
 share/sane/xsane/sane-epson-logo.xpm
 share/sane/xsane/sane-hp-logo.xpm
 share/sane/xsane/sane-umax-logo.xpm
@@ -179,7 +39,6 @@
 share/sane/xsane/xsane-logo.xpm
 share/sane/xsane/xsane-startimage.pnm
 share/sane/xsane/xsane-style.rc
-@dirrm share/sane/xsane/doc
 @dirrm share/sane/xsane
-@dirrmtry share/applications
 @dirrmtry share/sane
+@dirrmtry share/applications
--- xsane-0.999.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?20130524002043.E4A13E46>