Tue Aug 14 11:32:22 2012 UTC ()
Fix REPLACE_PYTHON example, prompted by Moritz Wilhelmy.


(wiz)
diff -r1.10 -r1.11 pkgsrc/doc/guide/files/creating.xml

cvs diff -r1.10 -r1.11 pkgsrc/doc/guide/files/creating.xml (expand / switch to unified diff)

--- pkgsrc/doc/guide/files/creating.xml 2011/05/21 16:39:03 1.10
+++ pkgsrc/doc/guide/files/creating.xml 2012/08/14 11:32:21 1.11
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1<!-- $NetBSD: creating.xml,v 1.10 2011/05/21 16:39:03 wiz Exp $ --> 1<!-- $NetBSD: creating.xml,v 1.11 2012/08/14 11:32:21 wiz Exp $ -->
2 2
3<chapter id="creating"> 3<chapter id="creating">
4<title>Creating a new pkgsrc package from scratch</title> 4<title>Creating a new pkgsrc package from scratch</title>
5 5
6<para>When you find a package that is not yet in pkgsrc, you 6<para>When you find a package that is not yet in pkgsrc, you
7most likely have a URL from where you can download the source 7most likely have a URL from where you can download the source
8code. Starting with this URL, creating a package involves only a 8code. Starting with this URL, creating a package involves only a
9few steps.</para> 9few steps.</para>
10 10
11<procedure> 11<procedure>
12 12
13<step><para>First, install the packages <filename 13<step><para>First, install the packages <filename
14role="pkg">pkgtools/url2pkg</filename> and <filename 14role="pkg">pkgtools/url2pkg</filename> and <filename
@@ -166,29 +166,30 @@ DISTNAME= foopymodule-1.2.10 @@ -166,29 +166,30 @@ DISTNAME= foopymodule-1.2.10
166PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 166PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
167</programlisting></para> 167</programlisting></para>
168 168
169<para>If it is an application, also include 169<para>If it is an application, also include
170<quote><filename>../../lang/python/application.mk</filename></quote> 170<quote><filename>../../lang/python/application.mk</filename></quote>
171before <quote>extension.mk</quote>.</para> 171before <quote>extension.mk</quote>.</para>
172 172
173<para>If the packaged software, either it is an application or a module, is 173<para>If the packaged software, either it is an application or a module, is
174egg-aware, you only need to include 174egg-aware, you only need to include
175<quote><filename>../../lang/python/egg.mk</filename></quote>.</para> 175<quote><filename>../../lang/python/egg.mk</filename></quote>.</para>
176 176
177<para>In order to correctly set the path to the Python interpreter, use the 177<para>In order to correctly set the path to the Python interpreter, use the
178<varname>REPLACE_PYTHON</varname> variable and set it to the list of files 178<varname>REPLACE_PYTHON</varname> variable and set it to the list of files
179that must be corrected. For example : 179(paths relative to <varname>WRKSRC</varname>) that must be corrected.
 180For example :
180<programlisting> 181<programlisting>
181REPLACE_PYTHON= ${WRKSRC}/*.py 182REPLACE_PYTHON= *.py
182</programlisting></para> 183</programlisting></para>
183 184
184</sect2> 185</sect2>
185 186
186</sect1> 187</sect1>
187 188
188<sect1 id="creating.examples"> 189<sect1 id="creating.examples">
189<title>Examples</title> 190<title>Examples</title>
190 191
191<sect2 id="creating.nvu"> 192<sect2 id="creating.nvu">
192<title>How the www/nvu package came into pkgsrc</title> 193<title>How the www/nvu package came into pkgsrc</title>
193 194
194<sect3 id="creating.nvu.init"> 195<sect3 id="creating.nvu.init">