| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | <!-- $NetBSD: creating.xml,v 1.15 2014/01/18 20:17:10 wiz Exp $ --> | | 1 | <!-- $NetBSD: creating.xml,v 1.16 2014/01/18 20:18:50 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 |
7 | most likely have a URL from where you can download the source | | 7 | most likely have a URL from where you can download the source |
8 | code. Starting with this URL, creating a package involves only a | | 8 | code. Starting with this URL, creating a package involves only a |
9 | few steps.</para> | | 9 | few 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 |
14 | role="pkg">pkgtools/url2pkg</filename> and <filename | | 14 | role="pkg">pkgtools/url2pkg</filename> and <filename |
| @@ -131,27 +131,27 @@ settings that are typical of KDE package | | | @@ -131,27 +131,27 @@ settings that are typical of KDE package |
131 | </sect2> | | 131 | </sect2> |
132 | | | 132 | |
133 | <sect2 id="creating.python-module"> | | 133 | <sect2 id="creating.python-module"> |
134 | <title>Python modules and programs</title> | | 134 | <title>Python modules and programs</title> |
135 | | | 135 | |
136 | <para>Python modules and programs packages are easily created using a | | 136 | <para>Python modules and programs packages are easily created using a |
137 | set of predefined variables.</para> | | 137 | set of predefined variables.</para> |
138 | | | 138 | |
139 | <para> | | 139 | <para> |
140 | If some Python versions are not supported by the software, set the | | 140 | If some Python versions are not supported by the software, set the |
141 | <varname>PYTHON_VERSIONS_INCOMPATIBLE</varname> variable to the Python versions | | 141 | <varname>PYTHON_VERSIONS_INCOMPATIBLE</varname> variable to the Python versions |
142 | that are not supported, e.g. | | 142 | that are not supported, e.g. |
143 | <programlisting> | | 143 | <programlisting> |
144 | PYTHON_VERSIONS_ACCEPTED= 26 | | 144 | PYTHON_VERSIONS_INCOMPATIBLE= 26 |
145 | </programlisting></para> | | 145 | </programlisting></para> |
146 | | | 146 | |
147 | <para> | | 147 | <para> |
148 | If the packaged software is a Python module, include | | 148 | If the packaged software is a Python module, include |
149 | <quote><filename>../../lang/python/extension.mk</filename></quote>. | | 149 | <quote><filename>../../lang/python/extension.mk</filename></quote>. |
150 | In this case, the package directory should be called | | 150 | In this case, the package directory should be called |
151 | <quote>py-software</quote> and <varname>PKGNAME</varname> should be set to | | 151 | <quote>py-software</quote> and <varname>PKGNAME</varname> should be set to |
152 | <quote>${PYPKGPREFIX}-${DISTNAME}</quote>, e.g. | | 152 | <quote>${PYPKGPREFIX}-${DISTNAME}</quote>, e.g. |
153 | <programlisting> | | 153 | <programlisting> |
154 | DISTNAME= foopymodule-1.2.10 | | 154 | DISTNAME= foopymodule-1.2.10 |
155 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 155 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
156 | </programlisting></para> | | 156 | </programlisting></para> |
157 | | | 157 | |