]> git.donarmstrong.com Git - neurodebian.git/blob - neurodebian/templates/pkg.rst
Put icon links to extracts from DSCs (README, changelog, copyright)
[neurodebian.git] / neurodebian / templates / pkg.rst
1
2 .. _pkg_{{ pkg }}:
3
4
5 {{ title }}
6
7 {{ long_description }}
8
9 External links:
10
11 .. raw:: html
12
13   <p><a href="{{ db.main.homepage }}">
14   <img border="0" src="../_static/go-home.png" title="Go to {{ pkg }} homepage" /></a>
15   {%- if extracts_dir -%}
16     {%- if op.exists(op.join(extracts_dir, 'copyright')) -%}
17       <a href="../debian/extracts/{{ db.main.sv.split()[0] }}/copyright">
18       <img border="0" src="../_static/legal.png" title="Copyright information for this package" /></a>
19     {%- endif -%}
20     {%- if op.exists(op.join(extracts_dir, 'changelog')) -%}
21       <a href="../debian/extracts/{{ db.main.sv.split()[0] }}/changelog">
22       <img border="0" src="../_static/debian-changelog.png" title="Debian changelog of this software" /></a>
23     {%- endif -%}
24     {%- if op.exists(op.join(extracts_dir, 'README.Debian')) -%}
25       <a href="../debian/extracts/{{ db.main.sv.split()[0] }}/README.Debian">
26       <img border="0" src="../_static/info.png" title="Information on Debian-specific aspects of this software" /></a>
27     {%- endif -%}
28   {%- endif -%}
29   {%- if cfg.has_option("nitrc ids", pkg) -%}
30   <a href="http://www.nitrc.org/project?group_id={{ cfg.get("nitrc ids", pkg) }}">
31   <img border="0" src="../_static/nitrc_listed.png" title="See the entry on nitrc.org" /></a>
32   {%- endif -%}
33   {% if db.blends %}{% for blend, name, url in db.blends.tasks -%}
34   {%- if blend == 'debian-med' -%}
35   <a href="{{ url }}#{{ pkg }}">
36   <img border="0" src="../_static/debianmed.png" title="Part of Debian Med {{ name }} task" /></a>
37   {%- endif -%}
38   {%- if blend == 'debian-science' -%}
39   <a href="{{ url }}#{{ pkg }}">
40   <img border="0" src="../_static/debianscience.png" title="Part of Debian Science {{ name }} task" /></a>
41   {%- endif -%}
42   {%- endfor -%}
43   {%- endif -%}
44   </p>
45
46 {% if db.main.publication %}
47 Citable reference:
48   *{{ db.main.publication.authors }}* ({{ db.main.publication.year }}).
49   {%- if db.main.publication.url %} `{{ db.main.publication.title }} <{{ db.main.publication.url }}>`_.
50   {%- else %} {{ db.main.publication.title }}.
51   {%- endif %} {{ db.main.publication.in }}.
52   {%- if db.main.publication.doi %} (`DOI <http://dx.doi.org/{{ db.main.publication.doi }}>`_)
53   {%- endif %}
54 {% endif %}
55
56 {% if db.main.registration -%}
57 .. note::
58   The software authors ask users to
59   `register <{{ db.main.registration }}>`_. Available user statistics might be 
60   helpful to acquire funding for this project and therefore foster continued
61   development in the future.
62 {% endif -%}
63 {% if db.blends and db.blends.remark %}
64 .. note::
65 {{ db.blends.remark | indent(width=2, indentfirst=true) }}
66 {% endif -%}
67
68 {% if db.nitrc or db.main.debian_popcon or db.main.ubuntu_popcon or
69       db.main.recommends or db.main.suggests -%}
70 Package Details
71 ===============
72
73 {% if db.nitrc or db.main.debian_popcon or db.main.ubuntu_popcon %}
74 Package popularity
75 ------------------
76 {% if db.main.debian_popcon -%}
77 - Debian [1]_: {{ db.main.debian_popcon.insts }} (`more info <http://qa.debian.org/popcon.php?package={{ db.main.sv.split()[0] }}>`_)
78 {% endif -%}
79 {% if db.main.ubuntu_popcon -%}
80 - Ubuntu [1]_: {{ db.main.ubuntu_popcon.insts }}
81 {% endif %}
82 {% if db.nitrc and db.nitrc.downloads -%}
83 - NITRC [2]_: {{ db.nitrc.downloads }}
84 {% endif %}
85
86 .. [1] Due to the nature of this data, the reported number can only be
87        considered a conservative estimate of the lower bound of the true
88        number of installations.
89
90 .. [2] This is the total number of downloads from NITRC for this software,
91        comprising all releases for all platforms -- typically not Debian
92        packages.
93 {% endif -%}
94 {% endif -%}
95
96 {% if db.main.recommends or db.main.suggests %}
97 Related packages
98 ----------------
99 {% if db.main.recommends %}
100 {%- for pkg in db.main.recommends.split(',') %}
101 {%- if pkg.split('|')[0].strip() in fulldb %}
102 * :ref:`pkg_{{ pkg.strip() }}`
103 {%- else %}
104 * {{ pkg }}
105 {% endif -%}{% endfor %}{% endif %}
106 {%- if db.main.suggests %}
107 {%- for pkg in db.main.suggests.split(',') %}
108 {%- if pkg.split('|')[0].strip() in fulldb %}
109 * :ref:`pkg_{{ pkg.strip() }}`
110 {%- else %}
111 * {{ pkg.strip() }}
112 {% endif -%}{% endfor %}{% endif %}
113 {% endif %}
114
115 Binary packages
116 ===============
117
118 NeuroDebian
119 -----------
120
121 {% for dist, distpkg in db|dictsort if dist[1].startswith('neurodebian') -%}
122 {% if loop.first -%}
123 The repository contains binary packages for the following distribution
124 releases and system architectures. The corresponding source packages
125 are available too.
126
127 .. note::
128   Do not download this package manually if you plan to use it
129   regularly. Instead configure your package manager to use this
130   repository by following the instructions on the
131   :ref:`front page <repository_howto>`.
132 {% endif %}
133 {{ dist[0] }} [{{ distpkg.component}}]:
134   `{{distpkg.version}} <../../debian/{{ distpkg.poolurl }}>`_ [{{ ', '.join(distpkg.architecture) }}]
135
136 {% if loop.last %}
137 .. seealso::
138
139   - Original Maintainer: {{ distpkg.maintainer }}
140
141     (if there is any chance that some problem is specific to the package
142     distributed through the NeuroDebian repository, please contact
143     team@neuro.debian.net instead of the original
144     maintainer)
145 {% endif %}
146 {% else %}
147 *There are no packages in the NeuroDebian repository.*
148 {% endfor %}
149
150
151 Debian
152 ------
153
154 {% for dist, distpkg in db|dictsort if dist[1].startswith('debian') %}
155 {% if loop.first %}
156 {% endif %}
157 {{ dist[0] }} [{{ distpkg.component}}]:
158   `{{distpkg.version}} <http://packages.debian.org/search?suite={{ distpkg.release}}&keywords={{ pkg }}>`_ [{{ ', '.join(distpkg.architecture) }}]
159
160 {% if loop.last %}
161 .. seealso::
162
163   - Maintainer: {{ distpkg.maintainer }}
164   - Bug reports: `Debian bugtracking system <http://bugs.debian.org/src:{{ distpkg.source }}>`_
165 {% endif %}
166 {% else %}
167 *There are no official Debian packages available.*
168
169 {% if db.main.debian_itp %}
170 However, a Debian packaging effort has been officially announced.
171 Please see the corresponding
172 `intent-to-package bug report <http://bugs.debian.org/{{ db.main.debian_itp }}>`_
173 for more information about its current status.
174 {% endif %}
175 {% endfor %}
176
177
178 Ubuntu
179 ------
180
181 {% for dist, distpkg in db|dictsort if dist[1].startswith('ubuntu') %}
182 {% if loop.first %}
183 {% endif %}
184 {{ dist[0] }} [{{ distpkg.component }}]:
185   `{{distpkg.version}} <http://packages.ubuntu.com/search?suite={{ distpkg.release }}&keywords={{ pkg }}>`_ [{{ ', '.join(distpkg.architecture) }}]
186
187 {% if loop.last %}
188 .. seealso::
189
190   - Maintainer: {{ distpkg.maintainer }}
191   - Bug reports: `Ubuntu Launchpad <https://bugs.launchpad.net/ubuntu/+source/{{ distpkg.source }}>`_
192 {% endif %}
193 {% else %}
194 *There are no official Ubuntu packages available.*
195 {% endfor %}