Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Dec 2015 09:37:21 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r403042 - head/chinese/reciteword
Message-ID:  <201512050937.tB59bLVv003880@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Dec  5 09:37:20 2015
New Revision: 403042
URL: https://svnweb.freebsd.org/changeset/ports/403042

Log:
  - Add LICENSE
  - Don't install empty and unneeded docs
  - Switch to options helpers

Modified:
  head/chinese/reciteword/Makefile

Modified: head/chinese/reciteword/Makefile
==============================================================================
--- head/chinese/reciteword/Makefile	Sat Dec  5 09:37:07 2015	(r403041)
+++ head/chinese/reciteword/Makefile	Sat Dec  5 09:37:20 2015	(r403042)
@@ -14,6 +14,9 @@ DISTFILES=	${DISTNAME}.tar.bz2 \
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Education software to help people to study English
 
+LICENSE=	GPLv3 # or later
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 LIB_DEPENDS=	libespeak.so:${PORTSDIR}/audio/espeak
 
 GNU_CONFIGURE=	yes
@@ -22,7 +25,9 @@ USE_GNOME=	gtk20 intltool esound
 CPPFLAGS+=	-I${LOCALBASE}/include
 LIBS+=		-L${LOCALBASE}/lib
 
-PORTDOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README TODO readme.txt
+PORTDOCS=	AUTHORS ChangeLog INSTALL README readme.txt
+
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|' ${WRKSRC}/src/readword.cpp
@@ -30,6 +35,8 @@ post-patch:
 post-install:
 	@${MKDIR} ${STAGEDIR}${DATADIR}
 	cd ${WRKDIR} && ${COPYTREE_SHARE} "books dicts" ${STAGEDIR}${DATADIR}
+
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 



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