svn commit: r354319 - in head/japanese/today: . files

Pawel Pekala pawel at FreeBSD.org
Sat May 17 13:09:54 UTC 2014


Author: pawel
Date: Sat May 17 13:09:53 2014
New Revision: 354319
URL: http://svnweb.freebsd.org/changeset/ports/354319
QAT: https://qat.redports.org/buildarchive/r354319/

Log:
  - Add staging support
  - Convert to new options framework

Modified:
  head/japanese/today/Makefile
  head/japanese/today/files/Makefile

Modified: head/japanese/today/Makefile
==============================================================================
--- head/japanese/today/Makefile	Sat May 17 13:03:03 2014	(r354318)
+++ head/japanese/today/Makefile	Sat May 17 13:09:53 2014	(r354319)
@@ -19,7 +19,8 @@ USES=		lha
 
 MAKEFILE=	${FILESDIR}/Makefile
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS
+
 post-extract:
 	@(cd ${WRKSRC}; lha xiqf utility.lzh src/dayinfo.c )
 	@${ECHO_MSG} "===>  Extracting tbl file for ${DISTNAME}"
@@ -38,9 +39,7 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/*.cnf
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/today.doc ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/today.doc ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/japanese/today/files/Makefile
==============================================================================
--- head/japanese/today/files/Makefile	Sat May 17 13:03:03 2014	(r354318)
+++ head/japanese/today/files/Makefile	Sat May 17 13:09:53 2014	(r354319)
@@ -23,12 +23,12 @@ OBJS_CAL = calendar.o $(OBJSC1)
 all: today calendar dayinfo
 
 install: today calendar dayinfo
-	${BSD_INSTALL_PROGRAM} today ${PREFIX}/bin/today
-	${BSD_INSTALL_PROGRAM} calendar ${PREFIX}/bin/calendar-today
-	${BSD_INSTALL_PROGRAM} dayinfo ${PREFIX}/bin/dayinfo
-	${BSD_INSTALL_DATA} today.cnf ${PREFIX}/etc
-	mkdir -p ${PREFIX}/share/today
-	${BSD_INSTALL_DATA} *.tbl ${PREFIX}/share/today
+	${BSD_INSTALL_PROGRAM} today ${DESTDIR}${PREFIX}/bin/today
+	${BSD_INSTALL_PROGRAM} calendar ${DESTDIR}${PREFIX}/bin/calendar-today
+	${BSD_INSTALL_PROGRAM} dayinfo ${DESTDIR}${PREFIX}/bin/dayinfo
+	${BSD_INSTALL_DATA} today.cnf ${DESTDIR}${PREFIX}/etc
+	mkdir -p ${DESTDIR}${PREFIX}/share/today
+	${BSD_INSTALL_DATA} *.tbl ${DESTDIR}${PREFIX}/share/today
 #	mkdir -p ${PREFIX}/share/doc/ja/today
 #	${BSD_INSTALL_DATA} today.doc ${PREFIX}/share/doc/ja/today
 


More information about the svn-ports-all mailing list