From owner-svn-ports-all@FreeBSD.ORG Sat Sep 29 19:18:19 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD2751065675; Sat, 29 Sep 2012 19:18:19 +0000 (UTC) (envelope-from dinoex@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A78FA8FC08; Sat, 29 Sep 2012 19:18:19 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8TJIJ23079422; Sat, 29 Sep 2012 19:18:19 GMT (envelope-from dinoex@svn.freebsd.org) Received: (from dinoex@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8TJIJ6b079419; Sat, 29 Sep 2012 19:18:19 GMT (envelope-from dinoex@svn.freebsd.org) Message-Id: <201209291918.q8TJIJ6b079419@svn.freebsd.org> From: Dirk Meyer Date: Sat, 29 Sep 2012 19:18:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r305048 - head/print/a2ps-letter X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2012 19:18:20 -0000 Author: dinoex Date: Sat Sep 29 19:18:19 2012 New Revision: 305048 URL: http://svn.freebsd.org/changeset/ports/305048 Log: - use OPTIONS_DEFINE - new option WITHOUT_NLS Modified: head/print/a2ps-letter/Makefile head/print/a2ps-letter/pkg-plist Modified: head/print/a2ps-letter/Makefile ============================================================================== --- head/print/a2ps-letter/Makefile Sat Sep 29 19:05:36 2012 (r305047) +++ head/print/a2ps-letter/Makefile Sat Sep 29 19:18:19 2012 (r305048) @@ -54,13 +54,32 @@ CONFLICTS?= a2ps-a4-4.* a2ps-letter-4.* .endif .endif -.if defined(WITH_EMACS) +OPTIONS_DEFINE=NLS I18N EMACS +OPTIONS_DEFAULT=NLS +NO_OPTIONS_SORT=yes +EMACS_DESC=Enable Emacs support +I18N_DESC=Enable I18N support + +.include + +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.endif + +.if ${PORT_OPTIONS:MEMACS} +USE_EMACS= yes +CONFIGURE_ARGS+= --with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR} PLIST_SUB+= WITHEMACS="" .else +CONFIGURE_ENV+= EMACS=no PLIST_SUB+= WITHEMACS="@comment " .endif -.if defined(WITH_I18N) +.if ${PORT_OPTIONS:MI18N} PLIST_SUB+= WITHI18N="" pre-configure: @@ -81,7 +100,7 @@ PLIST_SUB+= WITHI18N="@comment " post-install: ${STRIP_CMD} ${PREFIX}/bin/a2ps -.if defined(WITH_EMACS) +.if ${PORT_OPTIONS:MEMACS} ${MKDIR} ${PREFIX}/lib/xemacs/site-lisp ${LN} -sf ${PREFIX}/share/emacs/site-lisp/a2ps-print.el \ ${PREFIX}/lib/xemacs/site-lisp/a2ps-print.el Modified: head/print/a2ps-letter/pkg-plist ============================================================================== --- head/print/a2ps-letter/pkg-plist Sat Sep 29 19:05:36 2012 (r305047) +++ head/print/a2ps-letter/pkg-plist Sat Sep 29 19:18:19 2012 (r305048) @@ -259,27 +259,27 @@ lib/liba2ps.a %%DATADIR%%/sheets/xs.ssh %%DATADIR%%/sheets/yacc.ssh %%DATADIR%%/sheets/zsh.ssh -share/locale/ca/LC_MESSAGES/a2ps.mo -share/locale/cs/LC_MESSAGES/a2ps.mo -share/locale/da/LC_MESSAGES/a2ps.mo -share/locale/de/LC_MESSAGES/a2ps.mo -share/locale/es/LC_MESSAGES/a2ps.mo -share/locale/et/LC_MESSAGES/a2ps.mo -share/locale/fr/LC_MESSAGES/a2ps.mo -share/locale/it/LC_MESSAGES/a2ps.mo -share/locale/ko/LC_MESSAGES/a2ps.mo -share/locale/nl/LC_MESSAGES/a2ps.mo -share/locale/no/LC_MESSAGES/a2ps.mo -share/locale/pl/LC_MESSAGES/a2ps.mo -share/locale/pt/LC_MESSAGES/a2ps.mo -share/locale/ru/LC_MESSAGES/a2ps.mo -share/locale/sl/LC_MESSAGES/a2ps.mo -share/locale/sv/LC_MESSAGES/a2ps.mo -share/locale/tr/LC_MESSAGES/a2ps.mo -%%WITHEMACS%%share/emacs/site-lisp/a2ps-print.el -%%WITHEMACS%%share/emacs/site-lisp/a2ps.el -%%WITHEMACS%%lib/xemacs/site-lisp/a2ps-print.el -%%WITHEMACS%%lib/xemacs/site-lisp/a2ps.el +%%NLS%%share/locale/ca/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/cs/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/da/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/de/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/es/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/et/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/fr/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/it/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/ko/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/nl/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/no/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/pl/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/pt/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/ru/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/sl/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/sv/LC_MESSAGES/a2ps.mo +%%NLS%%share/locale/tr/LC_MESSAGES/a2ps.mo +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.el +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps-print.elc +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.el +%%WITHEMACS%%%%EMACS_SITE_LISPDIR%%/a2ps.elc @dirrm %%DATADIR%%/ogonkify/fonts @dirrm %%DATADIR%%/ogonkify/afm @dirrm %%DATADIR%%/ogonkify