Thu Jun 30 18:03:46 2016 UTC ()
Switch to direct py-dns dependency.

py-dns now supports all python versions, so versioned_dependencies
is not needed any longer.


(wiz)
diff -r1.10 -r1.11 pkgsrc/chat/py-xmpppy/Makefile
diff -r1.20 -r1.21 pkgsrc/doc/guide/files/creating.xml
diff -r1.23 -r1.24 pkgsrc/lang/python/versioned_dependencies.mk
diff -r1.7 -r1.8 pkgsrc/mail/py-spf/Makefile
diff -r1.144 -r1.145 pkgsrc/misc/calibre/Makefile
diff -r1.15 -r1.16 pkgsrc/misc/calibre1/Makefile
diff -r1.10 -r1.11 pkgsrc/security/sshfp/Makefile

cvs diff -r1.10 -r1.11 pkgsrc/chat/py-xmpppy/Makefile (switch to unified diff)

--- pkgsrc/chat/py-xmpppy/Makefile 2015/12/05 21:25:30 1.10
+++ pkgsrc/chat/py-xmpppy/Makefile 2016/06/30 18:03:46 1.11
@@ -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
3DISTNAME= xmpppy-0.5.0rc1 3DISTNAME= xmpppy-0.5.0rc1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5PKGREVISION= 3 5PKGREVISION= 3
6CATEGORIES= chat python 6CATEGORIES= chat python
7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmpppy/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmpppy/}
8 8
9MAINTAINER= schnoebe@NetBSD.org 9MAINTAINER= schnoebe@NetBSD.org
10HOMEPAGE= http://xmpppy.sourceforge.net/ 10HOMEPAGE= http://xmpppy.sourceforge.net/
11COMMENT= XMPP (Jabber) library for Python 11COMMENT= XMPP (Jabber) library for Python
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
 14DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
14DEPENDS+= ${PYPKGPREFIX}-expat>=0nb4:../../textproc/py-expat 15DEPENDS+= ${PYPKGPREFIX}-expat>=0nb4:../../textproc/py-expat
15 16
16USE_LANGUAGES= # none 17USE_LANGUAGES= # none
17 18
18PYDISTUTILSPKG= yes 19PYDISTUTILSPKG= yes
19PYTHON_VERSIONED_DEPENDENCIES= dns 
20PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.5.0rc1 20PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.5.0rc1
21 21
22DOCDIR= ${PREFIX}/share/doc/py-xmpppy 22DOCDIR= ${PREFIX}/share/doc/py-xmpppy
23EXDIR= ${PREFIX}/share/examples/py-xmpppy 23EXDIR= ${PREFIX}/share/examples/py-xmpppy
24 24
25INSTALLATION_DIRS+= ${DOCDIR} ${EXDIR} 25INSTALLATION_DIRS+= ${DOCDIR} ${EXDIR}
26 26
27post-install: 27post-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"

cvs diff -r1.20 -r1.21 pkgsrc/doc/guide/files/creating.xml (switch to unified diff)

--- pkgsrc/doc/guide/files/creating.xml 2016/01/12 12:03:39 1.20
+++ pkgsrc/doc/guide/files/creating.xml 2016/06/30 18:03:46 1.21
@@ -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
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
15role="pkg">pkgtools/pkglint</filename>.</para></step> 15role="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
18category in which you want to place your package. You can also create a 18category in which you want to place your package. You can also create a
19directory of your own (maybe called <filename>local</filename>). In that 19directory of your own (maybe called <filename>local</filename>). In that
20category directory, create another directory for your package and change 20category directory, create another directory for your package and change
21into it.</para></step> 21into 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
24you for a URL. Enter the URL of the distribution file (in most cases a 24you 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
26of your package are created automatically. The distribution file is 26of your package are created automatically. The distribution file is
27extracted automatically to fill in some details in the 27extracted 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
29manually.</para></step> 29manually.</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
32your package. Ideally, this is mentioned in some 32your 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
34these dependencies, look where it exists in pkgsrc, and if there is a 34these dependencies, look where it exists in pkgsrc, and if there is a
35file called <filename>buildlink3.mk</filename> in that directory, add a 35file called <filename>buildlink3.mk</filename> in that directory, add a
36line to your package <filename>Makefile</filename> which includes that 36line to your package <filename>Makefile</filename> which includes that
37file just before the last line. If the 37file 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
39created first. The <filename>buildlink3.mk</filename> file makes sure that the package's include files and libraries are provided.</para> 39created 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
43version of the dependency and where it can be found in pkgsrc. This line 43version of the dependency and where it can be found in pkgsrc. This line
44should be placed in the third paragraph. If the dependency is only 44should be placed in the third paragraph. If the dependency is only
45needed for building the package, but not when using it, use 45needed 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>.
47Your package may then look like this:</para> 47Your package may then look like this:</para>
48 48
49<programlisting> 49<programlisting>
50[...] 50[...]
51 51
52BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt 52BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
53DEPENDS+= screen-[0-9]*:../../misc/screen 53DEPENDS+= screen-[0-9]*:../../misc/screen
54DEPENDS+= screen>=4.0:../../misc/screen 54DEPENDS+= 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
66to be done to make your package a <quote>good</quote> one. If you don't 66to be done to make your package a <quote>good</quote> one. If you don't
67know what pkglint's warnings want to tell you, try <command>pkglint 67know 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
70explanations.</para></step> 70explanations.</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
73find instructions for the most common cases in the next section, <xref 73find instructions for the most common cases in the next section, <xref
74linkend="creating.common"/>. After you have followed the instructions 74linkend="creating.common"/>. After you have followed the instructions
75over there, you can hopefully continue here.</para></step> 75over 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
78directory from the extracted files. Besides these files, a lot of cache 78directory from the extracted files. Besides these files, a lot of cache
79files and other system information has been saved in the working 79files and other system information has been saved in the working
80directory, which may become wrong after you edited the 80directory, 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
84the various things that can go wrong in this phase, consult <xref 84the various things that can go wrong in this phase, consult <xref
85linkend="fixes"/>.</para></step> 85linkend="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
88the package. Run <command>bmake install</command> and hope that 88the package. Run <command>bmake install</command> and hope that
89everything works.</para></step> 89everything 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
92contains a list of the files that are installed by the package, is 92contains a list of the files that are installed by the package, is
93nearly empty. Run <command>bmake print-PLIST 93nearly empty. Run <command>bmake print-PLIST
94&gt;PLIST</command> to generate a probably correct list. Check 94&gt;PLIST</command> to generate a probably correct list. Check
95the file using your preferred text editor to see if the list of 95the file using your preferred text editor to see if the list of
96files looks plausible.</para></step> 96files 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
102has been registered in the database of installed files, but with an 102has been registered in the database of installed files, but with an
103empty list of files. To fix this, run <command>bmake deinstall</command> 103empty list of files. To fix this, run <command>bmake deinstall</command>
104and <command>bmake install</command> again. Now the package is 104and <command>bmake install</command> again. Now the package is
105registered with the list of files from 105registered 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
109package from the set of installed files.</para></step> 109package 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
129settings that are typical of KDE3 packages.</para> 129settings 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
137set of predefined variables.</para> 137set of predefined variables.</para>
138 138
139<para> 139<para>
140If some Python versions are not supported by the software, set the 140If 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
142that are not supported, e.g. 142that are not supported, e.g.
143<programlisting> 143<programlisting>
144PYTHON_VERSIONS_INCOMPATIBLE= 27 144PYTHON_VERSIONS_INCOMPATIBLE= 27
145</programlisting></para> 145</programlisting></para>
146 146
147<para> 147<para>
148If the packaged software is a Python module, include one of 148If 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
154easy-setup/setuptools (<quote>eggs</quote>). 154easy-setup/setuptools (<quote>eggs</quote>).
155if the packaged software is using setuptools, you only need 155if the packaged software is using setuptools, you only need
156to include <quote><filename>../../lang/python/egg.mk</filename></quote>. 156to include <quote><filename>../../lang/python/egg.mk</filename></quote>.
157Otherwise, if the software uses <quote>distutils</quote>, include  157Otherwise, 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>.
159so pkgsrc will use this framework. 159so 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>,
161if the <quote>distutils</quote> driver is not called 161if 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
163to the name of the script.</para> 163to 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>
169DISTNAME= foopymodule-1.2.10 169DISTNAME= foopymodule-1.2.10
170PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 170PKGNAME= ${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>.
175In order to correctly set the path to the Python interpreter, use the 175In 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.
178For example: 178For example:
179<programlisting> 179<programlisting>
180REPLACE_PYTHON= *.py 180REPLACE_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
184and Python-3.x support. In pkgsrc this is handled by the 184and 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
187packages that should be depended upon and include 187packages 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>,
189then the pkgsrc infrastructure will depend on the appropriate package 189then the pkgsrc infrastructure will depend on the appropriate package
190version. For example: 190version. For example:
191<programlisting> 191<programlisting>
192PYTHON_VERSIONED_DEPENDENCIES=dateutil dns 192PYTHON_VERSIONED_DEPENDENCIES=dateutil
193</programlisting> 193</programlisting>
194Look inside <filename>versioned_dependencies.mk</filename> for a list 194Look inside <filename>versioned_dependencies.mk</filename> for a list
195of supported packages.</para> 195of 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
210that the <quote>nvu</quote> package has not yet been imported into 210that the <quote>nvu</quote> package has not yet been imported into
211pkgsrc. As the description says it has to do with the web, the obvious 211pkgsrc. As the description says it has to do with the web, the obvious
212choice for the category is <quote>www</quote>.</para> 212choice 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
220I fed that URL to the <command>url2pkg</command> program:</para> 220I 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
227below the <varname>DISTNAME</varname> line, as the package name should 227below the <varname>DISTNAME</varname> line, as the package name should
228not have the word <quote>sources</quote> in it. I also filled in the 228not 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# &#36;NetBSD&#36; 234# &#36;NetBSD&#36;
235# 235#
236 236
237DISTNAME= nvu-1.0-sources 237DISTNAME= nvu-1.0-sources
238PKGNAME= nvu-1.0 238PKGNAME= nvu-1.0
239CATEGORIES= www 239CATEGORIES= www
240MASTER_SITES= http://cvs.nvu.com/download/ 240MASTER_SITES= http://cvs.nvu.com/download/
241EXTRACT_SUFX= .tar.bz2 241EXTRACT_SUFX= .tar.bz2
242 242
243MAINTAINER= rillig@NetBSD.org 243MAINTAINER= rillig@NetBSD.org
244HOMEPAGE= http://cvs.nvu.com/ 244HOMEPAGE= http://cvs.nvu.com/
245COMMENT= Web Authoring System 245COMMENT= 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
252source archive:</para> 252source archive:</para>
253 253
254<programlisting> 254<programlisting>
255url2pkg> Running "make makesum" ... 255url2pkg> 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
258Requesting http://cvs.nvu.com/download/nvu-1.0-sources.tar.bz2 258Requesting http://cvs.nvu.com/download/nvu-1.0-sources.tar.bz2
259100% |*************************************| 28992 KB 150.77 KB/s00:00 ETA 259100% |*************************************| 28992 KB 150.77 KB/s00:00 ETA
26029687976 bytes retrieved in 03:12 (150.77 KB/s) 26029687976 bytes retrieved in 03:12 (150.77 KB/s)
261url2pkg> Running "make extract" ... 261url2pkg> 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
265work.bacc -> /tmp/roland/pkgsrc/www/nvu/work.bacc 265work.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
269url2pkg> Adjusting the Makefile. 269url2pkg> Adjusting the Makefile.
270 270
271Remember to correct CATEGORIES, HOMEPAGE, COMMENT, and DESCR when you're done! 271Remember to correct CATEGORIES, HOMEPAGE, COMMENT, and DESCR when you're done!
272 272
273Good luck! (See pkgsrc/doc/pkgsrc.txt for some more help :-) 273Good 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
282it. The package has a <filename>README.txt</filename>, but that only 282it. The package has a <filename>README.txt</filename>, but that only
283says something about mozilla, so it's probably useless for seeing what 283says something about mozilla, so it's probably useless for seeing what
284dependencies this package has. But since there is a GNU configure script 284dependencies this package has. But since there is a GNU configure script
285in the package, let's hope that it will complain about everything it 285in the package, let's hope that it will complain about everything it
286needs.</para> 286needs.</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[...]
297configure: error: Perl 5.004 or higher is required. 297configure: error: Perl 5.004 or higher is required.
298[...] 298[...]
299WARNING: Please add USE_TOOLS+=perl to the package Makefile. 299WARNING: 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
304editor, and since it already has a <varname>USE_TOOLS</varname> line, I 304editor, and since it already has a <varname>USE_TOOLS</varname> line, I
305just appended <quote>perl</quote> to it. Since the dependencies of the 305just appended <quote>perl</quote> to it. Since the dependencies of the
306package have changed now, and since a perl wrapper is automatically 306package have changed now, and since a perl wrapper is automatically
307installed in the <quote>tools</quote> phase, I need to build the package 307installed in the <quote>tools</quote> phase, I need to build the package
308from scratch.</para> 308from 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 \
316GNU Make. You will not be able to build Mozilla without GNU Make. 316GNU 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[...]
325checking for GTK - version >= 1.2.0... no 325checking 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
331GTK package hidden in pkgsrc?</para> 331GTK 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
345one result, which is very good. But there is one pitfall with GNOME 345one result, which is very good. But there is one pitfall with GNOME
346packages. Before GNOME 2 had been released, there were already many 346packages. Before GNOME 2 had been released, there were already many
347GNOME 1 packages in pkgsrc. To be able to continue to use these 347GNOME 1 packages in pkgsrc. To be able to continue to use these
348packages, the GNOME 2 packages were imported as separate packages, and 348packages, the GNOME 2 packages were imported as separate packages, and
349their names usually have a <quote>2</quote> appended. So I checked 349their names usually have a <quote>2</quote> appended. So I checked
350whether this was the case here, and indeed it was.</para> 350whether 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>
353file, adding the dependency is very easy. I just inserted an 353file, 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
364was:</para> 364was:</para>
365 365
366<programlisting> 366<programlisting>
367[...] 367[...]
368checking for gtk-config... /home/roland/pkg/bin/gtk-config 368checking for gtk-config... /home/roland/pkg/bin/gtk-config
369checking for GTK - version >= 1.2.0... no 369checking 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
375configure: error: Test for GTK failed. 375configure: 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
380prefers GNOME 2</quote> had been wrong. The first of the lines above 380prefers GNOME 2</quote> had been wrong. The first of the lines above
381told me that this package really wanted to have the GNOME 1 version of 381told me that this package really wanted to have the GNOME 1 version of
382GTK. If the package had looked for GTK2, it would have looked for 382GTK. 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>.
384So I changed the <literal>x11/gtk2</literal> to 384So 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>,
386and tried again.</para> 386and tried again.</para>
387 387
388<programlisting> 388<programlisting>
389[...] 389[...]
390cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" [...] 390cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" [...]
391In file included from xpidl.c:42: 391In file included from xpidl.c:42:
392xpidl.h:53:24: libIDL/IDL.h: No such file or directory 392xpidl.h:53:24: libIDL/IDL.h: No such file or directory
393In file included from xpidl.c:42: 393In file included from xpidl.c:42:
394xpidl.h:132: error: parse error before "IDL_ns" 394xpidl.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
399question is: Which package provides the 399question 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
411again. But the error didn't change. After digging through some of the 411again. But the error didn't change. After digging through some of the
412code, I concluded that the build process of the package was broken and 412code, I concluded that the build process of the package was broken and
413couldn't have ever worked, but since the Mozilla source tree is quite 413couldn't have ever worked, but since the Mozilla source tree is quite
414large, I didn't want to fix it. So I added the following to the package 414large, 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>
418CPPFLAGS+= -I${BUILDLINK_PREFIX.libIDL}/include/libIDL-2.0 418CPPFLAGS+= -I${BUILDLINK_PREFIX.libIDL}/include/libIDL-2.0
419BUILDLINK_TRANSFORM+= -l:IDL:IDL-2 419BUILDLINK_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
425wrapper to rewrite that on the fly.</para> 425wrapper 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
428interface. I looked up in <filename role="pkg">www/seamonkey</filename> 428interface. I looked up in <filename role="pkg">www/seamonkey</filename>
429which patch files were relevant for this issue and copied them to the 429which 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
431patches so that they applied cleanly and retried again. This time, 431patches so that they applied cleanly and retried again. This time,
432everything worked.</para> 432everything 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>

cvs diff -r1.23 -r1.24 pkgsrc/lang/python/versioned_dependencies.mk (switch to unified diff)

--- pkgsrc/lang/python/versioned_dependencies.mk 2016/06/30 17:45:30 1.23
+++ pkgsrc/lang/python/versioned_dependencies.mk 2016/06/30 18:03:46 1.24
@@ -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
34pkg:= ${pattern:C/:.*//} 33pkg:= ${pattern:C/:.*//}
35type:= ${pattern:C/[^:]*//} 34type:= ${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"
40dir:= ${py2dir} 39dir:= ${py2dir}
41.else 40.else
42dir:= ${py3dir} 41dir:= ${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"
47BUILD_DEPENDS:= ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} 46BUILD_DEPENDS:= ${BUILD_DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir}
48.else 47.else
49DEPENDS:= ${DEPENDS} ${PYPKGPREFIX}-${pkg}-[0-9]*:../../${dir} 48DEPENDS:= ${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"
54PKG_FAIL_REASON+= "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES" 53PKG_FAIL_REASON+= "${pkg} unsupported in PYTHON_VERSIONED_DEPENDENCIES"
55.endif 54.endif
56.endfor 55.endfor

cvs diff -r1.7 -r1.8 pkgsrc/mail/py-spf/Makefile (switch to unified diff)

--- pkgsrc/mail/py-spf/Makefile 2016/06/26 20:10:23 1.7
+++ pkgsrc/mail/py-spf/Makefile 2016/06/30 18:03:46 1.8
@@ -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
3VERSION= 2.0.8 3VERSION= 2.0.8
4DISTNAME= pyspf-${VERSION} 4DISTNAME= pyspf-${VERSION}
5PKGNAME= ${PYPKGPREFIX}-spf-${VERSION} 5PKGNAME= ${PYPKGPREFIX}-spf-${VERSION}
6CATEGORIES= mail python 6CATEGORIES= mail python
7MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyspf/} 7MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyspf/}
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://pypi.python.org/pypi/pyspf 10HOMEPAGE= https://pypi.python.org/pypi/pyspf
11COMMENT= Python implementation of the RFC 4408 SPF protocol 11COMMENT= Python implementation of the RFC 4408 SPF protocol
12LICENSE= python-software-foundation 12LICENSE= python-software-foundation
13 13
14PYTHON_VERSIONED_DEPENDENCIES+= dns 14DEPENDS+= ${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"

cvs diff -r1.144 -r1.145 pkgsrc/misc/calibre/Makefile (switch to unified diff)

--- pkgsrc/misc/calibre/Makefile 2016/06/30 17:41:17 1.144
+++ pkgsrc/misc/calibre/Makefile 2016/06/30 18:03:46 1.145
@@ -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
3DISTNAME= calibre-2.60.0 3DISTNAME= calibre-2.60.0
4CATEGORIES= misc 4CATEGORIES= misc
5#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/} 5#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/}
6MASTER_SITES= http://download.calibre-ebook.com/${PKGVERSION_NOREV}/ 6MASTER_SITES= http://download.calibre-ebook.com/${PKGVERSION_NOREV}/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8DISTFILES= ${DISTNAME}${EXTRACT_SUFX} 8DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.calibre-ebook.com/ 11HOMEPAGE= http://www.calibre-ebook.com/
12COMMENT= E-book library management application 12COMMENT= E-book library management application
13LICENSE= gnu-gpl-v3 13LICENSE= gnu-gpl-v3
14 14
15DEPENDS+= ${PYPKGPREFIX}-Pillow>=2.7.0:../../graphics/py-Pillow 15DEPENDS+= ${PYPKGPREFIX}-Pillow>=2.7.0:../../graphics/py-Pillow
16#DEPENDS+= help2man>=1.36.4:../../converters/help2man 16#DEPENDS+= help2man>=1.36.4:../../converters/help2man
17DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 17DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
18DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils 18DEPENDS+= 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
20DEPENDS+= ${PYPKGPREFIX}-lxml>=3.2.1:../../textproc/py-lxml 20DEPENDS+= ${PYPKGPREFIX}-lxml>=3.2.1:../../textproc/py-lxml
21DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup 21DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup
 22DEPENDS+= ${PYPKGPREFIX}-dns>=1.6.0:../../net/py-dns
22DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize 23DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize
23DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect 24DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect
24DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils 25DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils
25DEPENDS+= ${PYPKGPREFIX}-psutil>=0.6.1:../../sysutils/py-psutil 26DEPENDS+= ${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
28DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy 29DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy
29DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib 30DEPENDS+= ${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
31DEPENDS+= ${PYPKGPREFIX}-netifaces>=0.8:../../net/py-netifaces 32DEPENDS+= ${PYPKGPREFIX}-netifaces>=0.8:../../net/py-netifaces
32DEPENDS+= ${PYPKGPREFIX}-apsw>=3.7.17:../../databases/py-apsw 33DEPENDS+= ${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 36PYTHON_VERSIONED_DEPENDENCIES= dateutil
36PYTHON_VERSIONED_DEPENDENCIES= dateutil dns 
37 37
38EXTRACT_USING= bsdtar 38EXTRACT_USING= bsdtar
39 39
40USE_LANGUAGES= c c++ 40USE_LANGUAGES= c c++
41USE_LIBTOOL= yes 41USE_LIBTOOL= yes
42USE_TOOLS+= pkg-config pax 42USE_TOOLS+= pkg-config pax
43PYTHON_VERSIONS_ACCEPTED= 27 43PYTHON_VERSIONS_ACCEPTED= 27
44PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not ported as of 2.1.0; also: py-mechanize, py-beautifulsoup, py-imaging, py-netifaces 44PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not ported as of 2.1.0; also: py-mechanize, py-beautifulsoup, py-imaging, py-netifaces
45PYDISTUTILSPKG= yes 45PYDISTUTILSPKG= yes
46PYSETUPOPTARGS= # empty 46PYSETUPOPTARGS= # empty
47PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX} 47PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX}
48 48
49INSTALLATION_DIRS= share/applications 49INSTALLATION_DIRS= share/applications
50INSTALLATION_DIRS= share/icons 50INSTALLATION_DIRS= share/icons
51INSTALLATION_DIRS= share/calibre/recipes 51INSTALLATION_DIRS= share/calibre/recipes
52 52
53FIX_PYTHON_PATHS+= *.py 53FIX_PYTHON_PATHS+= *.py
54FIX_PYTHON_PATHS+= recipes/*.recipe 54FIX_PYTHON_PATHS+= recipes/*.recipe
55FIX_PYTHON_PATHS+= */*.py 55FIX_PYTHON_PATHS+= */*.py
56FIX_PYTHON_PATHS+= */*/*.py 56FIX_PYTHON_PATHS+= */*/*.py
57FIX_PYTHON_PATHS+= */*/*/*.py 57FIX_PYTHON_PATHS+= */*/*/*.py
58FIX_PYTHON_PATHS+= */*/*/*/*.py 58FIX_PYTHON_PATHS+= */*/*/*/*.py
59FIX_PYTHON_PATHS+= */*/*/*/*/*.py 59FIX_PYTHON_PATHS+= */*/*/*/*/*.py
60FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py 60FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py
61 61
62SUBST_CLASSES+= prefix 62SUBST_CLASSES+= prefix
63SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt5/bin/qmake'," 63SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt5/bin/qmake',"
64SUBST_MESSAGE.prefix= Fixing path to QMAKE 64SUBST_MESSAGE.prefix= Fixing path to QMAKE
65SUBST_STAGE.prefix= post-patch 65SUBST_STAGE.prefix= post-patch
66SUBST_FILES.prefix= setup/build_environment.py 66SUBST_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)
69SUBST_CLASSES+= path 69SUBST_CLASSES+= path
70SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN}," 70SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN},"
71SUBST_MESSAGE.path= Fixing path to python. 71SUBST_MESSAGE.path= Fixing path to python.
72SUBST_STAGE.path= post-patch 72SUBST_STAGE.path= post-patch
73SUBST_FILES.path= ${FIX_PYTHON_PATHS} 73SUBST_FILES.path= ${FIX_PYTHON_PATHS}
74 74
75REPLACE_BASH+= resources/calibre-portable.sh 75REPLACE_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
78REPLACE_PYTHON+= recipes/animal_politico.recipe 78REPLACE_PYTHON+= recipes/animal_politico.recipe
79REPLACE_PYTHON+= recipes/respekt_magazine.recipe 79REPLACE_PYTHON+= recipes/respekt_magazine.recipe
80REPLACE_PYTHON+= recipes/respekt_web.recipe 80REPLACE_PYTHON+= recipes/respekt_web.recipe
81REPLACE_PYTHON+= recipes/kompiutierra.recipe 81REPLACE_PYTHON+= recipes/kompiutierra.recipe
82REPLACE_PYTHON+= recipes/trouw.recipe 82REPLACE_PYTHON+= recipes/trouw.recipe
83REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py 83REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py
84REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py 84REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py
85REPLACE_PYTHON+= src/calibre/utils/*.py 85REPLACE_PYTHON+= src/calibre/utils/*.py
86REPLACE_PYTHON+= src/odf/*.py 86REPLACE_PYTHON+= src/odf/*.py
87 87
88MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig 88MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig
89MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib 89MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib
90MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo 90MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo
91MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib 91MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib
92MAKE_ENV+= SIP_BIN=${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX} 92MAKE_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.
96pre-configure: 96pre-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.
100post-extract: 100post-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?
108post-install: 108post-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"
120BUILDLINK_API_DEPENDS.chmlib+= chmlib>=0.40 120BUILDLINK_API_DEPENDS.chmlib+= chmlib>=0.40
121.include "../../devel/chmlib/buildlink3.mk" 121.include "../../devel/chmlib/buildlink3.mk"
122BUILDLINK_API_DEPENDS.libmtp+= libmtp>=1.1.5 122BUILDLINK_API_DEPENDS.libmtp+= libmtp>=1.1.5
123.include "../../devel/libmtp/buildlink3.mk" 123.include "../../devel/libmtp/buildlink3.mk"
124BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12 124BUILDLINK_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"
127BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8 127BUILDLINK_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"
135BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2 135BUILDLINK_API_DEPENDS.podofo+= podofo>=0.8.2
136.include "../../print/podofo/buildlink3.mk" 136.include "../../print/podofo/buildlink3.mk"
137BUILDLINK_API_DEPENDS.poppler+= poppler>=0.20.2 137BUILDLINK_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"
143BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2 143BUILDLINK_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"
150BUILDLINK_API_DEPENDS.py-qt5+= ${PYPKGPREFIX}-qt5>=5.4 150BUILDLINK_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"

cvs diff -r1.15 -r1.16 pkgsrc/misc/calibre1/Attic/Makefile (switch to unified diff)

--- pkgsrc/misc/calibre1/Attic/Makefile 2016/05/22 18:20:47 1.15
+++ pkgsrc/misc/calibre1/Attic/Makefile 2016/06/30 18:03:46 1.16
@@ -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
3DISTNAME= calibre-1.48.0 3DISTNAME= calibre-1.48.0
4PKGREVISION= 17 4PKGREVISION= 17
5CATEGORIES= misc 5CATEGORIES= misc
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=calibre/}
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8DISTFILES= ${DISTNAME}${EXTRACT_SUFX} 8DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.calibre-ebook.com/ 11HOMEPAGE= http://www.calibre-ebook.com/
12COMMENT= E-book library management application 12COMMENT= E-book library management application
13LICENSE= gnu-gpl-v3 13LICENSE= gnu-gpl-v3
14 14
15DEPENDS+= help2man>=1.36.4:../../converters/help2man 15DEPENDS+= help2man>=1.36.4:../../converters/help2man
16DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 16DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
17DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils 17DEPENDS+= xdg-utils>=1.0.2:../../misc/xdg-utils
18DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils 18DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
19DEPENDS+= ${PYPKGPREFIX}-lxml>=2.2.1:../../textproc/py-lxml 19DEPENDS+= ${PYPKGPREFIX}-lxml>=2.2.1:../../textproc/py-lxml
20DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup 20DEPENDS+= ${PYPKGPREFIX}-beautifulsoup>=3.0.5:../../www/py-beautifulsoup
 21DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
21DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize 22DEPENDS+= ${PYPKGPREFIX}-mechanize>=0.1.11nb1:../../www/py-mechanize
22DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect 23DEPENDS+= ${PYPKGPREFIX}-cssselect>=0.7.1:../../textproc/py-cssselect
23DEPENDS+= ${PYPKGPREFIX}-cssutils>=0.9.9:../../textproc/py-cssutils 24DEPENDS+= ${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.
25DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf 26DEPENDS+= ${PYPKGPREFIX}-Pdf-[0-9]*:../../print/py-Pdf
26DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy 27DEPENDS+= ${PYPKGPREFIX}-cherrypy-[0-9]*:../../www/py-cherrypy
27DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib 28DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib
28DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet 29DEPENDS+= ${PYPKGPREFIX}-chardet-[0-9]*:../../converters/py-chardet
29DEPENDS+= ${PYPKGPREFIX}-netifaces-[0-9]*:../../net/py-netifaces 30DEPENDS+= ${PYPKGPREFIX}-netifaces-[0-9]*:../../net/py-netifaces
30DEPENDS+= ${PYPKGPREFIX}-apsw-[0-9]*:../../databases/py-apsw 31DEPENDS+= ${PYPKGPREFIX}-apsw-[0-9]*:../../databases/py-apsw
31 32
32PYTHON_VERSIONED_DEPENDENCIES= dateutil dns 33PYTHON_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.
36QTVERSION= 4.8.5 # from ../../x11/qt4/Makefile.common 37QTVERSION= 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.
39QTNAME= qt-everywhere-opensource-src-${QTVERSION} 40QTNAME= qt-everywhere-opensource-src-${QTVERSION}
40DISTFILES+= ${QTNAME}.tar.gz 41DISTFILES+= ${QTNAME}.tar.gz
41MASTER_SITES+= http://releases.qt-project.org/qt4/source/ 42MASTER_SITES+= http://releases.qt-project.org/qt4/source/
42EXTRACT_USING= bsdtar 43EXTRACT_USING= bsdtar
43 44
44USE_LANGUAGES= c c++ 45USE_LANGUAGES= c c++
45USE_TOOLS+= pkg-config pax 46USE_TOOLS+= pkg-config pax
46PYTHON_VERSIONS_ACCEPTED= 27 47PYTHON_VERSIONS_ACCEPTED= 27
47PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # py-mechanize, py-beautifulsoup, py-imaging, py-netifaces 48PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # py-mechanize, py-beautifulsoup, py-imaging, py-netifaces
48PYDISTUTILSPKG= yes 49PYDISTUTILSPKG= yes
49PYSETUPOPTARGS= # empty 50PYSETUPOPTARGS= # empty
50PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX} 51PYSETUPINSTALLARGS= --prefix=${PREFIX} --root=${DESTDIR:Q}${PREFIX}
51WRKSRC= ${WRKDIR}/calibre 52WRKSRC= ${WRKDIR}/calibre
52 53
53INSTALLATION_DIRS= share/applications 54INSTALLATION_DIRS= share/applications
54INSTALLATION_DIRS= share/icons 55INSTALLATION_DIRS= share/icons
55INSTALLATION_DIRS= share/calibre/recipes 56INSTALLATION_DIRS= share/calibre/recipes
56 57
57FIX_PYTHON_PATHS+= *.py 58FIX_PYTHON_PATHS+= *.py
58FIX_PYTHON_PATHS+= recipes/*.recipe 59FIX_PYTHON_PATHS+= recipes/*.recipe
59FIX_PYTHON_PATHS+= */*.py 60FIX_PYTHON_PATHS+= */*.py
60FIX_PYTHON_PATHS+= */*/*.py 61FIX_PYTHON_PATHS+= */*/*.py
61FIX_PYTHON_PATHS+= */*/*/*.py 62FIX_PYTHON_PATHS+= */*/*/*.py
62FIX_PYTHON_PATHS+= */*/*/*/*.py 63FIX_PYTHON_PATHS+= */*/*/*/*.py
63FIX_PYTHON_PATHS+= */*/*/*/*/*.py 64FIX_PYTHON_PATHS+= */*/*/*/*/*.py
64FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py 65FIX_PYTHON_PATHS+= */*/*/*/*/*/*.py
65 66
66SUBST_CLASSES+= prefix 67SUBST_CLASSES+= prefix
67SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt4/bin/qmake'," 68SUBST_SED.prefix= -e "s,^QMAKE =.*,QMAKE = '${PREFIX}/qt4/bin/qmake',"
68SUBST_MESSAGE.prefix= Fixing path to QMAKE 69SUBST_MESSAGE.prefix= Fixing path to QMAKE
69SUBST_STAGE.prefix= post-patch 70SUBST_STAGE.prefix= post-patch
70SUBST_FILES.prefix= setup/build_environment.py 71SUBST_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)
73SUBST_CLASSES+= path 74SUBST_CLASSES+= path
74SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN}," 75SUBST_SED.path= -e "s,\#! */usr/bin/env *[Pp]ython[0-9.]*,\#!${PYTHONBIN},"
75SUBST_MESSAGE.path= Fixing path to python. 76SUBST_MESSAGE.path= Fixing path to python.
76SUBST_STAGE.path= post-patch 77SUBST_STAGE.path= post-patch
77SUBST_FILES.path= ${FIX_PYTHON_PATHS} 78SUBST_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
80REPLACE_PYTHON+= recipes/animal_politico.recipe 81REPLACE_PYTHON+= recipes/animal_politico.recipe
81REPLACE_PYTHON+= recipes/respekt_magazine.recipe 82REPLACE_PYTHON+= recipes/respekt_magazine.recipe
82REPLACE_PYTHON+= recipes/respekt_web.recipe 83REPLACE_PYTHON+= recipes/respekt_web.recipe
83REPLACE_PYTHON+= recipes/kompiutierra.recipe 84REPLACE_PYTHON+= recipes/kompiutierra.recipe
84REPLACE_PYTHON+= recipes/trouw.recipe 85REPLACE_PYTHON+= recipes/trouw.recipe
85REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py 86REPLACE_PYTHON+= src/calibre/ebooks/markdown/extensions/*.py
86REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py 87REPLACE_PYTHON+= src/calibre/ebooks/metadata/odt.py
87REPLACE_PYTHON+= src/calibre/utils/*.py 88REPLACE_PYTHON+= src/calibre/utils/*.py
88REPLACE_PYTHON+= src/odf/*.py 89REPLACE_PYTHON+= src/odf/*.py
89 90
90MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig 91MAKE_ENV+= FC_INC_DIR=${BUILDLINK_PREFIX.fontconfig}/include/fontconfig
91MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib 92MAKE_ENV+= FC_LIB_DIR=${BUILDLINK_PREFIX.fontconfig}/lib
92MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo 93MAKE_ENV+= PODOFO_INC_DIR=${BUILDLINK_PREFIX.podofo}/include/podofo
93MAKE_ENV+= PODOFO_LIB_DIR=${BUILDLINK_PREFIX.podofo}/lib 94MAKE_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.
97pre-configure: 98pre-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.
101post-extract: 102post-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).
108post-wrapper: 109post-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
114post-install: 115post-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"
125BUILDLINK_API_DEPENDS.libusb+= libusb>=0.1.12 126BUILDLINK_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"
128BUILDLINK_API_DEPENDS.ImageMagick+= ImageMagick>=6.5.9 129BUILDLINK_API_DEPENDS.ImageMagick+= ImageMagick>=6.5.9
129.include "../../graphics/ImageMagick/buildlink3.mk" 130.include "../../graphics/ImageMagick/buildlink3.mk"
130BUILDLINK_API_DEPENDS.pyimaging+= ${PYPKGPREFIX}-imaging>=1.1.6 131BUILDLINK_API_DEPENDS.pyimaging+= ${PYPKGPREFIX}-imaging>=1.1.6
131.include "../../graphics/py-imaging/buildlink3.mk" 132.include "../../graphics/py-imaging/buildlink3.mk"
132BUILDLINK_API_DEPENDS.libwmf+= libwmf>=0.2.8 133BUILDLINK_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"
144BUILDLINK_API_DEPENDS.poppler-qt4+= poppler-qt4>=0.12.0 145BUILDLINK_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"
148BUILDLINK_API_DEPENDS.py-dbus+= ${PYPKGPREFIX}-dbus>=0.82.2 149BUILDLINK_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"
154BUILDLINK_API_DEPENDS.py-qt4+= ${PYPKGPREFIX}-qt4>=4.7.0 155BUILDLINK_API_DEPENDS.py-qt4+= ${PYPKGPREFIX}-qt4>=4.7.0
155.include "../../x11/py-qt4/buildlink3.mk" 156.include "../../x11/py-qt4/buildlink3.mk"
156BUILDLINK_API_DEPENDS.qt4-tools+= qt4-tools>=4.7.0 157BUILDLINK_API_DEPENDS.qt4-tools+= qt4-tools>=4.7.0
157.include "../../x11/qt4-tools/buildlink3.mk" 158.include "../../x11/qt4-tools/buildlink3.mk"
158BUILDLINK_API_DEPENDS.qt4-qdbus+= qt4-qdbus>=4.7.0 159BUILDLINK_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"

cvs diff -r1.10 -r1.11 pkgsrc/security/sshfp/Makefile (switch to unified diff)

--- pkgsrc/security/sshfp/Makefile 2014/05/17 16:10:48 1.10
+++ pkgsrc/security/sshfp/Makefile 2016/06/30 18:03:46 1.11
@@ -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
3DISTNAME= sshfp-1.1.3 3DISTNAME= sshfp-1.1.3
4PKGREVISION= 4 4PKGREVISION= 4
5CATEGORIES= security net 5CATEGORIES= security net
6MASTER_SITES= http://www.xelerance.com/software/sshfp/ 6MASTER_SITES= http://www.xelerance.com/software/sshfp/
7 7
8MAINTAINER= agc@NetBSD.org 8MAINTAINER= agc@NetBSD.org
9HOMEPAGE= http://www.xelerance.com/software/sshfp/ 9HOMEPAGE= http://www.xelerance.com/software/sshfp/
10COMMENT= Print ssh host key fingerprint resource records 10COMMENT= Print ssh host key fingerprint resource records
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13PYTHON_VERSIONED_DEPENDENCIES= dns 13DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
14 14
15MANCOMPRESSED= yes 15MANCOMPRESSED= yes
16NO_BUILD= yes 16NO_BUILD= yes
17REPLACE_PYTHON= sshfp 17REPLACE_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"