svn commit: r324159 - in head/textproc/topic: . files

Alexey Dokuchaev danfe at FreeBSD.org
Fri Aug 2 10:33:27 UTC 2013


Author: danfe
Date: Fri Aug  2 10:33:26 2013
New Revision: 324159
URL: http://svnweb.freebsd.org/changeset/ports/324159

Log:
  - Try to unbreak parallel (-jX) builds by sanitizing makefile
  - Cleanup Makefile: kill defunct WWW and comment MASTER_SITES

Added:
  head/textproc/topic/files/
  head/textproc/topic/files/patch-Makefile   (contents, props changed)
Modified:
  head/textproc/topic/Makefile
  head/textproc/topic/pkg-descr

Modified: head/textproc/topic/Makefile
==============================================================================
--- head/textproc/topic/Makefile	Fri Aug  2 10:16:05 2013	(r324158)
+++ head/textproc/topic/Makefile	Fri Aug  2 10:33:26 2013	(r324159)
@@ -3,7 +3,7 @@
 PORTNAME=	topic
 PORTVERSION=	1.02
 CATEGORIES=	textproc
-MASTER_SITES=	http://topcat.hypermart.net/code/
+MASTER_SITES=	# http://topcat.hypermart.net/code/
 
 MAINTAINER=	mike at topcat.hypermart.net
 COMMENT=	Topic markup parser
@@ -11,8 +11,11 @@ COMMENT=	Topic markup parser
 PLIST_FILES=	bin/${PORTNAME}
 MAN1=		${PORTNAME}.1
 
+pre-build:
+	@${RM} ${WRKSRC}/topic.txt
+
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
-	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
 
 .include <bsd.port.mk>

Added: head/textproc/topic/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/topic/files/patch-Makefile	Fri Aug  2 10:33:26 2013	(r324159)
@@ -0,0 +1,26 @@
+--- Makefile.orig	2013-01-01 14:00:00.000000000 +0800
++++ Makefile	2013-08-02 18:27:07.000000000 +0800
+@@ -5,15 +5,17 @@
+ CFLAGS+= -Wall -Werror
+ BUILD=   v1.02
+ 
+-all: prep compile
++all: topic
+ 
+-prep: ./bin2c.c ./syntax.txt ./markup.txt ./license.txt
++bin2c: bin2c.c
+ 	$(CC) $(CFLAGS) ./bin2c.c -o ./bin2c
+-	./bin2c -z ./syntax.txt ./syntax.c
+-	./bin2c -z ./markup.txt ./markup.c
+-	./bin2c -z ./license.txt ./license.c
+ 
+-compile: ./topic.c ./syntax.c ./markup.c ./license.c ./topic.1
++.SUFFIXES: .txt
++
++.txt.c: bin2c
++	./bin2c -z $(.IMPSRC) $(.TARGET)
++
++topic: ./topic.c ./syntax.c ./markup.c ./license.c ./topic.1
+ 	$(CC) $(CFLAGS) -DBUILD="\"$(BUILD)\"" ./topic.c -o ./topic
+ 
+ clean:

Modified: head/textproc/topic/pkg-descr
==============================================================================
--- head/textproc/topic/pkg-descr	Fri Aug  2 10:16:05 2013	(r324158)
+++ head/textproc/topic/pkg-descr	Fri Aug  2 10:33:26 2013	(r324159)
@@ -1,4 +1,2 @@
 TOPIC markup provides a minimal context for plain text databases that
 can be read/modified by most text editors, and easily parsed as well.
-
-WWW: http://topcat.hypermart.net/topic.html


More information about the svn-ports-head mailing list