Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2013 23:13:44 +0000 (UTC)
From:      Diane Bruce <db@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338195 - in head/textproc/cwtext: . files
Message-ID:  <201312302313.rBUNDiXK072696@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: db
Date: Mon Dec 30 23:13:43 2013
New Revision: 338195
URL: http://svnweb.freebsd.org/changeset/ports/338195

Log:
  - Enable staging

Added:
  head/textproc/cwtext/files/patch-makefile   (contents, props changed)
Modified:
  head/textproc/cwtext/Makefile   (contents, props changed)

Modified: head/textproc/cwtext/Makefile
==============================================================================
--- head/textproc/cwtext/Makefile	Mon Dec 30 23:06:37 2013	(r338194)
+++ head/textproc/cwtext/Makefile	Mon Dec 30 23:13:43 2013	(r338195)
@@ -14,16 +14,14 @@ USE_GMAKE=	yes
 MAKEFILE=	makefile
 ALL_TARGET=	ALL
 
-NO_STAGE=	yes
+LICENSE=	GPLv2
+
 post-patch:
-	@${REINPLACE_CMD} -e "s,^PREFIX,#PREFIX,g" \
-		-e "s,gcc,${CC} ${CFLAGS},g" \
-		-e "s,install -sc,${INSTALL_PROGRAM},g" ${WRKSRC}/${MAKEFILE}
+	@${REINPLACE_CMD} -e "s,%%STAGEDIR%%,${STAGEDIR},g" \
+		${WRKSRC}/makefile
 
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Added: head/textproc/cwtext/files/patch-makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cwtext/files/patch-makefile	Mon Dec 30 23:13:43 2013	(r338195)
@@ -0,0 +1,18 @@
+--- makefile.orig	2004-12-16 07:15:22.000000000 -0500
++++ makefile	2013-12-30 18:06:28.000000000 -0500
+@@ -1,11 +1,10 @@
+-PREFIX=/usr/local
+-
+ ALL: cwtext cwpcm cwmm
++STAGEDIR=%%STAGEDIR%%
+ 
+ install: ALL
+-	install -sc cwtext ${PREFIX}/bin
+-	install -sc cwpcm ${PREFIX}/bin
+-	install -sc cwmm ${PREFIX}/bin
++	install  -s -o root -g wheel -m 555 cwtext ${STAGEDIR}${PREFIX}/bin
++	install  -s -o root -g wheel -m 555 cwpcm ${STAGEDIR}${PREFIX}/bin
++	install  -s -o root -g wheel -m 555 cwmm ${STAGEDIR}${PREFIX}/bin
+ 
+ cwmm: cwmm.o morse.o
+ 	${CC} ${CFLAGS} -o cwmm $^



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