Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2013 16:46:21 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/175254: [PATCH] japanese/anthy: add license info, OptionsNG-fy and trim makefile header
Message-ID:  <20130113074621.5216E4E62E@eastasia.home.utahime.org>
Resent-Message-ID: <201301130750.r0D7o0C8070237@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175254
>Category:       ports
>Synopsis:       [PATCH] japanese/anthy: add license info, OptionsNG-fy and trim makefile header
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 13 07:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Yasuhiro KIMURA
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD xxxx 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r245243: Fri Jan 11 10:39:45 JST 2013 xxxx amd64


	
>Description:

	- Add license info.
	- Adopt OptinsNG.
	- Trim makefile header.

	
>How-To-Repeat:
	
>Fix:

	

--- patch-ja-anthy begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 310295)
+++ Makefile	(working copy)
@@ -1,9 +1,4 @@
-# New ports collection makefile for:   anthy
-# Date created:        26 February 2002
-# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
-#
 # $FreeBSD$
-#
 
 PORTNAME=	anthy
 PORTVERSION=	9100h
@@ -17,27 +12,40 @@
 MAINTAINER=	nobutaka@FreeBSD.org
 COMMENT=	Another Kana-Kanji conversion system
 
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
-USE_GNOME=	lthack pkgconfig
+USE_GNOME=	lthack
+USE_PKGCONFIG=	build
 
 DOCSDIR=	share/doc/ja/anthy
 ELISPDIR=	share/emacs/site-lisp/anthy
 PLIST_SUB=	ELISPDIR=${ELISPDIR}
 
-.if defined(WITH_2CHDIC)
+OPTIONS_DEFINE=	2CHDIC ODIC GSKKDIC DOCS
+OPTIONS_DEFAULT=	DOCS
+
+2CHDIC_DESC=	2ch Dictionary
+ODIC_DESC=	Okinawa Dictionary
+GSKKDIC_DESC=	SKK Dictionary
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:M2CHDIC}
 MASTER_SITES+=	http://omaemona.sourceforge.net/packages/Zisyo/:2chdic
 DISTFILES+=	2ch.t:2chdic
 .endif
 
-.if defined(WITH_ODIC)
+.if ${PORT_OPTIONS:MODIC}
 MASTER_SITES+=	http://www.ofug.net/~yamajun/files/:odic
 DISTFILES+=	${ODIC_SRCS}:odic
 ODIC_SRCS=	${ODIC_VERS}.t
 ODIC_VERS=	okinawa-20070717
 .endif
 
-.if defined(WITH_GSKKDIC)
+.if ${PORT_OPTIONS:MGSKKDIC}
 MASTER_SITES+=	http://www.ohnolab.org/~kimoto/:gskk
 DISTFILES+=	${GSKK_SRCS}:gskk
 GSKK_SRCS=	${GSKK_VERS}.t.gz
@@ -45,19 +53,19 @@
 .endif
 
 post-extract:
-.if defined(WITH_2CHDIC)
+.if ${PORT_OPTIONS:M2CHDIC}
 	${CP} ${DISTDIR}/${DIST_SUBDIR}/2ch.t ${WRKSRC}/mkworddic
 	${PRINTF} "/mkworddic\\\\/base.t/a\\\\\\nread @top_srcdir@/mkworddic/2ch.t\\n" | \
 	${REINPLACE_CMD} -f /dev/stdin ${WRKSRC}/mkworddic/dict.args.in
 .endif
 
-.if defined(WITH_ODIC)
+.if ${PORT_OPTIONS:MODIC}
 	${CP} ${DISTDIR}/${DIST_SUBDIR}/${ODIC_SRCS} ${WRKSRC}/mkworddic
 	${PRINTF} "/mkworddic\\\\/base.t/a\\\\\\nread @top_srcdir@/mkworddic/${ODIC_SRCS}\\n" | \
 	${REINPLACE_CMD} -f /dev/stdin ${WRKSRC}/mkworddic/dict.args.in
 .endif
 
-.if defined(WITH_GSKKDIC)
+.if ${PORT_OPTIONS:MGSKKDIC}
 	${CP} ${DISTDIR}/${DIST_SUBDIR}/${GSKK_SRCS} ${WRKSRC}/mkworddic
 	${GUNZIP_CMD} ${WRKSRC}/mkworddic/${GSKK_SRCS}
 	${PRINTF} "/mkworddic\\\\/base.t/a\\\\\\nread @top_srcdir@/mkworddic/${GSKK_VERS}.t\\n" | \
@@ -73,7 +81,7 @@
 post-install:
 	${MKDIR} ${PREFIX}/${ELISPDIR}
 	${INSTALL_DATA} ${WRKSRC}/src-util/*.el ${PREFIX}/${ELISPDIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${PREFIX}/${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/ELISP ${PREFIX}/${DOCSDIR}
 .endif
--- patch-ja-anthy ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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