Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2015 18:53:08 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397201 - head/textproc/smi
Message-ID:  <201509171853.t8HIr89r046906@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Thu Sep 17 18:53:07 2015
New Revision: 397201
URL: https://svnweb.freebsd.org/changeset/ports/397201

Log:
  textproc/smi: respect *FLAGS and fix LICENSE
  
  - Replace vendor Makefile with a virtual one based on bsd.prog.mk to
    avoid too much patching despite simplicity [1]
  - No BSD2CLAUSE license or any mention of it within the distfile [2]
  
  PR:		203137 [1], 203138 [2]
  Approved by:	Chris Hutchinson <portmaster@bsdforge.com> (maintainer)

Modified:
  head/textproc/smi/Makefile   (contents, props changed)

Modified: head/textproc/smi/Makefile
==============================================================================
--- head/textproc/smi/Makefile	Thu Sep 17 18:23:54 2015	(r397200)
+++ head/textproc/smi/Makefile	Thu Sep 17 18:53:07 2015	(r397201)
@@ -3,30 +3,28 @@
 
 PORTNAME=	smi
 PORTVERSION=	1.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc www
 MASTER_SITES=	http://bsdforge.com/projects/source/textproc/${PORTNAME}/
 
 MAINTAINER=	portmaster@bsdforge.com
 COMMENT=	Simple Markdown Interpreter / filter for simplified markup dialect
 
-LICENSE=	MIT BSD2CLAUSE
-LICENSE_COMB=	multi
+LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 PORTDOCS=	README.md
 
 PLIST_FILES=	bin/smi man/man1/smi.1.gz
 
-USES=		tar:xz
+USES=		tar:xz uidfix
+MAKEFILE=	/usr/share/mk/bsd.prog.mk
+MAKE_ENV=	PROG="${PORTNAME}" FILES="${PORTDOCS}" \
+		BINDIR="${PREFIX}/bin" FILESDIR="${DOCSDIR}" \
+		MANDIR="${MANPREFIX}/man/man"
+CFLAGS+=	-DVERSION=${PORTVERSION}
 
-post-patch:
-	${REINPLACE_CMD} -e 's|^CC = .*|CC = ${CC}|' ${WRKSRC}/config.mk
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/smi ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/smi.1 ${STAGEDIR}${MANPREFIX}/man/man1
+pre-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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