Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 11:46:30 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336717 - in head/textproc/unoconv: . files
Message-ID:  <201312171146.rBHBkUft040906@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Tue Dec 17 11:46:29 2013
New Revision: 336717
URL: http://svnweb.freebsd.org/changeset/ports/336717

Log:
  - Change Makefile header
  - Change master sites, icon
  - Change maintainer email to @FreeBSD.org
  - Remove PORTDATA
  - Support STAGEDIR
  - Fix the usage of 'python' to get rid of the implicit lang/python dependency
  - Change pkg-plist, remove DOCS
  
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/textproc/unoconv/Makefile
  head/textproc/unoconv/distinfo   (contents, props changed)
  head/textproc/unoconv/files/unoconv.in   (contents, props changed)
  head/textproc/unoconv/pkg-plist   (contents, props changed)

Modified: head/textproc/unoconv/Makefile
==============================================================================
--- head/textproc/unoconv/Makefile	Tue Dec 17 11:25:11 2013	(r336716)
+++ head/textproc/unoconv/Makefile	Tue Dec 17 11:46:29 2013	(r336717)
@@ -1,12 +1,17 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
 # $FreeBSD$
 
 PORTNAME=	unoconv
 PORTVERSION=	0.6
 CATEGORIES=	textproc python
-MASTER_SITES=	http://dag.wieers.com/home-made/unoconv/
+MASTER_SITES=	http://dag.wieers.com/home-made/${PORTNAME}/ \
+		SF/nemysisfreebsdp/textproc/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.png:icons
 DIST_SUBDIR=	python
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
-MAINTAINER=	nemysis@gmx.ch
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	Convert any document from and to any LibreOffice supported format
 
 LICENSE=	GPLv2
@@ -16,7 +21,7 @@ RUN_DEPENDS=	xsltproc:${PORTSDIR}/textpr
 USE_PYTHON=	yes
 NO_BUILD=	yes
 
-PORTDATA=	 *
+PORTDOCS=	*
 
 DOCSRCDIR1=	${WRKSRC}
 DOC_FILES1=	AUTHORS ChangeLog README.asciidoc WISHLIST
@@ -26,41 +31,30 @@ DOCSDIR2=	${DOCSDIR}/doc
 DOC_FILES2=	errcode.txt filters.txt formats.txt office-installations.txt \
 		selinux.txt unoconv.1.txt
 
-MAN1=		${PORTNAME}.1
-
 SUB_FILES=	${PORTNAME} pkg-message
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
+		${WRKSRC}/${PORTNAME}
 
 do-install:
-# Scripts
-	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
 
-# Executable
-	${MKDIR} ${DATADIR}/tests
-	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DATADIR}/tests/
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
 
-# Data
 .for f in *.odt *.csv
-	@(cd ${WRKSRC}/tests && ${INSTALL_DATA} ${f} ${DATADIR}/tests)
+	@(cd ${WRKSRC}/tests && ${INSTALL_DATA} ${f} ${STAGEDIR}${DATADIR}/tests)
 .endfor
 
-# Pixmaps
-	${INSTALL_DATA} ${WRKSRC}/tests/dag.gif ${PREFIX}/share/pixmaps/${PORTNAME}.gif
-
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
-	${MKDIR} ${DOCSDIR2}
-	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
-	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
-.endif
-
-# pkg-message
-	@${ECHO_CMD}
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_CMD}
+	${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
+	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
+		${STAGEDIR}${MAN1PREFIX}/man/man1/
+
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
 
 .include <bsd.port.mk>

Modified: head/textproc/unoconv/distinfo
==============================================================================
--- head/textproc/unoconv/distinfo	Tue Dec 17 11:25:11 2013	(r336716)
+++ head/textproc/unoconv/distinfo	Tue Dec 17 11:46:29 2013	(r336717)
@@ -1,2 +1,4 @@
 SHA256 (python/unoconv-0.6.tar.gz) = 790e614b8615217ef4588b187f0018b526ec2bb480c6b9b2ffb9b82f48da73d4
 SIZE (python/unoconv-0.6.tar.gz) = 91578
+SHA256 (python/unoconv.png) = 459f7dbc60e34ccce5c9d46a7317be02dd3c8275e7f7588b7b3885c67b6738eb
+SIZE (python/unoconv.png) = 744

Modified: head/textproc/unoconv/files/unoconv.in
==============================================================================
--- head/textproc/unoconv/files/unoconv.in	Tue Dec 17 11:25:11 2013	(r336716)
+++ head/textproc/unoconv/files/unoconv.in	Tue Dec 17 11:46:29 2013	(r336717)
@@ -4,4 +4,4 @@
 #
 
 cd "%%DATADIR%%"
-./unoconv "$@"
+exec ./unoconv "$@"

Modified: head/textproc/unoconv/pkg-plist
==============================================================================
--- head/textproc/unoconv/pkg-plist	Tue Dec 17 11:25:11 2013	(r336716)
+++ head/textproc/unoconv/pkg-plist	Tue Dec 17 11:46:29 2013	(r336717)
@@ -1,14 +1,8 @@
 bin/unoconv
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/README.asciidoc
-%%PORTDOCS%%%%DOCSDIR%%/WISHLIST
-%%PORTDOCS%%%%DOCSDIR%%/doc/errcode.txt
-%%PORTDOCS%%%%DOCSDIR%%/doc/filters.txt
-%%PORTDOCS%%%%DOCSDIR%%/doc/formats.txt
-%%PORTDOCS%%%%DOCSDIR%%/doc/office-installations.txt
-%%PORTDOCS%%%%DOCSDIR%%/doc/selinux.txt
-%%PORTDOCS%%%%DOCSDIR%%/doc/unoconv.1.txt
-share/pixmaps/unoconv.gif
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/doc
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+man/man1/unoconv.1.gz
+share/pixmaps/unoconv.png
+%%DATADIR%%/tests/document-example.odt
+%%DATADIR%%/tests/spreadsheet-example.csv
+%%DATADIR%%/unoconv
+@dirrm %%DATADIR%%/tests
+@dirrm %%DATADIR%%



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