diff options
author | 2016-05-04 02:43:05 -0400 | |
---|---|---|
committer | 2016-05-03 23:44:02 -0700 | |
commit | b90438cbe3a2cb3a7d886983bacafb0a75e9cd91 (patch) | |
tree | 6d10943f53e8350c9d69a34efc8a8d10f4dd25e0 | |
parent | xml-test/missing-doctype: Add missed HOMEPAGE (diff) | |
download | gen-b0rk-b90438cbe3a2cb3a7d886983bacafb0a75e9cd91.tar.gz gen-b0rk-b90438cbe3a2cb3a7d886983bacafb0a75e9cd91.tar.bz2 gen-b0rk-b90438cbe3a2cb3a7d886983bacafb0a75e9cd91.zip |
xml-test/valid: valid metadata.xml test based on the example in GLEP 68
Signed-off-by: Göktürk Yüksek <gokturk@binghamton.edu>
-rw-r--r-- | xml-test/valid/metadata.xml | 64 | ||||
-rw-r--r-- | xml-test/valid/valid-0.1.ebuild | 12 |
2 files changed, 76 insertions, 0 deletions
diff --git a/xml-test/valid/metadata.xml b/xml-test/valid/metadata.xml new file mode 100644 index 0000000..c33f7ac --- /dev/null +++ b/xml-test/valid/metadata.xml @@ -0,0 +1,64 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!-- A valid metadata.xml similar to the one specified in GLEP 68 --> +<pkgmetadata> + <maintainer type='person'> + <email>developer@example.com</email> + <name>Example Developer</name> + </maintainer> + <maintainer type='project'> + <email>project@example.com</email> + <name>Example Project</name> + </maintainer> + <maintainer type='person'> + <email>upstream@example.com</email> + <name>Upstream Developer</name> + <description>Upstream developer, wishing to be CC-ed on bugs</description> + </maintainer> + <longdescription> + First paragraph of extensive description. + + Second paragraph. + </longdescription> + <longdescription lang='de'> + Erster Absatz mit detaillierter Beschreibung. + + Zweiter Absatz. + </longdescription> + <slots> + <slot name='11'>Compatibility slot providing libvalid.so.11 only.</slot> + <subslots> + Match SONAME of libvalid.so. + </subslots> + </slots> + <slots lang='de'> + <slot name='11'>Kompatibilitäts-Slot, installiert ausschließlich libvalid.so.11.</slot> + <subslots> + Subslot ist stets identisch mit dem SONAME von libvalid.so. + </subslots> + </slots> + <use> + <flag name='foo'>Enables foo feature</flag> + <flag name='bar' restrict='<xml-test/valid-0.1'>Enables bar feature (requires <pkg>xml-test/missing</pkg>)</flag> + <flag name='bar' restrict='>=xml-test/valid-0.1'>Enables bar feature</flag> + </use> + <use lang='de'> + <flag name='foo'>Konfiguriert das Paket mit Unterstütztung für foo</flag> + <flag name='bar' restrict='<xml-test/valid-0.1'>Konfiguriert das Paket mit Unterstütztung für bar (benötigt <pkg>xml-test/missing</pkg>)</flag> + <flag name='bar' restrict='>=xml-test/valid-0.1'>Konfiguriert das Paket mit Unterstütztung für bar</flag> + </use> + <upstream> + <maintainer status='active'> + <email>upstream@example.com</email> + <name>Upstream Developer</name> + </maintainer> + <maintainer status='inactive'> + <name>John Smith</name> + </maintainer> + <changelog>http://www.example.com/releases.html</changelog> + <doc>http://www.example.com/doc.html</doc> + <doc lang='de'>http://www.example.com/doc.de.html</doc> + <bugs-to>http://www.example.com/issues.html</bugs-to> + <remote-id type='github'>gentoo/gen-b0rk</remote-id> + </upstream> +</pkgmetadata> diff --git a/xml-test/valid/valid-0.1.ebuild b/xml-test/valid/valid-0.1.ebuild new file mode 100644 index 0000000..3b2c1c8 --- /dev/null +++ b/xml-test/valid/valid-0.1.ebuild @@ -0,0 +1,12 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="GLEP68 compliant metadata example" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68#Example_metadata.xml_file" +LICENSE="HPND" +SLOT="11" +KEYWORDS="~amd64" +IUSE="foo bar" |