Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2013 18:52:43 +0000 (UTC)
From:      Lars Engels <lme@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329099 - in head/x11/ipager: . files
Message-ID:  <201310021852.r92IqhAo022063@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lme
Date: Wed Oct  2 18:52:43 2013
New Revision: 329099
URL: http://svnweb.freebsd.org/changeset/ports/329099

Log:
  - Change to my @FreeBSD.org address
  - Stagify
  - Add LICENSE
  - Fix build with libc++ on 10.0
  - Add a pkg-plist
  - Move pkg message to pkg-message
  - Remove cruft

Added:
  head/x11/ipager/files/
  head/x11/ipager/files/patch-ipager.cpp   (contents, props changed)
  head/x11/ipager/files/pkg-message.in   (contents, props changed)
  head/x11/ipager/pkg-plist   (contents, props changed)
Modified:
  head/x11/ipager/Makefile   (contents, props changed)

Modified: head/x11/ipager/Makefile
==============================================================================
--- head/x11/ipager/Makefile	Wed Oct  2 18:51:12 2013	(r329098)
+++ head/x11/ipager/Makefile	Wed Oct  2 18:52:43 2013	(r329099)
@@ -6,24 +6,18 @@ PORTVERSION=	1.1.0
 PORTREVISION=	8
 CATEGORIES=	x11
 MASTER_SITES=	http://useperl.ru/ipager/src/
-DISTNAME=	ipager-${PORTVERSION}
 
-MAINTAINER=	lars.engels@0x20.net
+MAINTAINER=	lme@FreeBSD.org
 COMMENT=	X11 pager program
 
+LICENSE=	MIT
+
 USE_SCONS=	yes
 USE_EFL=	imlib2
 
-PLIST_FILES=	bin/ipager \
-		%%DATADIR%%/themes/atlantis.conf \
-		%%DATADIR%%/themes/dark_red.conf \
-		%%DATADIR%%/themes/green.conf \
-		%%DATADIR%%/themes/industrial.conf \
-		%%DATADIR%%/themes/light_gray.conf \
-		%%DATADIR%%/themes/light_orange.conf
-PLIST_DIRS=	%%DATADIR%%/themes %%DATADIR%%
-PORTDOCS=	ChangeLog LICENSE README ToDo
+SUB_FILES=	pkg-message
 
+DOCS=		ChangeLog README ToDo
 THEMES=		atlantis.conf \
 		dark_red.conf \
 		green.conf \
@@ -31,38 +25,25 @@ THEMES=		atlantis.conf \
 		light_gray.conf \
 		light_orange.conf
 
-NO_STAGE=	yes
-post-patch:
-		@${REINPLACE_CMD} -e '35,36d;89d;92,94d' \
-			${WRKSRC}/SConstruct
+SCONS_ARGS+=	${DESTDIRNAME}=${STAGEDIR}
 
-do-build:
-	   @cd ${WRKSRC} && ${SCONS_BIN}
+post-patch:
+	@${REINPLACE_CMD} -e '35,36d;89d;92,94d' \
+		${WRKSRC}/SConstruct
 
-do-install:
-	   @cd ${WRKSRC} && ${SCONS_BIN} ${SCONS_INSTALL_TARGET}
+pre-build:
+	# scons is too stupid to create DESTDIR by itself
+	@${MKDIR} ${WRKDIR}/stage
 
 post-install:
-.if !defined (NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${DOCS}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
-	${MKDIR} ${DATADIR}/themes
+	${MKDIR} ${STAGEDIR}${DATADIR}/themes
 .for t in ${THEMES}
-	${INSTALL_DATA} ${WRKSRC}/themes/${t} ${DATADIR}/themes
+	${INSTALL_DATA} ${WRKSRC}/themes/${t} ${STAGEDIR}${DATADIR}/themes
 .endfor
-	${STRIP_CMD} ${LOCALBASE}/bin/ipager
-
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "     Some additional themes (config files) you may find"
-	@${ECHO_MSG} "     in the ${DATADIR}/themes directory."
-	@${ECHO_MSG} "     Just copy any of them instead of your ~./ipager/ipager.conf"
-	@${ECHO_MSG} "     config file or you can define other config file via '-c'"
-	@${ECHO_MSG} "     command line option"
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} ""
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ipager
 
 .include <bsd.port.mk>

Added: head/x11/ipager/files/patch-ipager.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/ipager/files/patch-ipager.cpp	Wed Oct  2 18:52:43 2013	(r329099)
@@ -0,0 +1,10 @@
+--- ./ipager.cpp.orig	2013-10-02 17:32:19.537257981 +0200
++++ ./ipager.cpp	2013-10-02 17:32:46.295254941 +0200
+@@ -31,6 +31,7 @@
+ 
+ #include <iostream>
+ #include <string>
++#include <unistd.h>
+ using namespace std;
+ 
+ #include "pager.h"

Added: head/x11/ipager/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/ipager/files/pkg-message.in	Wed Oct  2 18:52:43 2013	(r329099)
@@ -0,0 +1,10 @@
+
+********************************************************************************
+
+Some additional themes (config files) you may find in the 
+${DATADIR}/themes directory. 
+Just copy any of them instead of your ~./ipager/ipager.conf config
+file or you can define other config file via '-c'" command line option.
+
+********************************************************************************
+

Added: head/x11/ipager/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11/ipager/pkg-plist	Wed Oct  2 18:52:43 2013	(r329099)
@@ -0,0 +1,13 @@
+bin/ipager
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/ToDo
+%%DATADIR%%/themes/atlantis.conf
+%%DATADIR%%/themes/dark_red.conf
+%%DATADIR%%/themes/green.conf
+%%DATADIR%%/themes/industrial.conf
+%%DATADIR%%/themes/light_gray.conf
+%%DATADIR%%/themes/light_orange.conf
+@dirrmtry %%DATADIR%%/themes
+@dirrmtry %%DATADIR%%
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%



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