Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 01:16:00 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340978 - head/editors/mined
Message-ID:  <201401250116.s0P1G0pR033825@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Jan 25 01:15:59 2014
New Revision: 340978
URL: http://svnweb.freebsd.org/changeset/ports/340978
QAT: https://qat.redports.org/buildarchive/r340978/

Log:
  Support stage

Modified:
  head/editors/mined/Makefile
  head/editors/mined/pkg-plist

Modified: head/editors/mined/Makefile
==============================================================================
--- head/editors/mined/Makefile	Sat Jan 25 01:04:40 2014	(r340977)
+++ head/editors/mined/Makefile	Sat Jan 25 01:15:59 2014	(r340978)
@@ -9,29 +9,23 @@ MASTER_SITES=	http://towo.net/mined/down
 MAINTAINER=	thierry@FreeBSD.org
 COMMENT=	Text mode editor with Unicode support
 
+OPTIONS_DEFINE=	DOCS
+
 LICENSE=	GPLv3
-LICENSE_FILE=	${WRKSRC}/LICENCE.GPL
 
-.if defined(NOPORTDOCS)
-ALL_TARGET=	mined manual
-.else
 PORTDOCS=	*
-.endif
 
-USE_GMAKE=	yes
+USES=		gmake
 MAKEFILE=	makefile
 REINPLACE_ARGS=	-i ""
 MAKE_ARGS=	GMAKE=${MAKE_CMD} CC=${CC:T} OPT="${CFLAGS}"
 INSTALL_TARGET=	localinstall
 MAKE_JOBS_UNSAFE=	yes
 
-MAN1=		mined.1 minmacs.1 mpico.1 mstar.1 umined.1 uterm.1 xmined.1
-
 PRFX2FIX=	src/makefile.bsd usrshare/conf_user/xinitrc.mined	\
 		src/minedaux.c man/mined.1 src/mkinclud.mak		\
 		src/makefile.gcc
 
-NO_STAGE=	yes
 pre-configure:
 .for FILE in ${PRFX2FIX}
 	${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/${FILE}
@@ -45,16 +39,12 @@ pre-build:
 	fi)
 
 post-install:
-	${MKDIR} ${DESKTOPDIR}
 	${INSTALL_DATA} ${WRKSRC}/usrshare/setup_install/mined.desktop	\
-		${DESKTOPDIR}
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DOCSDIR}
-	cd ${WRKSRC}/usrshare/package_doc && ${INSTALL_DATA} * ${DOCSDIR}
-	@${RM} ${DOCSDIR}/CHANGES ${DOCSDIR}/LICENCE.GPL
-.endif
-#	@${RM} ${DATADIR}/bin/*.bat
-	@${RM} -rf ${DATADIR}/doc_user ${DATADIR}/package_doc
+		${STAGEDIR}${DESKTOPDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/usrshare/package_doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR}
+	@${RM} ${STAGEDIR}${DOCSDIR}/CHANGES ${STAGEDIR}${DOCSDIR}/LICENCE.GPL
+	@${RM} -rf ${STAGEDIR}${DATADIR}/doc_user ${STAGEDIR}${DATADIR}/package_doc
 
 .include <bsd.port.mk>

Modified: head/editors/mined/pkg-plist
==============================================================================
--- head/editors/mined/pkg-plist	Sat Jan 25 01:04:40 2014	(r340977)
+++ head/editors/mined/pkg-plist	Sat Jan 25 01:15:59 2014	(r340978)
@@ -5,6 +5,13 @@ bin/mstar
 bin/umined
 bin/uterm
 bin/xmined
+man/man1/mined.1.gz
+man/man1/minmacs.1.gz
+man/man1/mpico.1.gz
+man/man1/mstar.1.gz
+man/man1/umined.1.gz
+man/man1/uterm.1.gz
+man/man1/xmined.1.gz
 share/applications/mined.desktop
 %%DATADIR%%/bin/mterm
 %%DATADIR%%/bin/umined



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