Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2013 05:28:40 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r310424 - head/japanese/eb
Message-ID:  <201301150528.r0F5SeJD087982@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Tue Jan 15 05:28:40 2013
New Revision: 310424
URL: http://svnweb.freebsd.org/changeset/ports/310424

Log:
  - add created by to header
  - adopt optionsNG
  - add LICENSE
  - while here use copytree_share in favor of cp (appoved by maintainer)
  
  PR:		175193
  Submitted by:	maintainer, yasu@utahime.org

Modified:
  head/japanese/eb/Makefile

Modified: head/japanese/eb/Makefile
==============================================================================
--- head/japanese/eb/Makefile	Tue Jan 15 03:53:48 2013	(r310423)
+++ head/japanese/eb/Makefile	Tue Jan 15 05:28:40 2013	(r310424)
@@ -1,3 +1,4 @@
+# Created by: Motoyuki Kasahara <m-kasahr@sra.co.jp>
 # $FreeBSD$
 
 PORTNAME=	eb
@@ -13,6 +14,8 @@ EXTRACT_ONLY=	${EBFILES}
 MAINTAINER=	yasu@utahime.org
 COMMENT=	C library for accessing EB, EBG, EBXA, and EPWING CD-ROM dictionaries
 
+LICENSE=	BSD
+
 EBFILES=	${DISTNAME}${EXTRACT_SUFX}
 APPENDIXFILES=	appendix/cencro-1.0.tar.gz \
 		appendix/chujiten-2.3.tar.gz \
@@ -68,9 +71,13 @@ GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--with-pkgdocdir=${DOCSDIR}
 
+OPTIONS_DEFINE=	DOCS NLS
+
 APPENDIXDIR=	${DATADIR}/appendix
 
-.if !defined(WITHOUT_NLS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
 USE_GETTEXT=	yes
 CONFIGURE_ARGS+=	--enable-nls \
 		--with-gettext-includes=${LOCALBASE}/include \
@@ -91,8 +98,8 @@ post-extract:
 .endfor
 
 post-install:
-	${CP} -R ${WRKDIR}/appendix/ ${APPENDIXDIR}
-.if !defined(NOPORTDOCS)
+	(cd ${WRKDIR}/appendix && ${COPYTREE_SHARE} \* ${APPENDIXDIR} )
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 .for doc in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${DOCSDIR}



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