From owner-freebsd-doc@FreeBSD.ORG Tue Feb 26 22:30:00 2013 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 82EE56AA for ; Tue, 26 Feb 2013 22:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 67824684 for ; Tue, 26 Feb 2013 22:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1QMU0KX088299 for ; Tue, 26 Feb 2013 22:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1QMU0LF088298; Tue, 26 Feb 2013 22:30:00 GMT (envelope-from gnats) Resent-Date: Tue, 26 Feb 2013 22:30:00 GMT Resent-Message-Id: <201302262230.r1QMU0LF088298@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jason Helfman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C2B4A543; Tue, 26 Feb 2013 22:23:04 +0000 (UTC) (envelope-from jgh@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id A5C9E62A; Tue, 26 Feb 2013 22:23:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1QMN4e7088088; Tue, 26 Feb 2013 22:23:04 GMT (envelope-from jgh@freefall.freebsd.org) Received: (from jgh@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1QMN4rx088087; Tue, 26 Feb 2013 22:23:04 GMT (envelope-from jgh) Message-Id: <201302262223.r1QMN4rx088087@freefall.freebsd.org> Date: Tue, 26 Feb 2013 22:23:04 GMT From: Jason Helfman To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: docs/176455: [patch][book/porters-handbook] convert to optionsNG for NLS, fix a closed literal tag Cc: bapt@FreeBSD.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jason Helfman List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2013 22:30:00 -0000 >Number: 176455 >Category: docs >Synopsis: [patch][book/porters-handbook] convert to optionsNG for NLS, fix a closed literal tag >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Feb 26 22:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jason Helfman >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #2 r245102: Sun Jan 6 15:01:33 UTC 2013 root@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64 >Description: NLS section example wasn't converted to new options framework Encountered a issue when building where a closed "literal" tag was never opened. line 7608 /usr/local/bin/openjade:/home/jgh/workspace/docs/en_US.ISO8859-1/books/porters-handbook/book.xml:7608:10:E: end tag for element "literal" which is not open >How-To-Repeat: >Fix: Index: book.xml =================================================================== --- book.xml (revision 41051) +++ book.xml (working copy) @@ -5749,14 +5749,18 @@ GNU_CONFIGURE= yes -.if !defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " -.endif +.endif +.include <bsd.port.mk> + The next item on your to-do list is to arrange so that the message catalog files are included in the packing list conditionally. The Makefile part of @@ -7599,6 +7603,12 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + Generally, if PKGNAMEPREFIX is set, the + port should require a py- port origin prefix. + For example, + /usr/ports/sysutils/py-myport + + Most Useful Variables for Ports That Use Python >Release-Note: >Audit-Trail: >Unformatted: