public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] xml-test/valid: valid metadata.xml test based on the example in GLEP 68
@ 2016-05-04  6:43 Göktürk Yüksek
  0 siblings, 0 replies; only message in thread
From: Göktürk Yüksek @ 2016-05-04  6:43 UTC (permalink / raw
  To: gentoo-portage-dev

Signed-off-by: Göktürk Yüksek <gokturk@binghamton.edu>
---
 xml-test/valid/metadata.xml     | 64 +++++++++++++++++++++++++++++++++++++++++
 xml-test/valid/valid-0.1.ebuild | 12 ++++++++
 2 files changed, 76 insertions(+)
 create mode 100644 xml-test/valid/metadata.xml
 create mode 100644 xml-test/valid/valid-0.1.ebuild

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='&lt;xml-test/valid-0.1'>Enables bar feature (requires <pkg>xml-test/missing</pkg>)</flag>
+    <flag name='bar' restrict='&gt;=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='&lt;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='&gt;=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"
-- 
2.7.3



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-04  6:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-04  6:43 [gentoo-portage-dev] [PATCH] xml-test/valid: valid metadata.xml test based on the example in GLEP 68 Göktürk Yüksek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox