ports/175258: [PATCH] japanese/mecab: add license information etc.

Yasuhiro KIMURA yasu at utahime.org
Mon Jan 14 01:33:35 UTC 2013


"Created by:" header is added to Makefile. Please commit attached patch
instead of previous ones.

Regards.
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	(revision 310295)
+++ Makefile	(working copy)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	mecab
-# Date created:		2 April 2003
-# Whom:			Akinori MUSHA aka knu <knu at idaemons.org>
-#
+# Created by: Akinori MUSHA aka knu <knu at idaemons.org>
 # $FreeBSD$
-#
 
 PORTNAME=	mecab
 PORTVERSION=	0.994
@@ -13,6 +9,12 @@
 MAINTAINER=	clsung at FreeBSD.org
 COMMENT=	Yet Another Part-of-Speech and Morphological Analyzer
 
+LICENSE=	BSD GPLv2 LGPL21
+LICENSE_COMB=	dual
+LICENSE_FILE_BSD=	${WRKSRC}/BSD
+LICENSE_FILE_GPLv2=	${WRKSRC}/GPL
+LICENSE_FILE_LGPL21=	${WRKSRC}/LGPL
+
 USE_AUTOTOOLS=	libtool
 USE_ICONV=	yes
 USE_PERL5_BUILD=	yes
@@ -31,8 +33,11 @@
 
 DOCS=		AUTHORS README doc/*.html
 
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFAULT=	DOCS
 
+.include <bsd.port.options.mk>
+
 post-patch:
 	${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
 			 -e 's/-O3/${CFLAGS}/' ${WRKSRC}/${CONFIGURE_SCRIPT}
@@ -48,7 +53,7 @@
 	@if [ ! -f ${PREFIX}/etc/mecabrc ]; then \
 		${INSTALL_DATA} ${PREFIX}/etc/mecabrc.dist ${PREFIX}/etc/mecabrc; \
 	fi
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 .for f in ${DOCS}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
@@ -56,4 +61,4 @@
 .endif
 	@${CAT} ${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: pkg-descr
===================================================================
--- pkg-descr	(revision 310295)
+++ pkg-descr	(working copy)
@@ -1,4 +1,4 @@
 MeCab: Yet Another Part-of-Speech and Morphological Analyzer
 
 Author:	Taku Kudo <taku at chasen.org>
-WWW:	http://mecab.sourceforge.net/
+WWW:	https://code.google.com/p/mecab/


More information about the freebsd-ports-bugs mailing list