diff options
-rw-r--r-- | _plugins/herds.rb | 43 | ||||
-rwxr-xr-x | bin/update-herds.sh | 6 | ||||
-rwxr-xr-x | bin/update.sh | 1 | ||||
-rw-r--r-- | inside-gentoo/developers/herds.html | 60 |
4 files changed, 9 insertions, 101 deletions
diff --git a/_plugins/herds.rb b/_plugins/herds.rb deleted file mode 100644 index 971f1e2..0000000 --- a/_plugins/herds.rb +++ /dev/null @@ -1,43 +0,0 @@ -module Gentoo - class HerdsGenerator < Jekyll::Generator - XML = '_data/herds.xml' - - def generate(site) - xml = Nokogiri::XML(File.open(XML)) - - site.data['herds'] ||= {} - - xml.xpath('/herds/herd').each do |item| - item_data = {} - - name = item.xpath('./name').first.text - - item_data['email'] = item.xpath('./email/text()').first.content - item_data['description'] = item.xpath('./description/text()').first.text - - ns_maint = item.xpath('./maintainer') - item_data['maintainers'] = [] if ns_maint.size > 0 - ns_maint.each do |maint| - maint_data = { - 'email' => maint.xpath('./email/text()').first.text, - 'name' => nil, - 'role' => nil - } - - ns_name = maint.xpath('./name/text()') - maint_data['name'] = ns_name.first.text if ns_name.size > 0 - - ns_role = maint.xpath('./role/text()') - maint_data['role'] = ns_role.first.text if ns_role.size > 0 - - item_data['maintainers'] << maint_data - end - - ns_maintproj = item.xpath('./maintainingproject/text()') - item_data['proj'] = ns_maintproj.first.text if ns_maintproj.size > 0 - - site.data['herds'][name] = item_data - end - end - end -end diff --git a/bin/update-herds.sh b/bin/update-herds.sh deleted file mode 100755 index 5e21b08..0000000 --- a/bin/update-herds.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -echo -n 'Updating herd information...' -wget 'https://api.gentoo.org/packages/herds.xml' -O _data/herds.xml.tmp 2>/dev/null -[ $? -eq 0 ] && mv _data/herds.xml.tmp _data/herds.xml -echo 'done.' diff --git a/bin/update.sh b/bin/update.sh index 35fd32c..5e8068d 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -3,7 +3,6 @@ bin/update-devaway.sh || exit 1 bin/update-downloads.sh || exit 1 bin/update-glsa.sh || exit 1 -bin/update-herds.sh || exit 1 bin/update-mirrors.sh || exit 1 bin/update-packages.sh || exit 1 bin/update-planet.sh || exit 1 diff --git a/inside-gentoo/developers/herds.html b/inside-gentoo/developers/herds.html index 84f30e0..31a118d 100644 --- a/inside-gentoo/developers/herds.html +++ b/inside-gentoo/developers/herds.html @@ -7,59 +7,17 @@ nav1: inside-gentoo nav2: developers nav3: herds -nav3-show: true +nav3-show: false nav3-weight: 40 layout: page-nav3 --- -<p> - This page lists all package maintenance groups (herds) in the Gentoo project. -</p> - -{% for entry in site.data.herds %} -<h3 id="{{ entry[0] | xml_escape }}">{{ entry[0] | xml_escape }}</h3> - -<table class="table"> - <tr> - <th class="herd-desc-col">Description</th> - <td>{{ entry[1].description | xml_escape }}</td> - </tr> - <tr> - <th>Contact</th> - <td><a href="mailto:{{ entry[1].email | xml_escape }}">{{ entry[1].email | xml_escape }}</a></td> - </tr> - <tr> - <th>Maintainers</th> - <td> - {% if entry[1].maintainers %} - <table class="table table-condensed"> - <tr> - <th class="herd-maint-col">Maintainer</th> - <th>Roles</th> - </tr> - {% for maint in entry[1].maintainers %} - <tr> - <td> - {% if maint.name %} - <a href="mailto:{{ maint.email | xml_escape }}">{{ maint.name | xml_escape }}</a> - {% else %} - <a href="mailto:{{ maint.email | xml_escape }}">{{ maint.email | xml_escape }}</a> - {% endif %} - </td> - <td> - {{ maint.role | xml_escape }} - </td> - </tr> - {% endfor %} - </table> - {% endif %} - - {% if entry[1].proj %} - A Gentoo project is (also) listed as participating in the maintenance of packages in this herd. - Listing maintainers of this project is currently not possible. - {% endif %} - </td> - </tr> -</table> -{% endfor %} +<div class="alert alert-warning"> + <strong>This page is deprecated.</strong> + <br> + With <a class="alert-link" href="https://wiki.gentoo.org/wiki/GLEP:67">GLEP 67</a>, the concept of <em>herds</em> has been deprecated. + <br> + Packages are now maintained by Gentoo projects and their respective members. + For a list of projects, please see our <a class="alert-link" href="https://wiki.gentoo.org/wiki/Project:Gentoo">Wiki</a>. +</div> |