Switch to direct py-dns dependency. py-dns now supports all python versions, so versioned_dependencies is not needed any longer.diff -r1.10 -r1.11 pkgsrc/chat/py-xmpppy/Makefile
(wiz)
@@ -1,41 +1,40 @@ | @@ -1,41 +1,40 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2015/12/05 21:25:30 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2016/06/30 18:03:46 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= xmpppy-0.5.0rc1 | 3 | DISTNAME= xmpppy-0.5.0rc1 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | PKGREVISION= 3 | 5 | PKGREVISION= 3 | |
6 | CATEGORIES= chat python | 6 | CATEGORIES= chat python | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmpppy/} | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmpppy/} | |
8 | 8 | |||
9 | MAINTAINER= schnoebe@NetBSD.org | 9 | MAINTAINER= schnoebe@NetBSD.org | |
10 | HOMEPAGE= http://xmpppy.sourceforge.net/ | 10 | HOMEPAGE= http://xmpppy.sourceforge.net/ | |
11 | COMMENT= XMPP (Jabber) library for Python | 11 | COMMENT= XMPP (Jabber) library for Python | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns | |||
14 | DEPENDS+= ${PYPKGPREFIX}-expat>=0nb4:../../textproc/py-expat | 15 | DEPENDS+= ${PYPKGPREFIX}-expat>=0nb4:../../textproc/py-expat | |
15 | 16 | |||
16 | USE_LANGUAGES= # none | 17 | USE_LANGUAGES= # none | |
17 | 18 | |||
18 | PYDISTUTILSPKG= yes | 19 | PYDISTUTILSPKG= yes | |
19 | PYTHON_VERSIONED_DEPENDENCIES= dns | |||
20 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.5.0rc1 | 20 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.5.0rc1 | |
21 | 21 | |||
22 | DOCDIR= ${PREFIX}/share/doc/py-xmpppy | 22 | DOCDIR= ${PREFIX}/share/doc/py-xmpppy | |
23 | EXDIR= ${PREFIX}/share/examples/py-xmpppy | 23 | EXDIR= ${PREFIX}/share/examples/py-xmpppy | |
24 | 24 | |||
25 | INSTALLATION_DIRS+= ${DOCDIR} ${EXDIR} | 25 | INSTALLATION_DIRS+= ${DOCDIR} ${EXDIR} | |
26 | 26 | |||
27 | post-install: | 27 | post-install: | |
28 | ${INSTALL_SCRIPT_DIR} ${DESTDIR}${EXDIR} | 28 | ${INSTALL_SCRIPT_DIR} ${DESTDIR}${EXDIR} | |
29 | ${INSTALL_SCRIPT} ${WRKSRC}/doc/examples/*.py \ | 29 | ${INSTALL_SCRIPT} ${WRKSRC}/doc/examples/*.py \ | |
30 | ${DESTDIR}${EXDIR} | 30 | ${DESTDIR}${EXDIR} | |
31 | ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} | 31 | ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} | |
32 | ${INSTALL_DATA} ${WRKSRC}/doc/*.html \ | 32 | ${INSTALL_DATA} ${WRKSRC}/doc/*.html \ | |
33 | ${DESTDIR}${DOCDIR} | 33 | ${DESTDIR}${DOCDIR} | |
34 | ${INSTALL_DATA} ${WRKSRC}/doc/*.png \ | 34 | ${INSTALL_DATA} ${WRKSRC}/doc/*.png \ | |
35 | ${DESTDIR}${DOCDIR} | 35 | ${DESTDIR}${DOCDIR} | |
36 | ${INSTALL_DATA} ${WRKSRC}/doc/*.css \ | 36 | ${INSTALL_DATA} ${WRKSRC}/doc/*.css \ | |
37 | ${DESTDIR}${DOCDIR} | 37 | ${DESTDIR}${DOCDIR} | |
38 | 38 | |||
39 | .include "../../lang/python/versioned_dependencies.mk" | |||
40 | .include "../../lang/python/egg.mk" | 39 | .include "../../lang/python/egg.mk" | |
41 | .include "../../mk/bsd.pkg.mk" | 40 | .include "../../mk/bsd.pkg.mk" |
@@ -1,450 +1,450 @@ | @@ -1,450 +1,450 @@ | |||
1 | <!-- $NetBSD: creating.xml,v 1.20 2016/01/12 12:03:39 wiz Exp $ --> | 1 | <!-- $NetBSD: creating.xml,v 1.21 2016/06/30 18:03:46 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 | |
15 | role="pkg">pkgtools/pkglint</filename>.</para></step> | 15 | role="pkg">pkgtools/pkglint</filename>.</para></step> | |
16 | 16 | |||
17 | <step><para>Then, choose one of the top-level directories as the | 17 | <step><para>Then, choose one of the top-level directories as the | |
18 | category in which you want to place your package. You can also create a | 18 | category in which you want to place your package. You can also create a | |
19 | directory of your own (maybe called <filename>local</filename>). In that | 19 | directory of your own (maybe called <filename>local</filename>). In that | |
20 | category directory, create another directory for your package and change | 20 | category directory, create another directory for your package and change | |
21 | into it.</para></step> | 21 | into it.</para></step> | |
22 | 22 | |||
23 | <step><para>Run the program <command>url2pkg</command>, which will ask | 23 | <step><para>Run the program <command>url2pkg</command>, which will ask | |
24 | you for a URL. Enter the URL of the distribution file (in most cases a | 24 | you for a URL. Enter the URL of the distribution file (in most cases a | |
25 | <filename>.tar.gz</filename> file) and watch how the basic ingredients | 25 | <filename>.tar.gz</filename> file) and watch how the basic ingredients | |
26 | of your package are created automatically. The distribution file is | 26 | of your package are created automatically. The distribution file is | |
27 | extracted automatically to fill in some details in the | 27 | extracted automatically to fill in some details in the | |
28 | <filename>Makefile</filename> that would otherwise have to be done | 28 | <filename>Makefile</filename> that would otherwise have to be done | |
29 | manually.</para></step> | 29 | manually.</para></step> | |
30 | 30 | |||
31 | <step><para>Examine the extracted files to determine the dependencies of | 31 | <step><para>Examine the extracted files to determine the dependencies of | |
32 | your package. Ideally, this is mentioned in some | 32 | your package. Ideally, this is mentioned in some | |
33 | <filename>README</filename> file, but things may differ. For each of | 33 | <filename>README</filename> file, but things may differ. For each of | |
34 | these dependencies, look where it exists in pkgsrc, and if there is a | 34 | these dependencies, look where it exists in pkgsrc, and if there is a | |
35 | file called <filename>buildlink3.mk</filename> in that directory, add a | 35 | file called <filename>buildlink3.mk</filename> in that directory, add a | |
36 | line to your package <filename>Makefile</filename> which includes that | 36 | line to your package <filename>Makefile</filename> which includes that | |
37 | file just before the last line. If the | 37 | file just before the last line. If the | |
38 | <filename>buildlink3.mk</filename> file does not exist, it must be | 38 | <filename>buildlink3.mk</filename> file does not exist, it must be | |
39 | created first. The <filename>buildlink3.mk</filename> file makes sure that the package's include files and libraries are provided.</para> | 39 | created first. The <filename>buildlink3.mk</filename> file makes sure that the package's include files and libraries are provided.</para> | |
40 | 40 | |||
41 | <para>If you just need binaries from a package, add a | 41 | <para>If you just need binaries from a package, add a | |
42 | <varname>DEPENDS</varname> line to the Makefile, which specifies the | 42 | <varname>DEPENDS</varname> line to the Makefile, which specifies the | |
43 | version of the dependency and where it can be found in pkgsrc. This line | 43 | version of the dependency and where it can be found in pkgsrc. This line | |
44 | should be placed in the third paragraph. If the dependency is only | 44 | should be placed in the third paragraph. If the dependency is only | |
45 | needed for building the package, but not when using it, use | 45 | needed for building the package, but not when using it, use | |
46 | <varname>BUILD_DEPENDS</varname> instead of <varname>DEPENDS</varname>. | 46 | <varname>BUILD_DEPENDS</varname> instead of <varname>DEPENDS</varname>. | |
47 | Your package may then look like this:</para> | 47 | Your package may then look like this:</para> | |
48 | 48 | |||
49 | <programlisting> | 49 | <programlisting> | |
50 | [...] | 50 | [...] | |
51 | 51 | |||
52 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | 52 | BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt | |
53 | DEPENDS+= screen-[0-9]*:../../misc/screen | 53 | DEPENDS+= screen-[0-9]*:../../misc/screen | |
54 | DEPENDS+= screen>=4.0:../../misc/screen | 54 | DEPENDS+= screen>=4.0:../../misc/screen | |
55 | 55 | |||
56 | [...] | 56 | [...] | |
57 | 57 | |||
58 | .include "../../<replaceable>category</replaceable>/<replaceable>package</replaceable>/buildlink3.mk" | 58 | .include "../../<replaceable>category</replaceable>/<replaceable>package</replaceable>/buildlink3.mk" | |
59 | .include "../../devel/glib2/buildlink3.mk" | 59 | .include "../../devel/glib2/buildlink3.mk" | |
60 | .include "../../mk/bsd.pkg.mk" | 60 | .include "../../mk/bsd.pkg.mk" | |
61 | </programlisting> | 61 | </programlisting> | |
62 | 62 | |||
63 | </step> | 63 | </step> | |
64 | 64 | |||
65 | <step><para>Run <command>pkglint</command> to see what things still need | 65 | <step><para>Run <command>pkglint</command> to see what things still need | |
66 | to be done to make your package a <quote>good</quote> one. If you don't | 66 | to be done to make your package a <quote>good</quote> one. If you don't | |
67 | know what pkglint's warnings want to tell you, try <command>pkglint | 67 | know what pkglint's warnings want to tell you, try <command>pkglint | |
68 | --explain</command> or <command>pkglint | 68 | --explain</command> or <command>pkglint | |
69 | -e</command>, which outputs additional | 69 | -e</command>, which outputs additional | |
70 | explanations.</para></step> | 70 | explanations.</para></step> | |
71 | 71 | |||
72 | <step><para>In many cases the package is not yet ready to build. You can | 72 | <step><para>In many cases the package is not yet ready to build. You can | |
73 | find instructions for the most common cases in the next section, <xref | 73 | find instructions for the most common cases in the next section, <xref | |
74 | linkend="creating.common"/>. After you have followed the instructions | 74 | linkend="creating.common"/>. After you have followed the instructions | |
75 | over there, you can hopefully continue here.</para></step> | 75 | over there, you can hopefully continue here.</para></step> | |
76 | 76 | |||
77 | <step><para>Run <command>bmake clean</command> to clean the working | 77 | <step><para>Run <command>bmake clean</command> to clean the working | |
78 | directory from the extracted files. Besides these files, a lot of cache | 78 | directory from the extracted files. Besides these files, a lot of cache | |
79 | files and other system information has been saved in the working | 79 | files and other system information has been saved in the working | |
80 | directory, which may become wrong after you edited the | 80 | directory, which may become wrong after you edited the | |
81 | <filename>Makefile</filename>.</para></step> | 81 | <filename>Makefile</filename>.</para></step> | |
82 | 82 | |||
83 | <step><para>Now, run <command>bmake</command> to build the package. For | 83 | <step><para>Now, run <command>bmake</command> to build the package. For | |
84 | the various things that can go wrong in this phase, consult <xref | 84 | the various things that can go wrong in this phase, consult <xref | |
85 | linkend="fixes"/>.</para></step> | 85 | linkend="fixes"/>.</para></step> | |
86 | 86 | |||
87 | <step><para>When the package builds fine, the next step is to install | 87 | <step><para>When the package builds fine, the next step is to install | |
88 | the package. Run <command>bmake install</command> and hope that | 88 | the package. Run <command>bmake install</command> and hope that | |
89 | everything works.</para></step> | 89 | everything works.</para></step> | |
90 | 90 | |||
91 | <step><para>Up to now, the file <filename>PLIST</filename>, which | 91 | <step><para>Up to now, the file <filename>PLIST</filename>, which | |
92 | contains a list of the files that are installed by the package, is | 92 | contains a list of the files that are installed by the package, is | |
93 | nearly empty. Run <command>bmake print-PLIST | 93 | nearly empty. Run <command>bmake print-PLIST | |
94 | >PLIST</command> to generate a probably correct list. Check | 94 | >PLIST</command> to generate a probably correct list. Check | |
95 | the file using your preferred text editor to see if the list of | 95 | the file using your preferred text editor to see if the list of | |
96 | files looks plausible.</para></step> | 96 | files looks plausible.</para></step> | |
97 | 97 | |||
98 | <step><para>Run <command>pkglint</command> again to see if the generated | 98 | <step><para>Run <command>pkglint</command> again to see if the generated | |
99 | <filename>PLIST</filename> contains garbage or not.</para></step> | 99 | <filename>PLIST</filename> contains garbage or not.</para></step> | |
100 | 100 | |||
101 | <step><para>When you ran <command>bmake install</command>, the package | 101 | <step><para>When you ran <command>bmake install</command>, the package | |
102 | has been registered in the database of installed files, but with an | 102 | has been registered in the database of installed files, but with an | |
103 | empty list of files. To fix this, run <command>bmake deinstall</command> | 103 | empty list of files. To fix this, run <command>bmake deinstall</command> | |
104 | and <command>bmake install</command> again. Now the package is | 104 | and <command>bmake install</command> again. Now the package is | |
105 | registered with the list of files from | 105 | registered with the list of files from | |
106 | <filename>PLIST</filename>.</para></step> | 106 | <filename>PLIST</filename>.</para></step> | |
107 | 107 | |||
108 | <step><para>Run <command>bmake package</command> to create a binary | 108 | <step><para>Run <command>bmake package</command> to create a binary | |
109 | package from the set of installed files.</para></step> | 109 | package from the set of installed files.</para></step> | |
110 | 110 | |||
111 | </procedure> | 111 | </procedure> | |
112 | 112 | |||
113 | <sect1 id="creating.common"> | 113 | <sect1 id="creating.common"> | |
114 | <title>Common types of packages</title> | 114 | <title>Common types of packages</title> | |
115 | 115 | |||
116 | <sect2 id="creating.perl-module"> | 116 | <sect2 id="creating.perl-module"> | |
117 | <title>Perl modules</title> | 117 | <title>Perl modules</title> | |
118 | 118 | |||
119 | <para>Simple Perl modules are handled automatically by | 119 | <para>Simple Perl modules are handled automatically by | |
120 | <command>url2pkg</command>, including dependencies.</para> | 120 | <command>url2pkg</command>, including dependencies.</para> | |
121 | 121 | |||
122 | </sect2> | 122 | </sect2> | |
123 | 123 | |||
124 | <sect2 id="creating.kde-app"> | 124 | <sect2 id="creating.kde-app"> | |
125 | <title>KDE3 applications</title> | 125 | <title>KDE3 applications</title> | |
126 | 126 | |||
127 | <para>KDE3 applications should always include | 127 | <para>KDE3 applications should always include | |
128 | <filename>meta-pkgs/kde3/kde3.mk</filename>, which contains numerous | 128 | <filename>meta-pkgs/kde3/kde3.mk</filename>, which contains numerous | |
129 | settings that are typical of KDE3 packages.</para> | 129 | settings that are typical of KDE3 packages.</para> | |
130 | 130 | |||
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_INCOMPATIBLE= 27 | 144 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
145 | </programlisting></para> | 145 | </programlisting></para> | |
146 | 146 | |||
147 | <para> | 147 | <para> | |
148 | If the packaged software is a Python module, include one of | 148 | If the packaged software is a Python module, include one of | |
149 | <filename>../../lang/python/egg.mk</filename>, | 149 | <filename>../../lang/python/egg.mk</filename>, | |
150 | <filename>../../lang/python/distutils.mk</filename>, or | 150 | <filename>../../lang/python/distutils.mk</filename>, or | |
151 | <filename>../../lang/python/extension.mk</filename>.</para> | 151 | <filename>../../lang/python/extension.mk</filename>.</para> | |
152 | 152 | |||
153 | <para>Most Python packages use either <quote>distutils</quote> or | 153 | <para>Most Python packages use either <quote>distutils</quote> or | |
154 | easy-setup/setuptools (<quote>eggs</quote>). | 154 | easy-setup/setuptools (<quote>eggs</quote>). | |
155 | if the packaged software is using setuptools, you only need | 155 | if the packaged software is using setuptools, you only need | |
156 | to include <quote><filename>../../lang/python/egg.mk</filename></quote>. | 156 | to include <quote><filename>../../lang/python/egg.mk</filename></quote>. | |
157 | Otherwise, if the software uses <quote>distutils</quote>, include | 157 | Otherwise, if the software uses <quote>distutils</quote>, include | |
158 | <quote><filename>../../lang/python/distutils.mk</filename></quote>. | 158 | <quote><filename>../../lang/python/distutils.mk</filename></quote>. | |
159 | so pkgsrc will use this framework. | 159 | so pkgsrc will use this framework. | |
160 | <quote>distutils</quote> uses a script called <filename>setup.py</filename>, | 160 | <quote>distutils</quote> uses a script called <filename>setup.py</filename>, | |
161 | if the <quote>distutils</quote> driver is not called | 161 | if the <quote>distutils</quote> driver is not called | |
162 | <filename>setup.py</filename>, set the <varname>PYSETUP</varname> variable | 162 | <filename>setup.py</filename>, set the <varname>PYSETUP</varname> variable | |
163 | to the name of the script.</para> | 163 | to the name of the script.</para> | |
164 | 164 | |||
165 | <para>Either way, the package directory should be called | 165 | <para>Either way, the package directory should be called | |
166 | <quote>py-software</quote> and <varname>PKGNAME</varname> should be set to | 166 | <quote>py-software</quote> and <varname>PKGNAME</varname> should be set to | |
167 | <quote>${PYPKGPREFIX}-${DISTNAME}</quote>, e.g. | 167 | <quote>${PYPKGPREFIX}-${DISTNAME}</quote>, e.g. | |
168 | <programlisting> | 168 | <programlisting> | |
169 | DISTNAME= foopymodule-1.2.10 | 169 | DISTNAME= foopymodule-1.2.10 | |
170 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 170 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
171 | </programlisting></para> | 171 | </programlisting></para> | |
172 | 172 | |||
173 | <para>If it is an application, include | 173 | <para>If it is an application, include | |
174 | <quote><filename>../../lang/python/application.mk</filename></quote>. | 174 | <quote><filename>../../lang/python/application.mk</filename></quote>. | |
175 | In order to correctly set the path to the Python interpreter, use the | 175 | In order to correctly set the path to the Python interpreter, use the | |
176 | <varname>REPLACE_PYTHON</varname> variable and set it to the list of files | 176 | <varname>REPLACE_PYTHON</varname> variable and set it to the list of files | |
177 | (paths relative to <varname>WRKSRC</varname>) that must be corrected. | 177 | (paths relative to <varname>WRKSRC</varname>) that must be corrected. | |
178 | For example: | 178 | For example: | |
179 | <programlisting> | 179 | <programlisting> | |
180 | REPLACE_PYTHON= *.py | 180 | REPLACE_PYTHON= *.py | |
181 | </programlisting></para> | 181 | </programlisting></para> | |
182 | 182 | |||
183 | <para>Some Python modules have separate distributions for Python-2.x | 183 | <para>Some Python modules have separate distributions for Python-2.x | |
184 | and Python-3.x support. In pkgsrc this is handled by the | 184 | and Python-3.x support. In pkgsrc this is handled by the | |
185 | <filename>versioned_dependencies.mk</filename> file. Set | 185 | <filename>versioned_dependencies.mk</filename> file. Set | |
186 | <varname>PYTHON_VERSIONED_DEPENDENCIES</varname> to the list of | 186 | <varname>PYTHON_VERSIONED_DEPENDENCIES</varname> to the list of | |
187 | packages that should be depended upon and include | 187 | packages that should be depended upon and include | |
188 | <quote><filename>../../lang/python/versioned_dependencies.mk</filename></quote>, | 188 | <quote><filename>../../lang/python/versioned_dependencies.mk</filename></quote>, | |
189 | then the pkgsrc infrastructure will depend on the appropriate package | 189 | then the pkgsrc infrastructure will depend on the appropriate package | |
190 | version. For example: | 190 | version. For example: | |
191 | <programlisting> | 191 | <programlisting> | |
192 | PYTHON_VERSIONED_DEPENDENCIES=dateutil dns | 192 | PYTHON_VERSIONED_DEPENDENCIES=dateutil | |
193 | </programlisting> | 193 | </programlisting> | |
194 | Look inside <filename>versioned_dependencies.mk</filename> for a list | 194 | Look inside <filename>versioned_dependencies.mk</filename> for a list | |
195 | of supported packages.</para> | 195 | of supported packages.</para> | |
196 | </sect2> | 196 | </sect2> | |
197 | 197 | |||
198 | </sect1> | 198 | </sect1> | |
199 | 199 | |||
200 | <sect1 id="creating.examples"> | 200 | <sect1 id="creating.examples"> | |
201 | <title>Examples</title> | 201 | <title>Examples</title> | |
202 | 202 | |||
203 | <sect2 id="creating.nvu"> | 203 | <sect2 id="creating.nvu"> | |
204 | <title>How the www/nvu package came into pkgsrc</title> | 204 | <title>How the www/nvu package came into pkgsrc</title> | |
205 | 205 | |||
206 | <sect3 id="creating.nvu.init"> | 206 | <sect3 id="creating.nvu.init"> | |
207 | <title>The initial package</title> | 207 | <title>The initial package</title> | |
208 | 208 | |||
209 | <para>Looking at the file <filename>pkgsrc/doc/TODO</filename>, I saw | 209 | <para>Looking at the file <filename>pkgsrc/doc/TODO</filename>, I saw | |
210 | that the <quote>nvu</quote> package has not yet been imported into | 210 | that the <quote>nvu</quote> package has not yet been imported into | |
211 | pkgsrc. As the description says it has to do with the web, the obvious | 211 | pkgsrc. As the description says it has to do with the web, the obvious | |
212 | choice for the category is <quote>www</quote>.</para> | 212 | choice for the category is <quote>www</quote>.</para> | |
213 | 213 | |||
214 | <programlisting> | 214 | <programlisting> | |
215 | &uprompt; mkdir www/nvu | 215 | &uprompt; mkdir www/nvu | |
216 | &uprompt; cd www/nvu | 216 | &uprompt; cd www/nvu | |
217 | </programlisting> | 217 | </programlisting> | |
218 | 218 | |||
219 | <para>The web site says that the sources are available as a tar file, so | 219 | <para>The web site says that the sources are available as a tar file, so | |
220 | I fed that URL to the <command>url2pkg</command> program:</para> | 220 | I fed that URL to the <command>url2pkg</command> program:</para> | |
221 | 221 | |||
222 | <programlisting> | 222 | <programlisting> | |
223 | &uprompt; url2pkg http://cvs.nvu.com/download/nvu-1.0-sources.tar.bz2 | 223 | &uprompt; url2pkg http://cvs.nvu.com/download/nvu-1.0-sources.tar.bz2 | |
224 | </programlisting> | 224 | </programlisting> | |
225 | 225 | |||
226 | <para>My editor popped up, and I added a <varname>PKGNAME</varname> line | 226 | <para>My editor popped up, and I added a <varname>PKGNAME</varname> line | |
227 | below the <varname>DISTNAME</varname> line, as the package name should | 227 | below the <varname>DISTNAME</varname> line, as the package name should | |
228 | not have the word <quote>sources</quote> in it. I also filled in the | 228 | not have the word <quote>sources</quote> in it. I also filled in the | |
229 | <varname>MAINTAINER</varname>, <varname>HOMEPAGE</varname> and | 229 | <varname>MAINTAINER</varname>, <varname>HOMEPAGE</varname> and | |
230 | <varname>COMMENT</varname> fields. Then the package | 230 | <varname>COMMENT</varname> fields. Then the package | |
231 | <filename>Makefile</filename> looked like that:</para> | 231 | <filename>Makefile</filename> looked like that:</para> | |
232 | 232 | |||
233 | <programlisting> | 233 | <programlisting> | |
234 | # $NetBSD$ | 234 | # $NetBSD$ | |
235 | # | 235 | # | |
236 | 236 | |||
237 | DISTNAME= nvu-1.0-sources | 237 | DISTNAME= nvu-1.0-sources | |
238 | PKGNAME= nvu-1.0 | 238 | PKGNAME= nvu-1.0 | |
239 | CATEGORIES= www | 239 | CATEGORIES= www | |
240 | MASTER_SITES= http://cvs.nvu.com/download/ | 240 | MASTER_SITES= http://cvs.nvu.com/download/ | |
241 | EXTRACT_SUFX= .tar.bz2 | 241 | EXTRACT_SUFX= .tar.bz2 | |
242 | 242 | |||
243 | MAINTAINER= rillig@NetBSD.org | 243 | MAINTAINER= rillig@NetBSD.org | |
244 | HOMEPAGE= http://cvs.nvu.com/ | 244 | HOMEPAGE= http://cvs.nvu.com/ | |
245 | COMMENT= Web Authoring System | 245 | COMMENT= Web Authoring System | |
246 | 246 | |||
247 | # url2pkg-marker (please do not remove this line.) | 247 | # url2pkg-marker (please do not remove this line.) | |
248 | .include "../../mk/bsd.pkg.mk" | 248 | .include "../../mk/bsd.pkg.mk" | |
249 | </programlisting> | 249 | </programlisting> | |
250 | 250 | |||
251 | <para>Then, I quit the editor and watched pkgsrc downloading a large | 251 | <para>Then, I quit the editor and watched pkgsrc downloading a large | |
252 | source archive:</para> | 252 | source archive:</para> | |
253 | 253 | |||
254 | <programlisting> | 254 | <programlisting> | |
255 | url2pkg> Running "make makesum" ... | 255 | url2pkg> Running "make makesum" ... | |
256 | => Required installed package digest>=20010302: digest-20060826 found | 256 | => Required installed package digest>=20010302: digest-20060826 found | |
257 | => Fetching nvu-1.0-sources.tar.bz2 | 257 | => Fetching nvu-1.0-sources.tar.bz2 | |
258 | Requesting http://cvs.nvu.com/download/nvu-1.0-sources.tar.bz2 | 258 | Requesting http://cvs.nvu.com/download/nvu-1.0-sources.tar.bz2 | |
259 | 100% |*************************************| 28992 KB 150.77 KB/s00:00 ETA | 259 | 100% |*************************************| 28992 KB 150.77 KB/s00:00 ETA | |
260 | 29687976 bytes retrieved in 03:12 (150.77 KB/s) | 260 | 29687976 bytes retrieved in 03:12 (150.77 KB/s) | |
261 | url2pkg> Running "make extract" ... | 261 | url2pkg> Running "make extract" ... | |
262 | => Required installed package digest>=20010302: digest-20060826 found | 262 | => Required installed package digest>=20010302: digest-20060826 found | |
263 | => Checksum SHA1 OK for nvu-1.0-sources.tar.bz2 | 263 | => Checksum SHA1 OK for nvu-1.0-sources.tar.bz2 | |
264 | => Checksum RMD160 OK for nvu-1.0-sources.tar.bz2 | 264 | => Checksum RMD160 OK for nvu-1.0-sources.tar.bz2 | |
265 | work.bacc -> /tmp/roland/pkgsrc/www/nvu/work.bacc | 265 | work.bacc -> /tmp/roland/pkgsrc/www/nvu/work.bacc | |
266 | ===> Installing dependencies for nvu-1.0 | 266 | ===> Installing dependencies for nvu-1.0 | |
267 | ===> Overriding tools for nvu-1.0 | 267 | ===> Overriding tools for nvu-1.0 | |
268 | ===> Extracting for nvu-1.0 | 268 | ===> Extracting for nvu-1.0 | |
269 | url2pkg> Adjusting the Makefile. | 269 | url2pkg> Adjusting the Makefile. | |
270 | 270 | |||
271 | Remember to correct CATEGORIES, HOMEPAGE, COMMENT, and DESCR when you're done! | 271 | Remember to correct CATEGORIES, HOMEPAGE, COMMENT, and DESCR when you're done! | |
272 | 272 | |||
273 | Good luck! (See pkgsrc/doc/pkgsrc.txt for some more help :-) | 273 | Good luck! (See pkgsrc/doc/pkgsrc.txt for some more help :-) | |
274 | </programlisting> | 274 | </programlisting> | |
275 | 275 | |||
276 | </sect3> | 276 | </sect3> | |
277 | 277 | |||
278 | <sect3 id="creating.nvu.problems"> | 278 | <sect3 id="creating.nvu.problems"> | |
279 | <title>Fixing all kinds of problems to make the package work</title> | 279 | <title>Fixing all kinds of problems to make the package work</title> | |
280 | 280 | |||
281 | <para>Now that the package has been extracted, let's see what's inside | 281 | <para>Now that the package has been extracted, let's see what's inside | |
282 | it. The package has a <filename>README.txt</filename>, but that only | 282 | it. The package has a <filename>README.txt</filename>, but that only | |
283 | says something about mozilla, so it's probably useless for seeing what | 283 | says something about mozilla, so it's probably useless for seeing what | |
284 | dependencies this package has. But since there is a GNU configure script | 284 | dependencies this package has. But since there is a GNU configure script | |
285 | in the package, let's hope that it will complain about everything it | 285 | in the package, let's hope that it will complain about everything it | |
286 | needs.</para> | 286 | needs.</para> | |
287 | 287 | |||
288 | <programlisting> | 288 | <programlisting> | |
289 | &uprompt; bmake | 289 | &uprompt; bmake | |
290 | => Required installed package digest>=20010302: digest-20060826 found | 290 | => Required installed package digest>=20010302: digest-20060826 found | |
291 | => Checksum SHA1 OK for nvu-1.0-sources.tar.bz2 | 291 | => Checksum SHA1 OK for nvu-1.0-sources.tar.bz2 | |
292 | => Checksum RMD160 OK for nvu-1.0-sources.tar.bz2 | 292 | => Checksum RMD160 OK for nvu-1.0-sources.tar.bz2 | |
293 | ===> Patching for nvu-1.0 | 293 | ===> Patching for nvu-1.0 | |
294 | ===> Creating toolchain wrappers for nvu-1.0 | 294 | ===> Creating toolchain wrappers for nvu-1.0 | |
295 | ===> Configuring for nvu-1.0 | 295 | ===> Configuring for nvu-1.0 | |
296 | [...] | 296 | [...] | |
297 | configure: error: Perl 5.004 or higher is required. | 297 | configure: error: Perl 5.004 or higher is required. | |
298 | [...] | 298 | [...] | |
299 | WARNING: Please add USE_TOOLS+=perl to the package Makefile. | 299 | WARNING: Please add USE_TOOLS+=perl to the package Makefile. | |
300 | [...] | 300 | [...] | |
301 | </programlisting> | 301 | </programlisting> | |
302 | 302 | |||
303 | <para>That worked quite well. So I opened the package Makefile in my | 303 | <para>That worked quite well. So I opened the package Makefile in my | |
304 | editor, and since it already has a <varname>USE_TOOLS</varname> line, I | 304 | editor, and since it already has a <varname>USE_TOOLS</varname> line, I | |
305 | just appended <quote>perl</quote> to it. Since the dependencies of the | 305 | just appended <quote>perl</quote> to it. Since the dependencies of the | |
306 | package have changed now, and since a perl wrapper is automatically | 306 | package have changed now, and since a perl wrapper is automatically | |
307 | installed in the <quote>tools</quote> phase, I need to build the package | 307 | installed in the <quote>tools</quote> phase, I need to build the package | |
308 | from scratch.</para> | 308 | from scratch.</para> | |
309 | 309 | |||
310 | <programlisting> | 310 | <programlisting> | |
311 | &uprompt; bmake clean | 311 | &uprompt; bmake clean | |
312 | ===> Cleaning for nvu-1.0 | 312 | ===> Cleaning for nvu-1.0 | |
313 | &uprompt; bmake | 313 | &uprompt; bmake | |
314 | [...] | 314 | [...] | |
315 | *** /tmp/roland/pkgsrc/www/nvu/work.bacc/.tools/bin/make is not \ | 315 | *** /tmp/roland/pkgsrc/www/nvu/work.bacc/.tools/bin/make is not \ | |
316 | GNU Make. You will not be able to build Mozilla without GNU Make. | 316 | GNU Make. You will not be able to build Mozilla without GNU Make. | |
317 | [...] | 317 | [...] | |
318 | </programlisting> | 318 | </programlisting> | |
319 | 319 | |||
320 | <para>So I added <quote>gmake</quote> to the | 320 | <para>So I added <quote>gmake</quote> to the | |
321 | <varname>USE_TOOLS</varname> line and tried again (from scratch).</para> | 321 | <varname>USE_TOOLS</varname> line and tried again (from scratch).</para> | |
322 | 322 | |||
323 | <programlisting> | 323 | <programlisting> | |
324 | [...] | 324 | [...] | |
325 | checking for GTK - version >= 1.2.0... no | 325 | checking for GTK - version >= 1.2.0... no | |
326 | *** Could not run GTK test program, checking why... | 326 | *** Could not run GTK test program, checking why... | |
327 | [...] | 327 | [...] | |
328 | </programlisting> | 328 | </programlisting> | |
329 | 329 | |||
330 | <para>Now to the other dependencies. The first question is: Where is the | 330 | <para>Now to the other dependencies. The first question is: Where is the | |
331 | GTK package hidden in pkgsrc?</para> | 331 | GTK package hidden in pkgsrc?</para> | |
332 | 332 | |||
333 | <programlisting> | 333 | <programlisting> | |
334 | &uprompt; echo ../../*/gtk* | 334 | &uprompt; echo ../../*/gtk* | |
335 | [many packages ...] | 335 | [many packages ...] | |
336 | &uprompt; echo ../../*/gtk | 336 | &uprompt; echo ../../*/gtk | |
337 | ../../x11/gtk | 337 | ../../x11/gtk | |
338 | &uprompt; echo ../../*/gtk2 | 338 | &uprompt; echo ../../*/gtk2 | |
339 | ../../x11/gtk2 | 339 | ../../x11/gtk2 | |
340 | &uprompt; echo ../../*/gtk2/bui* | 340 | &uprompt; echo ../../*/gtk2/bui* | |
341 | ../../x11/gtk2/buildlink3.mk | 341 | ../../x11/gtk2/buildlink3.mk | |
342 | </programlisting> | 342 | </programlisting> | |
343 | 343 | |||
344 | <para>The first try was definitely too broad. The second one had exactly | 344 | <para>The first try was definitely too broad. The second one had exactly | |
345 | one result, which is very good. But there is one pitfall with GNOME | 345 | one result, which is very good. But there is one pitfall with GNOME | |
346 | packages. Before GNOME 2 had been released, there were already many | 346 | packages. Before GNOME 2 had been released, there were already many | |
347 | GNOME 1 packages in pkgsrc. To be able to continue to use these | 347 | GNOME 1 packages in pkgsrc. To be able to continue to use these | |
348 | packages, the GNOME 2 packages were imported as separate packages, and | 348 | packages, the GNOME 2 packages were imported as separate packages, and | |
349 | their names usually have a <quote>2</quote> appended. So I checked | 349 | their names usually have a <quote>2</quote> appended. So I checked | |
350 | whether this was the case here, and indeed it was.</para> | 350 | whether this was the case here, and indeed it was.</para> | |
351 | 351 | |||
352 | <para>Since the GTK2 package has a <filename>buildlink3.mk</filename> | 352 | <para>Since the GTK2 package has a <filename>buildlink3.mk</filename> | |
353 | file, adding the dependency is very easy. I just inserted an | 353 | file, adding the dependency is very easy. I just inserted an | |
354 | <literal>.include</literal> line before the last line of the package | 354 | <literal>.include</literal> line before the last line of the package | |
355 | <filename>Makefile</filename>, so that it now looks like this:</para> | 355 | <filename>Makefile</filename>, so that it now looks like this:</para> | |
356 | 356 | |||
357 | <programlisting> | 357 | <programlisting> | |
358 | [...] | 358 | [...] | |
359 | .include "../../x11/gtk2/buildlink3.mk" | 359 | .include "../../x11/gtk2/buildlink3.mk" | |
360 | .include "../../mk/bsd.pkg.mk | 360 | .include "../../mk/bsd.pkg.mk | |
361 | </programlisting> | 361 | </programlisting> | |
362 | 362 | |||
363 | <para>After another <command>bmake clean && bmake</command>, the answer | 363 | <para>After another <command>bmake clean && bmake</command>, the answer | |
364 | was:</para> | 364 | was:</para> | |
365 | 365 | |||
366 | <programlisting> | 366 | <programlisting> | |
367 | [...] | 367 | [...] | |
368 | checking for gtk-config... /home/roland/pkg/bin/gtk-config | 368 | checking for gtk-config... /home/roland/pkg/bin/gtk-config | |
369 | checking for GTK - version >= 1.2.0... no | 369 | checking for GTK - version >= 1.2.0... no | |
370 | *** Could not run GTK test program, checking why... | 370 | *** Could not run GTK test program, checking why... | |
371 | *** The test program failed to compile or link. See the file config.log for the | 371 | *** The test program failed to compile or link. See the file config.log for the | |
372 | *** exact error that occured. This usually means GTK was incorrectly installed | 372 | *** exact error that occured. This usually means GTK was incorrectly installed | |
373 | *** or that you have moved GTK since it was installed. In the latter case, you | 373 | *** or that you have moved GTK since it was installed. In the latter case, you | |
374 | *** may want to edit the gtk-config script: /home/roland/pkg/bin/gtk-config | 374 | *** may want to edit the gtk-config script: /home/roland/pkg/bin/gtk-config | |
375 | configure: error: Test for GTK failed. | 375 | configure: error: Test for GTK failed. | |
376 | [...] | 376 | [...] | |
377 | </programlisting> | 377 | </programlisting> | |
378 | 378 | |||
379 | <para>In this particular case, the assumption that <quote>every package | 379 | <para>In this particular case, the assumption that <quote>every package | |
380 | prefers GNOME 2</quote> had been wrong. The first of the lines above | 380 | prefers GNOME 2</quote> had been wrong. The first of the lines above | |
381 | told me that this package really wanted to have the GNOME 1 version of | 381 | told me that this package really wanted to have the GNOME 1 version of | |
382 | GTK. If the package had looked for GTK2, it would have looked for | 382 | GTK. If the package had looked for GTK2, it would have looked for | |
383 | <command>pkg-config</command> instead of <command>gtk-config</command>. | 383 | <command>pkg-config</command> instead of <command>gtk-config</command>. | |
384 | So I changed the <literal>x11/gtk2</literal> to | 384 | So I changed the <literal>x11/gtk2</literal> to | |
385 | <literal>x11/gtk</literal> in the package <filename>Makefile</filename>, | 385 | <literal>x11/gtk</literal> in the package <filename>Makefile</filename>, | |
386 | and tried again.</para> | 386 | and tried again.</para> | |
387 | 387 | |||
388 | <programlisting> | 388 | <programlisting> | |
389 | [...] | 389 | [...] | |
390 | cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" [...] | 390 | cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" [...] | |
391 | In file included from xpidl.c:42: | 391 | In file included from xpidl.c:42: | |
392 | xpidl.h:53:24: libIDL/IDL.h: No such file or directory | 392 | xpidl.h:53:24: libIDL/IDL.h: No such file or directory | |
393 | In file included from xpidl.c:42: | 393 | In file included from xpidl.c:42: | |
394 | xpidl.h:132: error: parse error before "IDL_ns" | 394 | xpidl.h:132: error: parse error before "IDL_ns" | |
395 | [...] | 395 | [...] | |
396 | </programlisting> | 396 | </programlisting> | |
397 | 397 | |||
398 | <para>The package still does not find all of its dependencies. Now the | 398 | <para>The package still does not find all of its dependencies. Now the | |
399 | question is: Which package provides the | 399 | question is: Which package provides the | |
400 | <filename>libIDL/IDL.h</filename> header file?</para> | 400 | <filename>libIDL/IDL.h</filename> header file?</para> | |
401 | 401 | |||
402 | <programlisting> | 402 | <programlisting> | |
403 | &uprompt; echo ../../*/*idl* | 403 | &uprompt; echo ../../*/*idl* | |
404 | ../../devel/py-idle ../../wip/idled ../../x11/acidlaunch | 404 | ../../devel/py-idle ../../wip/idled ../../x11/acidlaunch | |
405 | &uprompt; echo ../../*/*IDL* | 405 | &uprompt; echo ../../*/*IDL* | |
406 | ../../net/libIDL | 406 | ../../net/libIDL | |
407 | </programlisting> | 407 | </programlisting> | |
408 | 408 | |||
409 | <para>Let's take the one from the second try. So I included the | 409 | <para>Let's take the one from the second try. So I included the | |
410 | <filename>../../net/libIDL/buildlink3.mk</filename> file and tried | 410 | <filename>../../net/libIDL/buildlink3.mk</filename> file and tried | |
411 | again. But the error didn't change. After digging through some of the | 411 | again. But the error didn't change. After digging through some of the | |
412 | code, I concluded that the build process of the package was broken and | 412 | code, I concluded that the build process of the package was broken and | |
413 | couldn't have ever worked, but since the Mozilla source tree is quite | 413 | couldn't have ever worked, but since the Mozilla source tree is quite | |
414 | large, I didn't want to fix it. So I added the following to the package | 414 | large, I didn't want to fix it. So I added the following to the package | |
415 | <filename>Makefile</filename> and tried again:</para> | 415 | <filename>Makefile</filename> and tried again:</para> | |
416 | 416 | |||
417 | <programlisting> | 417 | <programlisting> | |
418 | CPPFLAGS+= -I${BUILDLINK_PREFIX.libIDL}/include/libIDL-2.0 | 418 | CPPFLAGS+= -I${BUILDLINK_PREFIX.libIDL}/include/libIDL-2.0 | |
419 | BUILDLINK_TRANSFORM+= -l:IDL:IDL-2 | 419 | BUILDLINK_TRANSFORM+= -l:IDL:IDL-2 | |
420 | </programlisting> | 420 | </programlisting> | |
421 | 421 | |||
422 | <para>The latter line is needed because the package expects the library | 422 | <para>The latter line is needed because the package expects the library | |
423 | <filename>libIDL.so</filename>, but only | 423 | <filename>libIDL.so</filename>, but only | |
424 | <filename>libIDL-2.so</filename> is available. So I told the compiler | 424 | <filename>libIDL-2.so</filename> is available. So I told the compiler | |
425 | wrapper to rewrite that on the fly.</para> | 425 | wrapper to rewrite that on the fly.</para> | |
426 | 426 | |||
427 | <para>The next problem was related to a recent change of the FreeType | 427 | <para>The next problem was related to a recent change of the FreeType | |
428 | interface. I looked up in <filename role="pkg">www/seamonkey</filename> | 428 | interface. I looked up in <filename role="pkg">www/seamonkey</filename> | |
429 | which patch files were relevant for this issue and copied them to the | 429 | which patch files were relevant for this issue and copied them to the | |
430 | <filename>patches</filename> directory. Then I retried, fixed the | 430 | <filename>patches</filename> directory. Then I retried, fixed the | |
431 | patches so that they applied cleanly and retried again. This time, | 431 | patches so that they applied cleanly and retried again. This time, | |
432 | everything worked.</para> | 432 | everything worked.</para> | |
433 | 433 | |||
434 | </sect3> | 434 | </sect3> | |
435 | 435 | |||
436 | <sect3 id="creating.nvu.inst"> | 436 | <sect3 id="creating.nvu.inst"> | |
437 | <title>Installing the package</title> | 437 | <title>Installing the package</title> | |
438 | 438 | |||
439 | <programlisting> | 439 | <programlisting> | |
440 | &uprompt; bmake CHECK_FILES=no install | 440 | &uprompt; bmake CHECK_FILES=no install | |
441 | [...] | 441 | [...] | |
442 | &uprompt; bmake print-PLIST >PLIST | 442 | &uprompt; bmake print-PLIST >PLIST | |
443 | &uprompt; bmake deinstall | 443 | &uprompt; bmake deinstall | |
444 | &uprompt; bmake install | 444 | &uprompt; bmake install | |
445 | </programlisting> | 445 | </programlisting> | |
446 | 446 | |||
447 | </sect3> | 447 | </sect3> | |
448 | </sect2> | 448 | </sect2> | |
449 | </sect1> | 449 | </sect1> | |
450 | </chapter> | 450 | </chapter> |
@@ -1,56 +1,55 @@ | @@ -1,56 +1,55 @@ | |||
1 | # $NetBSD: versioned_dependencies.mk,v 1.23 2016/06/30 17:45:30 wiz Exp $ | 1 | # $NetBSD: versioned_dependencies.mk,v 1.24 2016/06/30 18:03:46 wiz Exp $ | |
2 | # | 2 | # | |
3 | # This file determines which separate distribution of a Python | 3 | # This file determines which separate distribution of a Python | |
4 | # package is used as dependency, depending on the Python version | 4 | # package is used as dependency, depending on the Python version | |
5 | # used. | 5 | # used. | |
6 | # | 6 | # | |
7 | # === User-settable variables === | 7 | # === User-settable variables === | |
8 | # | 8 | # | |
9 | # PYTHON_VERSIONED_DEPENDENCIES | 9 | # PYTHON_VERSIONED_DEPENDENCIES | |
10 | # The Python package which should be added as a dependency. | 10 | # The Python package which should be added as a dependency. | |
11 | # | 11 | # | |
12 | # Possible values: dateutil | 12 | # Possible values: dateutil | |
13 | # Default: (nothing) | 13 | # Default: (nothing) | |
14 | # | 14 | # | |
15 | 15 | |||
16 | .include "../../lang/python/pyversion.mk" | 16 | .include "../../lang/python/pyversion.mk" | |
17 | 17 | |||
18 | _SUPPORTED_PACKAGES=# empty | 18 | _SUPPORTED_PACKAGES=# empty | |
19 | _SUPPORTED_PACKAGES+=Pmw x11/py-Pmw x11/py-Pmw2 | 19 | _SUPPORTED_PACKAGES+=Pmw x11/py-Pmw x11/py-Pmw2 | |
20 | _SUPPORTED_PACKAGES+=X textproc/py-X2 textproc/py-X | 20 | _SUPPORTED_PACKAGES+=X textproc/py-X2 textproc/py-X | |
21 | _SUPPORTED_PACKAGES+=cairo graphics/py-cairo graphics/py-cairo3 | 21 | _SUPPORTED_PACKAGES+=cairo graphics/py-cairo graphics/py-cairo3 | |
22 | _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil | 22 | _SUPPORTED_PACKAGES+=dateutil time/py-dateutil time/py-dateutil | |
23 | _SUPPORTED_PACKAGES+=dialog devel/py-dialog2 devel/py-dialog | 23 | _SUPPORTED_PACKAGES+=dialog devel/py-dialog2 devel/py-dialog | |
24 | _SUPPORTED_PACKAGES+=dns net/py-dns net/py-dns | |||
25 | _SUPPORTED_PACKAGES+=ephem math/py-ephem math/py-ephem3 | 24 | _SUPPORTED_PACKAGES+=ephem math/py-ephem math/py-ephem3 | |
26 | _SUPPORTED_PACKAGES+=flup www/py-flup www/py-flup3 | 25 | _SUPPORTED_PACKAGES+=flup www/py-flup www/py-flup3 | |
27 | _SUPPORTED_PACKAGES+=gobject devel/py-gobject devel/py-gobject3 | 26 | _SUPPORTED_PACKAGES+=gobject devel/py-gobject devel/py-gobject3 | |
28 | _SUPPORTED_PACKAGES+=google-api-python-client www/py-google-api-python-client www/py-google-api-python-client-py3 | 27 | _SUPPORTED_PACKAGES+=google-api-python-client www/py-google-api-python-client www/py-google-api-python-client-py3 | |
29 | _SUPPORTED_PACKAGES+=jsonlib textproc/py-jsonlib textproc/py-jsonlib3 | 28 | _SUPPORTED_PACKAGES+=jsonlib textproc/py-jsonlib textproc/py-jsonlib3 | |
30 | _SUPPORTED_PACKAGES+=python-digest www/py-python-digest www/py-python3-digest | 29 | _SUPPORTED_PACKAGES+=python-digest www/py-python-digest www/py-python3-digest | |
31 | 30 | |||
32 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} | 31 | .for pattern in ${PYTHON_VERSIONED_DEPENDENCIES} | |
33 | _PKG_MATCHED= no | 32 | _PKG_MATCHED= no | |
34 | pkg:= ${pattern:C/:.*//} | 33 | pkg:= ${pattern:C/:.*//} | |
35 | type:= ${pattern:C/[^:]*//} | 34 | type:= ${pattern:C/[^:]*//} | |
36 | .for name py2dir py3dir in ${_SUPPORTED_PACKAGES} | 35 | .for name py2dir py3dir in ${_SUPPORTED_PACKAGES} | |
37 | .if "${pkg}" == "${name}" | 36 | .if "${pkg}" == "${name}" | |
38 | _PKG_MATCHED= yes | 37 | _PKG_MATCHED= yes | |
39 | .if ${PYPKGPREFIX} == "py27" | 38 | .if ${PYPKGPREFIX} == "py27" | |
40 | dir:= ${py2dir} | 39 | dir:= ${py2dir} | |
41 | .else | 40 | .else | |
42 | dir:= ${py3dir} | 41 | dir:= ${py3dir} | |
43 | .endif | 42 | .endif | |
44 | .if "${type}" == ":link" | 43 | .if "${type}" == ":link" | |
45 | .include "../../${dir}/buildlink3.mk" | 44 | .include "../../${dir}/buildlink3.mk" | |
46 | .elif "${type}" == ":build" | 45 | .elif "${type}" == ":build" | |
47 | BUILD_DEPENDS:= ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} | 46 | BUILD_DEPENDS:= ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} | |
48 | .else | 47 | .else | |
49 | DEPENDS:= ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} | 48 | DEPENDS:= ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} | |
50 | .endif | 49 | .endif | |
51 | .endif | 50 | .endif | |
52 | .endfor | 51 | .endfor | |
53 | .if ${_PKG_MATCHED} == "no" | 52 | .if ${_PKG_MATCHED} == "no" | |
54 | PKG_FAIL_REASON+= "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES" | 53 | PKG_FAIL_REASON+= "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES" | |
55 | .endif | 54 | .endif | |
56 | .endfor | 55 | .endfor |
@@ -1,17 +1,17 @@ | @@ -1,17 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2016/06/26 20:10:23 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2016/06/30 18:03:46 wiz Exp $ | |
2 | 2 | |||
3 | VERSION= 2.0.8 | 3 | VERSION= 2.0.8 | |
4 | DISTNAME= pyspf-${VERSION} | 4 | DISTNAME= pyspf-${VERSION} | |
5 | PKGNAME= ${PYPKGPREFIX}-spf-${VERSION} | 5 | PKGNAME= ${PYPKGPREFIX}-spf-${VERSION} | |
6 | CATEGORIES= mail python | 6 | CATEGORIES= mail python | |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyspf/} | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyspf/} | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://pypi.python.org/pypi/pyspf | 10 | HOMEPAGE= https://pypi.python.org/pypi/pyspf | |
11 | COMMENT= Python implementation of the RFC 4408 SPF protocol | 11 | COMMENT= Python implementation of the RFC 4408 SPF protocol | |
12 | LICENSE= python-software-foundation | 12 | LICENSE= python-software-foundation | |
13 | 13 | |||
14 | PYTHON_VERSIONED_DEPENDENCIES+= dns | 14 | DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns | |
15 | 15 | |||
16 | .include "../../lang/python/distutils.mk" | 16 | .include "../../lang/python/distutils.mk" | |
17 | .include "../../mk/bsd.pkg.mk" | 17 | .include "../../mk/bsd.pkg.mk" |
@@ -1,152 +1,152 @@ | @@ -1,152 +1,152 @@ | |||
1 | # $NetBSD: Makefile,v 1.144 2016/06/30 17:41:17 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.145 2016/06/30 18:03:46 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= calibre-2.60.0 | 3 | DISTNAME= calibre-2.60.0 | |
4 | CATEGORIES= misc | 4 | CATEGORIES= misc | |
5 | #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/} | 5 | #MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/} | |
6 | MASTER_SITES= http://download.calibre-ebook.com/${PKGVERSION_NOREV}/ | 6 | MASTER_SITES= http://download.calibre-ebook.com/${PKGVERSION_NOREV}/ | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | 8 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://www.calibre-ebook.com/ | 11 | HOMEPAGE= http://www.calibre-ebook.com/ | |
12 | COMMENT= E-book library management application | 12 | COMMENT= E-book library management application | |
13 | LICENSE= gnu-gpl-v3 | 13 | LICENSE= gnu-gpl-v3 | |
14 | 14 | |||
15 | DEPENDS+= ${PYPKGPREFIX}-Pillow>=2.7.0:../../graphics/py-Pillow | 15 | DEPENDS+= ${PYPKGPREFIX}-Pillow>=2.7.0:../../graphics/py-Pillow | |
16 | #DEPENDS+= help2man>=1.36.4:../../converters/help2man | 16 | #DEPENDS+= help2man>=1.36.4:../../converters/help2man | |
17 | DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | 17 | DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | |
18 | DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils | 18 | DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils | |
19 | #DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils | 19 | #DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils | |
20 | DEPENDS+= ${PYPKGPREFIX}-lxml>=3.2.1:../../textproc/py-lxml | 20 | DEPENDS+= ${PYPKGPREFIX}-lxml>=3.2.1:../../textproc/py-lxml | |
21 | DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup | 21 | DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup | |
22 | DEPENDS+= ${PYPKGPREFIX}-dns>=1.6.0:../../net/py-dns | |||
22 | DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize | 23 | DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize | |
23 | DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect | 24 | DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect | |
24 | DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils | 25 | DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils | |
25 | DEPENDS+= ${PYPKGPREFIX}-psutil>=0.6.1:../../sysutils/py-psutil | 26 | DEPENDS+= ${PYPKGPREFIX}-psutil>=0.6.1:../../sysutils/py-psutil | |
26 | ## Let's depend on the ones we have in pkgsrc instead of the bundled ones. | 27 | ## Let's depend on the ones we have in pkgsrc instead of the bundled ones. | |
27 | #DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf | 28 | #DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf | |
28 | DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy | 29 | DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy | |
29 | DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib | 30 | DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib | |
30 | #DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet | 31 | #DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet | |
31 | DEPENDS+= ${PYPKGPREFIX}-netifaces>=0.8:../../net/py-netifaces | 32 | DEPENDS+= ${PYPKGPREFIX}-netifaces>=0.8:../../net/py-netifaces | |
32 | DEPENDS+= ${PYPKGPREFIX}-apsw>=3.7.17:../../databases/py-apsw | 33 | DEPENDS+= ${PYPKGPREFIX}-apsw>=3.7.17:../../databases/py-apsw | |
33 | 34 | |||
34 | # dateutil>=1.4.1 | 35 | # dateutil>=1.4.1 | |
35 | # dns>=1.6.0 | 36 | PYTHON_VERSIONED_DEPENDENCIES= dateutil | |
36 | PYTHON_VERSIONED_DEPENDENCIES= dateutil dns | |||
37 | 37 | |||
38 | EXTRACT_USING= bsdtar | 38 | EXTRACT_USING= bsdtar | |
39 | 39 | |||
40 | USE_LANGUAGES= c c++ | 40 | USE_LANGUAGES= c c++ | |
41 | USE_LIBTOOL= yes | 41 | USE_LIBTOOL= yes | |
42 | USE_TOOLS+= pkg-config pax | 42 | USE_TOOLS+= pkg-config pax | |
43 | PYTHON_VERSIONS_ACCEPTED= 27 | 43 | PYTHON_VERSIONS_ACCEPTED= 27 | |
44 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not ported as of 2.1.0; also: py-mechanize, py-beautifulsoup, py-imaging, py-netifaces | 44 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not ported as of 2.1.0; also: py-mechanize, py-beautifulsoup, py-imaging, py-netifaces | |
45 | PYDISTUTILSPKG= yes | 45 | PYDISTUTILSPKG= yes | |
46 | PYSETUPOPTARGS= # empty | 46 | PYSETUPOPTARGS= # empty | |
47 | PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX} | 47 | PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX} | |
48 | 48 | |||
49 | INSTALLATION_DIRS= share/applications | 49 | INSTALLATION_DIRS= share/applications | |
50 | INSTALLATION_DIRS= share/icons | 50 | INSTALLATION_DIRS= share/icons | |
51 | INSTALLATION_DIRS= share/calibre/recipes | 51 | INSTALLATION_DIRS= share/calibre/recipes | |
52 | 52 | |||
53 | FIX_PYTHON_PATHS+= *.py | 53 | FIX_PYTHON_PATHS+= *.py | |
54 | FIX_PYTHON_PATHS+= recipes/*.recipe | 54 | FIX_PYTHON_PATHS+= recipes/*.recipe | |
55 | FIX_PYTHON_PATHS+= */*.py | 55 | FIX_PYTHON_PATHS+= */*.py | |
56 | FIX_PYTHON_PATHS+= */*/*.py | 56 | FIX_PYTHON_PATHS+= */*/*.py | |
57 | FIX_PYTHON_PATHS+= */*/*/*.py | 57 | FIX_PYTHON_PATHS+= */*/*/*.py | |
58 | FIX_PYTHON_PATHS+= */*/*/*/*.py | 58 | FIX_PYTHON_PATHS+= */*/*/*/*.py | |
59 | FIX_PYTHON_PATHS+= */*/*/*/*/*.py | 59 | FIX_PYTHON_PATHS+= */*/*/*/*/*.py | |
60 | FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py | 60 | FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py | |
61 | 61 | |||
62 | SUBST_CLASSES+= prefix | 62 | SUBST_CLASSES+= prefix | |
63 | SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt5/bin/qmake'," | 63 | SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt5/bin/qmake'," | |
64 | SUBST_MESSAGE.prefix= Fixing path to QMAKE | 64 | SUBST_MESSAGE.prefix= Fixing path to QMAKE | |
65 | SUBST_STAGE.prefix= post-patch | 65 | SUBST_STAGE.prefix= post-patch | |
66 | SUBST_FILES.prefix= setup/build_environment.py | 66 | SUBST_FILES.prefix= setup/build_environment.py | |
67 | 67 | |||
68 | # This one is for /usr/bin/env python (or even /usr/bin/env Python or /usr/bin/python2) | 68 | # This one is for /usr/bin/env python (or even /usr/bin/env Python or /usr/bin/python2) | |
69 | SUBST_CLASSES+= path | 69 | SUBST_CLASSES+= path | |
70 | SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN}," | 70 | SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN}," | |
71 | SUBST_MESSAGE.path= Fixing path to python. | 71 | SUBST_MESSAGE.path= Fixing path to python. | |
72 | SUBST_STAGE.path= post-patch | 72 | SUBST_STAGE.path= post-patch | |
73 | SUBST_FILES.path= ${FIX_PYTHON_PATHS} | 73 | SUBST_FILES.path= ${FIX_PYTHON_PATHS} | |
74 | 74 | |||
75 | REPLACE_BASH+= resources/calibre-portable.sh | 75 | REPLACE_BASH+= resources/calibre-portable.sh | |
76 | 76 | |||
77 | # These ones are for replacing python[0-9*] with PYTHONBIN | 77 | # These ones are for replacing python[0-9*] with PYTHONBIN | |
78 | REPLACE_PYTHON+= recipes/animal_politico.recipe | 78 | REPLACE_PYTHON+= recipes/animal_politico.recipe | |
79 | REPLACE_PYTHON+= recipes/respekt_magazine.recipe | 79 | REPLACE_PYTHON+= recipes/respekt_magazine.recipe | |
80 | REPLACE_PYTHON+= recipes/respekt_web.recipe | 80 | REPLACE_PYTHON+= recipes/respekt_web.recipe | |
81 | REPLACE_PYTHON+= recipes/kompiutierra.recipe | 81 | REPLACE_PYTHON+= recipes/kompiutierra.recipe | |
82 | REPLACE_PYTHON+= recipes/trouw.recipe | 82 | REPLACE_PYTHON+= recipes/trouw.recipe | |
83 | REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py | 83 | REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py | |
84 | REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py | 84 | REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py | |
85 | REPLACE_PYTHON+= src/calibre/utils/*.py | 85 | REPLACE_PYTHON+= src/calibre/utils/*.py | |
86 | REPLACE_PYTHON+= src/odf/*.py | 86 | REPLACE_PYTHON+= src/odf/*.py | |
87 | 87 | |||
88 | MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig | 88 | MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig | |
89 | MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib | 89 | MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib | |
90 | MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo | 90 | MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo | |
91 | MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib | 91 | MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib | |
92 | MAKE_ENV+= SIP_BIN=${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX} | 92 | MAKE_ENV+= SIP_BIN=${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX} | |
93 | #MAKE_ENV+= WITH_USB=no | 93 | #MAKE_ENV+= WITH_USB=no | |
94 | 94 | |||
95 | # Let's depend on the ones we have in pkgsrc instead of the bundled ones. | 95 | # Let's depend on the ones we have in pkgsrc instead of the bundled ones. | |
96 | pre-configure: | 96 | pre-configure: | |
97 | cd ${WRKSRC} && rm -rf src/cherrypy src/pyPdf src/html5lib src/chardet | 97 | cd ${WRKSRC} && rm -rf src/cherrypy src/pyPdf src/html5lib src/chardet | |
98 | 98 | |||
99 | # Turn off x bits on non-executable files. | 99 | # Turn off x bits on non-executable files. | |
100 | post-extract: | 100 | post-extract: | |
101 | find ${WRKSRC}/src/calibre/devices ${WRKSRC}/src/calibre/ebooks ${WRKSRC}/src/calibre/web -name '*.py' -exec chmod a-x \{} \; | 101 | find ${WRKSRC}/src/calibre/devices ${WRKSRC}/src/calibre/ebooks ${WRKSRC}/src/calibre/web -name '*.py' -exec chmod a-x \{} \; | |
102 | find ${WRKSRC}/resources/images/mimetypes -name '*.png' -exec chmod a-x \{} \; | 102 | find ${WRKSRC}/resources/images/mimetypes -name '*.png' -exec chmod a-x \{} \; | |
103 | chmod a-x ${WRKSRC}/src/calibre/utils/Zeroconf.py | 103 | chmod a-x ${WRKSRC}/src/calibre/utils/Zeroconf.py | |
104 | chmod a-x ${WRKSRC}/src/calibre/utils/smtplib.py | 104 | chmod a-x ${WRKSRC}/src/calibre/utils/smtplib.py | |
105 | 105 | |||
106 | # not sure why libheadless installed into wrong directory | 106 | # not sure why libheadless installed into wrong directory | |
107 | # side effect of patch-setup_extensions.py? | 107 | # side effect of patch-setup_extensions.py? | |
108 | post-install: | 108 | post-install: | |
109 | cd ${WRKSRC}/recipes && pax -wr -pma *.recipe \ | 109 | cd ${WRKSRC}/recipes && pax -wr -pma *.recipe \ | |
110 | ${DESTDIR}${PREFIX}/share/calibre/recipes | 110 | ${DESTDIR}${PREFIX}/share/calibre/recipes | |
111 | cd ${WRKSRC} && pax -wr -pma Changelog* README.md \ | 111 | cd ${WRKSRC} && pax -wr -pma Changelog* README.md \ | |
112 | COPYRIGHT INSTALL LICENSE.* \ | 112 | COPYRIGHT INSTALL LICENSE.* \ | |
113 | ${DESTDIR}${PREFIX}/share/doc/calibre | 113 | ${DESTDIR}${PREFIX}/share/doc/calibre | |
114 | cd ${DESTDIR}${PREFIX} && ${MV} lib/calibre/calibre/plugins/.libs/libheadless.so lib/calibre/calibre/plugins/libheadless.so | 114 | cd ${DESTDIR}${PREFIX} && ${MV} lib/calibre/calibre/plugins/.libs/libheadless.so lib/calibre/calibre/plugins/libheadless.so | |
115 | ${RM} ${DESTDIR}${PREFIX}/bin/calibre-uninstall | 115 | ${RM} ${DESTDIR}${PREFIX}/bin/calibre-uninstall | |
116 | 116 | |||
117 | .include "../../lang/python/application.mk" | 117 | .include "../../lang/python/application.mk" | |
118 | .include "../../lang/python/versioned_dependencies.mk" | 118 | .include "../../lang/python/versioned_dependencies.mk" | |
119 | .include "../../databases/sqlite3/buildlink3.mk" | 119 | .include "../../databases/sqlite3/buildlink3.mk" | |
120 | BUILDLINK_API_DEPENDS.chmlib+= chmlib>=0.40 | 120 | BUILDLINK_API_DEPENDS.chmlib+= chmlib>=0.40 | |
121 | .include "../../devel/chmlib/buildlink3.mk" | 121 | .include "../../devel/chmlib/buildlink3.mk" | |
122 | BUILDLINK_API_DEPENDS.libmtp+= libmtp>=1.1.5 | 122 | BUILDLINK_API_DEPENDS.libmtp+= libmtp>=1.1.5 | |
123 | .include "../../devel/libmtp/buildlink3.mk" | 123 | .include "../../devel/libmtp/buildlink3.mk" | |
124 | BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12 | 124 | BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12 | |
125 | .include "../../devel/libusb/buildlink3.mk" | 125 | .include "../../devel/libusb/buildlink3.mk" | |
126 | .include "../../fonts/fontconfig/buildlink3.mk" | 126 | .include "../../fonts/fontconfig/buildlink3.mk" | |
127 | BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8 | 127 | BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8 | |
128 | .include "../../graphics/libwmf/buildlink3.mk" | 128 | .include "../../graphics/libwmf/buildlink3.mk" | |
129 | .include "../../lang/python/egg.mk" | 129 | .include "../../lang/python/egg.mk" | |
130 | _PYSETUPTOOLSINSTALLARGS= # empty | 130 | _PYSETUPTOOLSINSTALLARGS= # empty | |
131 | # Get rid of --root=${DESTDIR}, use our own version from above instead. | 131 | # Get rid of --root=${DESTDIR}, use our own version from above instead. | |
132 | # because the setup.py is not the standard one and behaves differently. | 132 | # because the setup.py is not the standard one and behaves differently. | |
133 | _PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS} | 133 | _PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS} | |
134 | #.include "../../lang/python/extension.mk" | 134 | #.include "../../lang/python/extension.mk" | |
135 | BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2 | 135 | BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2 | |
136 | .include "../../print/podofo/buildlink3.mk" | 136 | .include "../../print/podofo/buildlink3.mk" | |
137 | BUILDLINK_API_DEPENDS.poppler+= poppler>=0.20.2 | 137 | BUILDLINK_API_DEPENDS.poppler+= poppler>=0.20.2 | |
138 | .include "../../print/poppler-includes/buildlink3.mk" | 138 | .include "../../print/poppler-includes/buildlink3.mk" | |
139 | .include "../../print/poppler/buildlink3.mk" | 139 | .include "../../print/poppler/buildlink3.mk" | |
140 | .include "../../print/poppler-qt5/buildlink3.mk" | 140 | .include "../../print/poppler-qt5/buildlink3.mk" | |
141 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | 141 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | |
142 | .include "../../sysutils/hal/buildlink3.mk" | 142 | .include "../../sysutils/hal/buildlink3.mk" | |
143 | BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2 | 143 | BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2 | |
144 | .include "../../sysutils/py-dbus/buildlink3.mk" | 144 | .include "../../sysutils/py-dbus/buildlink3.mk" | |
145 | .include "../../textproc/icu/buildlink3.mk" | 145 | .include "../../textproc/icu/buildlink3.mk" | |
146 | .include "../../databases/shared-mime-info/mimedb.mk" | 146 | .include "../../databases/shared-mime-info/mimedb.mk" | |
147 | .include "../../textproc/py-elementtree/buildlink3.mk" | 147 | .include "../../textproc/py-elementtree/buildlink3.mk" | |
148 | .include "../../x11/py-sip/buildlink3.mk" | 148 | .include "../../x11/py-sip/buildlink3.mk" | |
149 | .include "../../x11/qt5-qtbase/buildlink3.mk" | 149 | .include "../../x11/qt5-qtbase/buildlink3.mk" | |
150 | BUILDLINK_API_DEPENDS.py-qt5+= ${PYPKGPREFIX}-qt5>=5.4 | 150 | BUILDLINK_API_DEPENDS.py-qt5+= ${PYPKGPREFIX}-qt5>=5.4 | |
151 | .include "../../x11/py-qt5/buildlink3.mk" | 151 | .include "../../x11/py-qt5/buildlink3.mk" | |
152 | .include "../../mk/bsd.pkg.mk" | 152 | .include "../../mk/bsd.pkg.mk" |
@@ -1,160 +1,161 @@ | @@ -1,160 +1,161 @@ | |||
1 | # $NetBSD: Makefile,v 1.15 2016/05/22 18:20:47 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.16 2016/06/30 18:03:46 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= calibre-1.48.0 | 3 | DISTNAME= calibre-1.48.0 | |
4 | PKGREVISION= 17 | 4 | PKGREVISION= 17 | |
5 | CATEGORIES= misc | 5 | CATEGORIES= misc | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/} | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | 8 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://www.calibre-ebook.com/ | 11 | HOMEPAGE= http://www.calibre-ebook.com/ | |
12 | COMMENT= E-book library management application | 12 | COMMENT= E-book library management application | |
13 | LICENSE= gnu-gpl-v3 | 13 | LICENSE= gnu-gpl-v3 | |
14 | 14 | |||
15 | DEPENDS+= help2man>=1.36.4:../../converters/help2man | 15 | DEPENDS+= help2man>=1.36.4:../../converters/help2man | |
16 | DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | 16 | DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | |
17 | DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils | 17 | DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils | |
18 | DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils | 18 | DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils | |
19 | DEPENDS+= ${PYPKGPREFIX}-lxml>=2.2.1:../../textproc/py-lxml | 19 | DEPENDS+= ${PYPKGPREFIX}-lxml>=2.2.1:../../textproc/py-lxml | |
20 | DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup | 20 | DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup | |
21 | DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns | |||
21 | DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize | 22 | DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize | |
22 | DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect | 23 | DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect | |
23 | DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils | 24 | DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils | |
24 | # Let's depend on the ones we have in pkgsrc instead of the bundled ones. | 25 | # Let's depend on the ones we have in pkgsrc instead of the bundled ones. | |
25 | DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf | 26 | DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf | |
26 | DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy | 27 | DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy | |
27 | DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib | 28 | DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib | |
28 | DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet | 29 | DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet | |
29 | DEPENDS+= ${PYPKGPREFIX}-netifaces-[0-9]*:../../net/py-netifaces | 30 | DEPENDS+= ${PYPKGPREFIX}-netifaces-[0-9]*:../../net/py-netifaces | |
30 | DEPENDS+= ${PYPKGPREFIX}-apsw-[0-9]*:../../databases/py-apsw | 31 | DEPENDS+= ${PYPKGPREFIX}-apsw-[0-9]*:../../databases/py-apsw | |
31 | 32 | |||
32 | PYTHON_VERSIONED_DEPENDENCIES= dateutil dns | 33 | PYTHON_VERSIONED_DEPENDENCIES= dateutil | |
33 | 34 | |||
34 | # We also need the distfile for qt4-libs to extract some private header files | 35 | # We also need the distfile for qt4-libs to extract some private header files | |
35 | # If QTVERSION changes, the distinfo file needs to be updated too. | 36 | # If QTVERSION changes, the distinfo file needs to be updated too. | |
36 | QTVERSION= 4.8.5 # from ../../x11/qt4/Makefile.common | 37 | QTVERSION= 4.8.5 # from ../../x11/qt4/Makefile.common | |
37 | # Including that file to avoid hardcoding the version number won't work, | 38 | # Including that file to avoid hardcoding the version number won't work, | |
38 | # since it will occur in the distinfo anyway. | 39 | # since it will occur in the distinfo anyway. | |
39 | QTNAME= qt-everywhere-opensource-src-${QTVERSION} | 40 | QTNAME= qt-everywhere-opensource-src-${QTVERSION} | |
40 | DISTFILES+= ${QTNAME}.tar.gz | 41 | DISTFILES+= ${QTNAME}.tar.gz | |
41 | MASTER_SITES+= http://releases.qt-project.org/qt4/source/ | 42 | MASTER_SITES+= http://releases.qt-project.org/qt4/source/ | |
42 | EXTRACT_USING= bsdtar | 43 | EXTRACT_USING= bsdtar | |
43 | 44 | |||
44 | USE_LANGUAGES= c c++ | 45 | USE_LANGUAGES= c c++ | |
45 | USE_TOOLS+= pkg-config pax | 46 | USE_TOOLS+= pkg-config pax | |
46 | PYTHON_VERSIONS_ACCEPTED= 27 | 47 | PYTHON_VERSIONS_ACCEPTED= 27 | |
47 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # py-mechanize, py-beautifulsoup, py-imaging, py-netifaces | 48 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # py-mechanize, py-beautifulsoup, py-imaging, py-netifaces | |
48 | PYDISTUTILSPKG= yes | 49 | PYDISTUTILSPKG= yes | |
49 | PYSETUPOPTARGS= # empty | 50 | PYSETUPOPTARGS= # empty | |
50 | PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX} | 51 | PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX} | |
51 | WRKSRC= ${WRKDIR}/calibre | 52 | WRKSRC= ${WRKDIR}/calibre | |
52 | 53 | |||
53 | INSTALLATION_DIRS= share/applications | 54 | INSTALLATION_DIRS= share/applications | |
54 | INSTALLATION_DIRS= share/icons | 55 | INSTALLATION_DIRS= share/icons | |
55 | INSTALLATION_DIRS= share/calibre/recipes | 56 | INSTALLATION_DIRS= share/calibre/recipes | |
56 | 57 | |||
57 | FIX_PYTHON_PATHS+= *.py | 58 | FIX_PYTHON_PATHS+= *.py | |
58 | FIX_PYTHON_PATHS+= recipes/*.recipe | 59 | FIX_PYTHON_PATHS+= recipes/*.recipe | |
59 | FIX_PYTHON_PATHS+= */*.py | 60 | FIX_PYTHON_PATHS+= */*.py | |
60 | FIX_PYTHON_PATHS+= */*/*.py | 61 | FIX_PYTHON_PATHS+= */*/*.py | |
61 | FIX_PYTHON_PATHS+= */*/*/*.py | 62 | FIX_PYTHON_PATHS+= */*/*/*.py | |
62 | FIX_PYTHON_PATHS+= */*/*/*/*.py | 63 | FIX_PYTHON_PATHS+= */*/*/*/*.py | |
63 | FIX_PYTHON_PATHS+= */*/*/*/*/*.py | 64 | FIX_PYTHON_PATHS+= */*/*/*/*/*.py | |
64 | FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py | 65 | FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py | |
65 | 66 | |||
66 | SUBST_CLASSES+= prefix | 67 | SUBST_CLASSES+= prefix | |
67 | SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt4/bin/qmake'," | 68 | SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt4/bin/qmake'," | |
68 | SUBST_MESSAGE.prefix= Fixing path to QMAKE | 69 | SUBST_MESSAGE.prefix= Fixing path to QMAKE | |
69 | SUBST_STAGE.prefix= post-patch | 70 | SUBST_STAGE.prefix= post-patch | |
70 | SUBST_FILES.prefix= setup/build_environment.py | 71 | SUBST_FILES.prefix= setup/build_environment.py | |
71 | 72 | |||
72 | # This one is for /usr/bin/env python (or even /usr/bin/env Python or /usr/bin/python2) | 73 | # This one is for /usr/bin/env python (or even /usr/bin/env Python or /usr/bin/python2) | |
73 | SUBST_CLASSES+= path | 74 | SUBST_CLASSES+= path | |
74 | SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN}," | 75 | SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN}," | |
75 | SUBST_MESSAGE.path= Fixing path to python. | 76 | SUBST_MESSAGE.path= Fixing path to python. | |
76 | SUBST_STAGE.path= post-patch | 77 | SUBST_STAGE.path= post-patch | |
77 | SUBST_FILES.path= ${FIX_PYTHON_PATHS} | 78 | SUBST_FILES.path= ${FIX_PYTHON_PATHS} | |
78 | 79 | |||
79 | # These ones are for replacing python[0-9*] with PYTHONBIN | 80 | # These ones are for replacing python[0-9*] with PYTHONBIN | |
80 | REPLACE_PYTHON+= recipes/animal_politico.recipe | 81 | REPLACE_PYTHON+= recipes/animal_politico.recipe | |
81 | REPLACE_PYTHON+= recipes/respekt_magazine.recipe | 82 | REPLACE_PYTHON+= recipes/respekt_magazine.recipe | |
82 | REPLACE_PYTHON+= recipes/respekt_web.recipe | 83 | REPLACE_PYTHON+= recipes/respekt_web.recipe | |
83 | REPLACE_PYTHON+= recipes/kompiutierra.recipe | 84 | REPLACE_PYTHON+= recipes/kompiutierra.recipe | |
84 | REPLACE_PYTHON+= recipes/trouw.recipe | 85 | REPLACE_PYTHON+= recipes/trouw.recipe | |
85 | REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py | 86 | REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py | |
86 | REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py | 87 | REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py | |
87 | REPLACE_PYTHON+= src/calibre/utils/*.py | 88 | REPLACE_PYTHON+= src/calibre/utils/*.py | |
88 | REPLACE_PYTHON+= src/odf/*.py | 89 | REPLACE_PYTHON+= src/odf/*.py | |
89 | 90 | |||
90 | MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig | 91 | MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig | |
91 | MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib | 92 | MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib | |
92 | MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo | 93 | MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo | |
93 | MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib | 94 | MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib | |
94 | #MAKE_ENV+= WITH_USB=no | 95 | #MAKE_ENV+= WITH_USB=no | |
95 | 96 | |||
96 | # Let's depend on the ones we have in pkgsrc instead of the bundled ones. | 97 | # Let's depend on the ones we have in pkgsrc instead of the bundled ones. | |
97 | pre-configure: | 98 | pre-configure: | |
98 | cd ${WRKSRC} && rm -rf src/cherrypy src/pyPdf src/html5lib src/chardet | 99 | cd ${WRKSRC} && rm -rf src/cherrypy src/pyPdf src/html5lib src/chardet | |
99 | 100 | |||
100 | # Turn off x bits on non-executable files. | 101 | # Turn off x bits on non-executable files. | |
101 | post-extract: | 102 | post-extract: | |
102 | find ${WRKSRC}/src/calibre/devices ${WRKSRC}/src/calibre/ebooks ${WRKSRC}/src/calibre/web -name '*.py' -exec chmod a-x \{} \; | 103 | find ${WRKSRC}/src/calibre/devices ${WRKSRC}/src/calibre/ebooks ${WRKSRC}/src/calibre/web -name '*.py' -exec chmod a-x \{} \; | |
103 | find ${WRKSRC}/resources/images/mimetypes -name '*.png' -exec chmod a-x \{} \; | 104 | find ${WRKSRC}/resources/images/mimetypes -name '*.png' -exec chmod a-x \{} \; | |
104 | chmod a-x ${WRKSRC}/src/calibre/utils/Zeroconf.py | 105 | chmod a-x ${WRKSRC}/src/calibre/utils/Zeroconf.py | |
105 | chmod a-x ${WRKSRC}/src/calibre/utils/smtplib.py | 106 | chmod a-x ${WRKSRC}/src/calibre/utils/smtplib.py | |
106 | 107 | |||
107 | # Get access to (some of) the Qt4 private header files (for qt_hack). | 108 | # Get access to (some of) the Qt4 private header files (for qt_hack). | |
108 | post-wrapper: | 109 | post-wrapper: | |
109 | cd ${WRKDIR}/.buildlink/qt4/include/QtGui && \ | 110 | cd ${WRKDIR}/.buildlink/qt4/include/QtGui && \ | |
110 | ln -s ../../../../${QTNAME}/include/QtGui/private . | 111 | ln -s ../../../../${QTNAME}/include/QtGui/private . | |
111 | cd ${WRKDIR}/.buildlink/qt4/include/QtCore && \ | 112 | cd ${WRKDIR}/.buildlink/qt4/include/QtCore && \ | |
112 | ln -s ../../../../${QTNAME}/include/QtCore/private . | 113 | ln -s ../../../../${QTNAME}/include/QtCore/private . | |
113 | 114 | |||
114 | post-install: | 115 | post-install: | |
115 | cd ${WRKSRC}/recipes && pax -wr -pma *.recipe \ | 116 | cd ${WRKSRC}/recipes && pax -wr -pma *.recipe \ | |
116 | ${DESTDIR}${PREFIX}/share/calibre/recipes | 117 | ${DESTDIR}${PREFIX}/share/calibre/recipes | |
117 | cd ${WRKSRC} && pax -wr -pma Changelog* README.md \ | 118 | cd ${WRKSRC} && pax -wr -pma Changelog* README.md \ | |
118 | COPYRIGHT INSTALL LICENSE.* \ | 119 | COPYRIGHT INSTALL LICENSE.* \ | |
119 | ${DESTDIR}${PREFIX}/share/doc/calibre | 120 | ${DESTDIR}${PREFIX}/share/doc/calibre | |
120 | 121 | |||
121 | .include "../../lang/python/application.mk" | 122 | .include "../../lang/python/application.mk" | |
122 | .include "../../lang/python/versioned_dependencies.mk" | 123 | .include "../../lang/python/versioned_dependencies.mk" | |
123 | .include "../../databases/sqlite3/buildlink3.mk" | 124 | .include "../../databases/sqlite3/buildlink3.mk" | |
124 | .include "../../devel/chmlib/buildlink3.mk" | 125 | .include "../../devel/chmlib/buildlink3.mk" | |
125 | BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12 | 126 | BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12 | |
126 | .include "../../devel/libusb/buildlink3.mk" | 127 | .include "../../devel/libusb/buildlink3.mk" | |
127 | .include "../../fonts/fontconfig/buildlink3.mk" | 128 | .include "../../fonts/fontconfig/buildlink3.mk" | |
128 | BUILDLINK_API_DEPENDS.ImageMagick+= ImageMagick>=6.5.9 | 129 | BUILDLINK_API_DEPENDS.ImageMagick+= ImageMagick>=6.5.9 | |
129 | .include "../../graphics/ImageMagick/buildlink3.mk" | 130 | .include "../../graphics/ImageMagick/buildlink3.mk" | |
130 | BUILDLINK_API_DEPENDS.pyimaging+= ${PYPKGPREFIX}-imaging>=1.1.6 | 131 | BUILDLINK_API_DEPENDS.pyimaging+= ${PYPKGPREFIX}-imaging>=1.1.6 | |
131 | .include "../../graphics/py-imaging/buildlink3.mk" | 132 | .include "../../graphics/py-imaging/buildlink3.mk" | |
132 | BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8 | 133 | BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8 | |
133 | .include "../../graphics/libwmf/buildlink3.mk" | 134 | .include "../../graphics/libwmf/buildlink3.mk" | |
134 | .include "../../lang/python/egg.mk" | 135 | .include "../../lang/python/egg.mk" | |
135 | _PYSETUPTOOLSINSTALLARGS= # empty | 136 | _PYSETUPTOOLSINSTALLARGS= # empty | |
136 | # Get rid of --root=${DESTDIR}, use our own version from above instead. | 137 | # Get rid of --root=${DESTDIR}, use our own version from above instead. | |
137 | # because the setup.py is not the standard one and behaves differently. | 138 | # because the setup.py is not the standard one and behaves differently. | |
138 | _PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS} | 139 | _PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS} | |
139 | #.include "../../lang/python/extension.mk" | 140 | #.include "../../lang/python/extension.mk" | |
140 | .include "../../print/podofo/buildlink3.mk" | 141 | .include "../../print/podofo/buildlink3.mk" | |
141 | # ??? BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2 | 142 | # ??? BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2 | |
142 | .include "../../print/poppler-includes/buildlink3.mk" | 143 | .include "../../print/poppler-includes/buildlink3.mk" | |
143 | .include "../../print/poppler/buildlink3.mk" | 144 | .include "../../print/poppler/buildlink3.mk" | |
144 | BUILDLINK_API_DEPENDS.poppler-qt4+= poppler-qt4>=0.12.0 | 145 | BUILDLINK_API_DEPENDS.poppler-qt4+= poppler-qt4>=0.12.0 | |
145 | .include "../../print/poppler-qt4/buildlink3.mk" | 146 | .include "../../print/poppler-qt4/buildlink3.mk" | |
146 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | 147 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | |
147 | .include "../../sysutils/hal/buildlink3.mk" | 148 | .include "../../sysutils/hal/buildlink3.mk" | |
148 | BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2 | 149 | BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2 | |
149 | .include "../../sysutils/py-dbus/buildlink3.mk" | 150 | .include "../../sysutils/py-dbus/buildlink3.mk" | |
150 | .include "../../textproc/icu/buildlink3.mk" | 151 | .include "../../textproc/icu/buildlink3.mk" | |
151 | .include "../../databases/shared-mime-info/mimedb.mk" | 152 | .include "../../databases/shared-mime-info/mimedb.mk" | |
152 | .include "../../textproc/py-elementtree/buildlink3.mk" | 153 | .include "../../textproc/py-elementtree/buildlink3.mk" | |
153 | .include "../../x11/py-sip/buildlink3.mk" | 154 | .include "../../x11/py-sip/buildlink3.mk" | |
154 | BUILDLINK_API_DEPENDS.py-qt4+= ${PYPKGPREFIX}-qt4>=4.7.0 | 155 | BUILDLINK_API_DEPENDS.py-qt4+= ${PYPKGPREFIX}-qt4>=4.7.0 | |
155 | .include "../../x11/py-qt4/buildlink3.mk" | 156 | .include "../../x11/py-qt4/buildlink3.mk" | |
156 | BUILDLINK_API_DEPENDS.qt4-tools+= qt4-tools>=4.7.0 | 157 | BUILDLINK_API_DEPENDS.qt4-tools+= qt4-tools>=4.7.0 | |
157 | .include "../../x11/qt4-tools/buildlink3.mk" | 158 | .include "../../x11/qt4-tools/buildlink3.mk" | |
158 | BUILDLINK_API_DEPENDS.qt4-qdbus+= qt4-qdbus>=4.7.0 | 159 | BUILDLINK_API_DEPENDS.qt4-qdbus+= qt4-qdbus>=4.7.0 | |
159 | .include "../../x11/qt4-qdbus/buildlink3.mk" | 160 | .include "../../x11/qt4-qdbus/buildlink3.mk" | |
160 | .include "../../mk/bsd.pkg.mk" | 161 | .include "../../mk/bsd.pkg.mk" |
@@ -1,21 +1,20 @@ | @@ -1,21 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2014/05/17 16:10:48 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2016/06/30 18:03:46 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= sshfp-1.1.3 | 3 | DISTNAME= sshfp-1.1.3 | |
4 | PKGREVISION= 4 | 4 | PKGREVISION= 4 | |
5 | CATEGORIES= security net | 5 | CATEGORIES= security net | |
6 | MASTER_SITES= http://www.xelerance.com/software/sshfp/ | 6 | MASTER_SITES= http://www.xelerance.com/software/sshfp/ | |
7 | 7 | |||
8 | MAINTAINER= agc@NetBSD.org | 8 | MAINTAINER= agc@NetBSD.org | |
9 | HOMEPAGE= http://www.xelerance.com/software/sshfp/ | 9 | HOMEPAGE= http://www.xelerance.com/software/sshfp/ | |
10 | COMMENT= Print ssh host key fingerprint resource records | 10 | COMMENT= Print ssh host key fingerprint resource records | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | PYTHON_VERSIONED_DEPENDENCIES= dns | 13 | DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns | |
14 | 14 | |||
15 | MANCOMPRESSED= yes | 15 | MANCOMPRESSED= yes | |
16 | NO_BUILD= yes | 16 | NO_BUILD= yes | |
17 | REPLACE_PYTHON= sshfp | 17 | REPLACE_PYTHON= sshfp | |
18 | 18 | |||
19 | .include "../../lang/python/application.mk" | 19 | .include "../../lang/python/application.mk" | |
20 | .include "../../lang/python/versioned_dependencies.mk" | |||
21 | .include "../../mk/bsd.pkg.mk" | 20 | .include "../../mk/bsd.pkg.mk" |