Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2013 03:42:57 +0000 (UTC)
From:      Beech Rintoul <beech@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r314524 - in head/graphics/qvplay: . files
Message-ID:  <201303180342.r2I3gvN0075953@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: beech
Date: Mon Mar 18 03:42:57 2013
New Revision: 314524
URL: http://svnweb.freebsd.org/changeset/ports/314524

Log:
  - Convert to OptionsNG
  - Cleanup port
  
  PR:		ports/177058
  Submitted by:	nemysis <nemysis@gmx.ch>

Deleted:
  head/graphics/qvplay/files/
  head/graphics/qvplay/pkg-plist
Modified:
  head/graphics/qvplay/Makefile   (contents, props changed)
  head/graphics/qvplay/pkg-descr   (contents, props changed)

Modified: head/graphics/qvplay/Makefile
==============================================================================
--- head/graphics/qvplay/Makefile	Mon Mar 18 03:08:45 2013	(r314523)
+++ head/graphics/qvplay/Makefile	Mon Mar 18 03:42:57 2013	(r314524)
@@ -1,12 +1,9 @@
-# New ports collection makefile for:	qvplay
-# Date created:		2 May 1997
-# Whom:			Jun-ichiro itojun Itoh <itojun@itojun.org>
-#
+# Created by: Jun-ichiro itojun Itoh <itojun@itojun.org>
 # $FreeBSD$
-#
 
 PORTNAME=	qvplay
 PORTVERSION=	0.95
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.asahi-net.or.jp/~xg2k-hys/
 
@@ -17,25 +14,34 @@ WRKSRC=		${WRKDIR}/QVplay095/obj/FreeBSD
 
 GNU_CONFIGURE=	yes
 
-MAN1=		qvplay.1 qvrec.1 qvalldel.1
+PLIST_FILES=	bin/qvalldel \
+		bin/qvplay \
+		bin/qvrec
 
-MYPORTDOCS=	FAQ.txt HISTORY PROTOCOL.txt PROTOCOL.eng \
-		README README.eng README.FreeBSD
-SUB_FILES=	pkg-message
+MAN1=		qvalldel.1 qvplay.1 qvrec.1
 
-pre-patch:
+PORTDOCS=	FAQ.txt HISTORY PROTOCOL.eng PROTOCOL.txt \
+		README README.FreeBSD README.eng
+
+.include <bsd.port.options.mk>
+
+post-patch:
 	@${MKDIR} ${WRKSRC}
+	@${REINPLACE_CMD} \
+		-e 's|/usr/local/bin|$${PREFIX}/bin|' \
+		-e 's|/usr/local/man/man1|$${PREFIX}/man/man1|' \
+		-e 's|$$(INSTALL_PROGRAM) -o root -g bin -m 444 $$(MAN1) $$(mandir)/$$(MAN1)|$$(INSTALL_DATA) $$(MAN1) $$(mandir)/$$(MAN1)|' \
+		-e 's|$$(INSTALL_PROGRAM) -o root -g bin -m 444 $$(MAN2) $$(mandir)/$$(MAN2)|$$(INSTALL_DATA) $$(MAN2) $$(mandir)/$$(MAN2)|' \
+		-e 's|$$(INSTALL_PROGRAM) -o root -g bin -m 444 $$(MAN3) $$(mandir)/$$(MAN3)|$$(INSTALL_DATA) $$(MAN3) $$(mandir)/$$(MAN3)|' \
+			${WRKSRC}/../../src/Makefile.in
 
 pre-configure:
-	@( cd ${WRKDIR}/QVplay095; ./setup FreeBSD )
+	@(cd ${WRKDIR}/QVplay095; ./setup FreeBSD)
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for file in ${MYPORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/../../${file} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/../../|} ${DOCSDIR}
 .endif
-	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>

Modified: head/graphics/qvplay/pkg-descr
==============================================================================
--- head/graphics/qvplay/pkg-descr	Mon Mar 18 03:08:45 2013	(r314523)
+++ head/graphics/qvplay/pkg-descr	Mon Mar 18 03:42:57 2013	(r314524)
@@ -1,13 +1,13 @@
 qvplay
-	Downloading tool for Casio QV series digital camera.
-	Known to work with:
-	- Casio QV-10/10A/11/100
-	- Casio QV-30/300
-	(The word "plus" in the US product name "Casio QV-10*plus*"
-	means bundled kit, so you need not to worry about the word "plus")
+        Downloading tool for Casio QV series digital camera.
+        Known to work with:
+        - Casio QV-10/10A/11/100
+        - Casio QV-30/300
+        (The word "plus" in the US product name "Casio QV-10*plus*"
+        means bundled kit, so you need not to worry about the word "plus")
 
 AUTHOR CONTACT
-	Ken-ichi Hayashi <xg2k-hys@asahi-net.or.jp>
-	Jun-ichiro itojun Itoh <itojun@itojun.org>
+        Ken-ichi Hayashi <xg2k-hys@asahi-net.or.jp>
+        Jun-ichiro itojun Itoh <itojun@itojun.org>
 
 WWW: http://www.asahi-net.or.jp/~xg2k-hys/index-e.html



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