Gentoo Archives: gentoo-portage-dev

From: "Göktürk Yüksek" <gokturk@××××××××××.edu>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [PATCH 3/3] xml-test/uniqueness: tests for unique (element,attribute,value) combinations
Date: Sat, 07 May 2016 21:23:04
Message-Id: 1462656160-13578-3-git-send-email-gokturk@binghamton.edu
In Reply to: [gentoo-portage-dev] [PATCH 1/3] xml-text/valid: add a second description to downstream maintainer by "Göktürk Yüksek"
1 Signed-off-by: Göktürk Yüksek <gokturk@××××××××××.edu>
2 ---
3 xml-test/uniqueness/metadata.xml | 33 +++++++++++++++++++++++++++++++
4 xml-test/uniqueness/uniqueness-0.1.ebuild | 12 +++++++++++
5 2 files changed, 45 insertions(+)
6 create mode 100644 xml-test/uniqueness/metadata.xml
7 create mode 100644 xml-test/uniqueness/uniqueness-0.1.ebuild
8
9 diff --git a/xml-test/uniqueness/metadata.xml b/xml-test/uniqueness/metadata.xml
10 new file mode 100644
11 index 0000000..84b3a1b
12 --- /dev/null
13 +++ b/xml-test/uniqueness/metadata.xml
14 @@ -0,0 +1,33 @@
15 +<?xml version="1.0" encoding="UTF-8"?>
16 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
17 +<pkgmetadata>
18 + <longdescription>
19 + Tests for the uniqueness of elements.
20 +
21 + Uniqueness focuses on element, attribute, value combinations
22 + which must not repeat.
23 +
24 + The tests are conservative: i.e. if we check the
25 + (longdescription, lang, restrict) combination, we do not check
26 + (slots,lang, restrict).
27 + </longdescription>
28 + <!-- non-unique (longdescription, lang, restrict) combination -->
29 + <longdescription lang='en'>uniqueness violation</longdescription>
30 + <maintainer type='person'>
31 + <email>gen-b0rk@g.o</email>
32 + </maintainer>
33 + <maintainer type='project'>
34 + <!-- non-unique (maintainer, email, restrict) combination -->
35 + <email>gen-b0rk@g.o</email>
36 + </maintainer>
37 + <slots>
38 + <slot name="0">Match the SONAME of libuniqueness.so</slot>
39 + <!-- non-unique (slot, name, restrict) combination -->
40 + <slot name="0">uniqueness violation</slot>
41 + </slots>
42 + <use>
43 + <flag name="foo">Enable feature foo</flag>
44 + <!-- non-unique (flag, name, restrict) combination -->
45 + <flag name="foo">uniqueness violation</flag>
46 + </use>
47 +</pkgmetadata>
48 diff --git a/xml-test/uniqueness/uniqueness-0.1.ebuild b/xml-test/uniqueness/uniqueness-0.1.ebuild
49 new file mode 100644
50 index 0000000..03c3fa7
51 --- /dev/null
52 +++ b/xml-test/uniqueness/uniqueness-0.1.ebuild
53 @@ -0,0 +1,12 @@
54 +# Copyright 1999-2016 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Id$
57 +
58 +EAPI=6
59 +
60 +DESCRIPTION="Tests for (element, attribute, value) uniqueness"
61 +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68"
62 +LICENSE="HPND"
63 +SLOT="0"
64 +KEYWORDS="~amd64"
65 +IUSE="foo"
66 --
67 2.7.3