[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/file-empty/files/, ebuild-test/file-empty/
commit: 1fb82d4b07a9766871bd11f31ea571061018c00b Author: Ulrich Müller gentoo org> AuthorDate: Wed Mar 1 20:11:51 2017 + Commit: Ulrich Müller gentoo org> CommitDate: Wed Mar 1 20:42:08 2017 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=1fb82d4b ebuild-test/file-empty: New test for empty file in FILESDIR. Corresponds to the following repoman commit: https://gitweb.gentoo.org/proj/portage.git/commit/?id=04e5f8dee2130901386f4f1b65328bbf0b8104c1 ebuild-test/file-empty/file-empty-0.ebuild | 11 + .../file-empty/files/file-empty-0-gentoo.patch | 0 ebuild-test/file-empty/metadata.xml| 26 ++ 3 files changed, 37 insertions(+) diff --git a/ebuild-test/file-empty/file-empty-0.ebuild b/ebuild-test/file-empty/file-empty-0.ebuild new file mode 100644 index 000..f116b23 --- /dev/null +++ b/ebuild-test/file-empty/file-empty-0.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Empty file in FILESDIR" +HOMEPAGE="http://example.com/; + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" diff --git a/ebuild-test/file-empty/files/file-empty-0-gentoo.patch b/ebuild-test/file-empty/files/file-empty-0-gentoo.patch new file mode 100644 index 000..e69de29 diff --git a/ebuild-test/file-empty/metadata.xml b/ebuild-test/file-empty/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/file-empty/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/badheader-id/
commit: 105b6807d50a7cb2fc1b984790529cbbcdbd7a24 Author: Ulrich Müller gentoo org> AuthorDate: Wed Mar 1 20:07:26 2017 + Commit: Ulrich Müller gentoo org> CommitDate: Wed Mar 1 20:07:26 2017 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=105b6807 ebuild-test/badheader-id: New test for stale CVS keywords in ebuild header. The "# $Id$" line has been abolished. This test corresponds to the following repoman commit: https://gitweb.gentoo.org/proj/portage.git/commit/?id=44d6f11f37970a60ac2e4d7252180d96793e02d3 ebuild-test/badheader-id/badheader-id-0.ebuild | 12 ebuild-test/badheader-id/metadata.xml | 26 ++ 2 files changed, 38 insertions(+) diff --git a/ebuild-test/badheader-id/badheader-id-0.ebuild b/ebuild-test/badheader-id/badheader-id-0.ebuild new file mode 100644 index 000..2b88d88 --- /dev/null +++ b/ebuild-test/badheader-id/badheader-id-0.ebuild @@ -0,0 +1,12 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Stale $Id$ line in header" +HOMEPAGE="http://example.com/; + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" diff --git a/ebuild-test/badheader-id/metadata.xml b/ebuild-test/badheader-id/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/badheader-id/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/file-utf8/
commit: cf6dec915f7e66ae241fadb7f42710d01ed00171 Author: Ulrich Müller gentoo org> AuthorDate: Wed Mar 1 20:29:39 2017 + Commit: Ulrich Müller gentoo org> CommitDate: Wed Mar 1 20:42:11 2017 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=cf6dec91 ebuild-test/file-utf8: New test, ebuild in encoding other than utf-8. This crashes repoman-2.3.1 (Python 3.4) with a UnicodeDecodeError. ebuild-test/file-utf8/file-utf8-0.ebuild | 11 +++ ebuild-test/file-utf8/metadata.xml | 26 ++ 2 files changed, 37 insertions(+) diff --git a/ebuild-test/file-utf8/file-utf8-0.ebuild b/ebuild-test/file-utf8/file-utf8-0.ebuild new file mode 100644 index 000..613d154 --- /dev/null +++ b/ebuild-test/file-utf8/file-utf8-0.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Ebuild in iso-8859-1 �n��d��g" +HOMEPAGE="http://example.com/; + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" diff --git a/ebuild-test/file-utf8/metadata.xml b/ebuild-test/file-utf8/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/file-utf8/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: not-broken/pkg1-subslot/, profiles/
commit: 31c5744bd8be01bfcd448c13e3390d601127da77 Author: Sergei Trofimovich gentoo org> AuthorDate: Tue Jun 21 07:45:18 2016 + Commit: Sergei Trofimovich gentoo org> CommitDate: Tue Jun 21 07:45:18 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=31c5744b profiles/categories: new 'not-broken' category for negative tests Adds a package with 2 subslots. To be used in slot operator test. Signed-off-by: Sergei Trofimovich gentoo.org> not-broken/pkg1-subslot/metadata.xml | 7 +++ not-broken/pkg1-subslot/pkg1-subslot-0.ebuild | 12 not-broken/pkg1-subslot/pkg1-subslot-1.ebuild | 12 profiles/categories | 1 + 4 files changed, 32 insertions(+) diff --git a/not-broken/pkg1-subslot/metadata.xml b/not-broken/pkg1-subslot/metadata.xml new file mode 100644 index 000..fb12b62 --- /dev/null +++ b/not-broken/pkg1-subslot/metadata.xml @@ -0,0 +1,7 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + Negative test: repoman should not fire on these + ebuilds. Ebuilds can be used to test other ebuild problems. + + diff --git a/not-broken/pkg1-subslot/pkg1-subslot-0.ebuild b/not-broken/pkg1-subslot/pkg1-subslot-0.ebuild new file mode 100644 index 000..e42c852 --- /dev/null +++ b/not-broken/pkg1-subslot/pkg1-subslot-0.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="Package with subslots" +HOMEPAGE="http://gentoo.org/; + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64" diff --git a/not-broken/pkg1-subslot/pkg1-subslot-1.ebuild b/not-broken/pkg1-subslot/pkg1-subslot-1.ebuild new file mode 100644 index 000..e42c852 --- /dev/null +++ b/not-broken/pkg1-subslot/pkg1-subslot-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="Package with subslots" +HOMEPAGE="http://gentoo.org/; + +LICENSE="BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64" diff --git a/profiles/categories b/profiles/categories index a88f091..78e3c9d 100644 --- a/profiles/categories +++ b/profiles/categories @@ -3,4 +3,5 @@ eapi-test ebuild-test eclass-test keywords-test +not-broken xml-test
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/RDEPEND-slotop-any-of/
commit: b4ab8d3877ab1ce7ecbefdd57c2c0f81c9de3eb3 Author: Sergei Trofimovich gentoo org> AuthorDate: Tue Jun 21 07:48:04 2016 + Commit: Sergei Trofimovich gentoo org> CommitDate: Tue Jun 21 07:52:05 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=b4ab8d38 ebuild-test/RDEPEND-slotop-any-of: new test Add test for slot operator in any-of style RDEPEND. Repoman got support for it in: https://gitweb.gentoo.org/proj/portage.git/commit/?id=c2594facc9a0c807ed148fd5bf76499fe2f3dbc5 Signed-off-by: Sergei Trofimovich gentoo.org> .../RDEPEND-slotop-any-of-0.ebuild | 17 ++ ebuild-test/RDEPEND-slotop-any-of/metadata.xml | 39 ++ 2 files changed, 56 insertions(+) diff --git a/ebuild-test/RDEPEND-slotop-any-of/RDEPEND-slotop-any-of-0.ebuild b/ebuild-test/RDEPEND-slotop-any-of/RDEPEND-slotop-any-of-0.ebuild new file mode 100644 index 000..2e19378 --- /dev/null +++ b/ebuild-test/RDEPEND-slotop-any-of/RDEPEND-slotop-any-of-0.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Pass ':=' to '||' conditionals" +HOMEPAGE="http://gentoo.org/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +# Correct dependency for this case would be to move ':=' out of 'any-of' clause: +# RDEPEND=" +# not-broken/pkg1-subslot:= +# || ( =not-broken/pkg1-subslot-0 =not-broken/pkg1-subslot-1 )" +RDEPEND="|| ( =not-broken/pkg1-subslot-0:= =not-broken/pkg1-subslot-1:0= )" diff --git a/ebuild-test/RDEPEND-slotop-any-of/metadata.xml b/ebuild-test/RDEPEND-slotop-any-of/metadata.xml new file mode 100644 index 000..e71c729 --- /dev/null +++ b/ebuild-test/RDEPEND-slotop-any-of/metadata.xml @@ -0,0 +1,39 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + Test for rebuild slot operator in 'any-of' (or '||') RDEPEND. + + This particular example breaks in the following way: + + Suppose we have Two packages installed: + - not-broken/pkg1-subslot-0 + - ebuld-test/RDEPEND-any-of-slotop-0 + + In this case the + RDEPEND="|| ( =not-broken/pkg1-subslot-0:= =not-broken/pkg1-subslot-1:= )" + gets expanded by portage to the following vdb entry: + RDEPEND="|| ( =not-broken/pkg1-subslot-0:0/0= =not-broken/pkg1-subslot-1:= )" + + Note the second unexpanded alternative. + + Then to trigger a bug we need to try to update depend only: + emerge -1 not-broken/pkg1-subslot + + Portage can not figure out update path from this case: + + !!! Multiple package instances within a single package slot have been pulled + !!! into the dependency graph, resulting in a slot conflict: + + not-broken/pkg1-subslot:0 + + (not-broken/pkg1-subslot-1:0/1::test_repo, ebuild scheduled for merge) pulled in by + not-broken/pkg1-subslot (Argument) + =not-broken/pkg1-subslot-1:= required by (ebuild-test/RDEPEND-any-of-slotop:0/0::test_repo, installed) + ^ ^^ + + (not-broken/pkg1-subslot-0:0/0::test_repo, installed) pulled in by + =not-broken/pkg1-subslot-0:0/0= required by (ebuild-test/RDEPEND-any-of-slotop:0/0::test_repo, installed) + ^ + +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/missing-patches/, ebuild-test/missing-patches/files/
commit: eedb07f60eb9606d496cc0da115c423614f02b51 Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) gentoo org> AuthorDate: Mon May 16 16:04:48 2016 + Commit: Jorge Manuel B. S. Vicetto gentoo org> CommitDate: Mon May 16 16:04:48 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=eedb07f6 Add ebuild for testing missing patches. Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) gentoo.org> ebuild-test/missing-patches/Manifest | 1 + .../missing-patches/files/files-patch-1.patch | 0 ebuild-test/missing-patches/metadata.xml | 26 ++ .../missing-patches/missing-patches-0.ebuild | 18 +++ 4 files changed, 45 insertions(+) diff --git a/ebuild-test/missing-patches/Manifest b/ebuild-test/missing-patches/Manifest new file mode 100644 index 000..a7f6595 --- /dev/null +++ b/ebuild-test/missing-patches/Manifest @@ -0,0 +1 @@ +DIST missing-patches-0.tar.bz2 182 SHA256 473fdf9154af409f23c297c7355ff924247338ab004e2bd6bb1d9f7a74ad00fb SHA512 d896a8a2fe109cf017757a0a5098b644561ff62964b19d99434947b0fcbc38f80168d8189f4fc1975dcbba4b1b810e8f8a1aa7e3d086f679cb118339abe25b0e WHIRLPOOL 85a668e71c596164d57100b942d5fa274095e75dfaf42a91bdf6d500bdc80cdf4584718415809ec1500e59fbd05391b5f34419b61b8650774754fa24aab6d7e1 diff --git a/ebuild-test/missing-patches/files/files-patch-1.patch b/ebuild-test/missing-patches/files/files-patch-1.patch new file mode 100644 index 000..e69de29 diff --git a/ebuild-test/missing-patches/metadata.xml b/ebuild-test/missing-patches/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/missing-patches/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/missing-patches/missing-patches-0.ebuild b/ebuild-test/missing-patches/missing-patches-0.ebuild new file mode 100644 index 000..d5e0376 --- /dev/null +++ b/ebuild-test/missing-patches/missing-patches-0.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +DESCRIPTION="Missing patches" +HOMEPAGE="https://foo.example.org/; +SRC_URI="https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2; +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +DEPEND="" +RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}/files-patch-1.patch" + "${FILESDIR}/files-patch-2.patch" + "${S}/patch-1.patch" + "${S}/patch-2.patch" +)
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/upstream-workaround/
commit: bd0a7291f9813f7dcdf9ff69e18d47ebbc8cdb74 Author: Mike Gilbert gentoo org> AuthorDate: Thu May 12 17:09:04 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Thu May 12 17:09:04 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=bd0a7291 ebuild-test/upstream-workaround: new test ebuild-test/upstream-workaround/metadata.xml | 26 ++ .../upstream-workaround-0.ebuild | 19 2 files changed, 45 insertions(+) diff --git a/ebuild-test/upstream-workaround/metadata.xml b/ebuild-test/upstream-workaround/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/upstream-workaround/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/upstream-workaround/upstream-workaround-0.ebuild b/ebuild-test/upstream-workaround/upstream-workaround-0.ebuild new file mode 100644 index 000..a8078b2 --- /dev/null +++ b/ebuild-test/upstream-workaround/upstream-workaround-0.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Various workarounds for broken code upstream" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + addpredict /foo + emake -j1 + MAKEOPTS="-j1" emake + emake LDFLAGS="$(no-as-needed)" +}
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/inherit-unused/
commit: 2df08cae004e9280fc29844cccf100a1c9269e2a Author: Mike Gilbert gentoo org> AuthorDate: Thu May 12 17:04:17 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Thu May 12 17:04:17 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=2df08cae ebuild-test/inherit-unused: new test ebuild-test/inherit-unused/inherit-unused-0.ebuild | 14 ebuild-test/inherit-unused/metadata.xml| 26 ++ 2 files changed, 40 insertions(+) diff --git a/ebuild-test/inherit-unused/inherit-unused-0.ebuild b/ebuild-test/inherit-unused/inherit-unused-0.ebuild new file mode 100644 index 000..4ea5527 --- /dev/null +++ b/ebuild-test/inherit-unused/inherit-unused-0.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools + +DESCRIPTION="Check for unused eclass" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" diff --git a/ebuild-test/inherit-unused/metadata.xml b/ebuild-test/inherit-unused/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/inherit-unused/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/inherit-missing/
commit: 79b32a6de467e8f0a41f7fc55ed2243e5af316eb Author: Mike Gilbert gentoo org> AuthorDate: Thu May 12 16:48:29 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Thu May 12 16:49:05 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=79b32a6d ebuild-test/inherit-missing: add eautoreconf ebuild-test/inherit-missing/inherit-missing-0.ebuild | 5 + 1 file changed, 5 insertions(+) diff --git a/ebuild-test/inherit-missing/inherit-missing-0.ebuild b/ebuild-test/inherit-missing/inherit-missing-0.ebuild index 10da580..1adb451 100644 --- a/ebuild-test/inherit-missing/inherit-missing-0.ebuild +++ b/ebuild-test/inherit-missing/inherit-missing-0.ebuild @@ -11,6 +11,11 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" +src_prepare() { + # missing autotools + eautoreconf +} + src_configure() { # missing eutils edos2unix foo
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/root-var-usage/
commit: 908579420e92e631d56a558734299b72f5688e83 Author: Michael Orlitzky gentoo org> AuthorDate: Wed May 11 15:35:52 2016 + Commit: Michael Orlitzky gentoo org> CommitDate: Wed May 11 16:42:13 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=90857942 Add a test case for PMS-compliant usage of the ROOT variable. A recent thread on gentoo-dev proposed a change to the devmanual's description of the ROOT variable: https://archives.gentoo.org/gentoo-dev/message/8901669dd375ca0fdb610efef0ddfe6f The proposed change would bring the devmanual's language in line with the PMS. That discussion reveals that the use of ROOT outside of pkg_* is illegal, yet current versions of repoman/portage allow it. This commit adds a test ebuild that violates the PMS (with respect to ROOT) in several ways. ebuild-test/root-var-usage/metadata.xml| 24 ++ ebuild-test/root-var-usage/root-var-usage-0.ebuild | 90 ++ 2 files changed, 114 insertions(+) diff --git a/ebuild-test/root-var-usage/metadata.xml b/ebuild-test/root-var-usage/metadata.xml new file mode 100644 index 000..f8ba4d0 --- /dev/null +++ b/ebuild-test/root-var-usage/metadata.xml @@ -0,0 +1,24 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +Test that the $ROOT variable is used according to the Package +Manager Specification (PMS). + +All currently-approved versions of the PMS state that the $ROOT +variable is legal only in the pkg_* phases. One common misuse is +to use $ROOT instead of $EPREFIX as "something more general than a +front-slash" in the src_* functions. We want to detect these +mistakes, and eventually eliminate all uses of $ROOT outside of +the PMS-defined pkg_* phases. + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + + diff --git a/ebuild-test/root-var-usage/root-var-usage-0.ebuild b/ebuild-test/root-var-usage/root-var-usage-0.ebuild new file mode 100644 index 000..a46339e --- /dev/null +++ b/ebuild-test/root-var-usage/root-var-usage-0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Ensure ROOT variable usage complies with the PMS" +HOMEPAGE="https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-11800011; +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +# All uses of $ROOT within the pkg_* "Ebuild-defined functions" should +# be allowed. The list comes from the so-named chapter of the PMS. + +pkg_pretend() { + local foo=$ROOT +} + +pkg_setup() { + local foo="${ROOT}/foo" +} + +pkg_preinst() { + local foo="$ROOT" +} + +pkg_postinst() { + local foo="bar/${ROOT}" +} + +pkg_prerm() { + local foo="bar/${ROOT}/baz" +} + +pkg_postrm() { + local foo=bar/$ROOT +} + +pkg_config() { + local foo="$ROOT" +} + +pkg_info() { +local foo=$ROOT +} + +pkg_nofetch() { + local foo=`echo $ROOT` +} + +# All uses below here are errors. The following src_* functions are +# defined in the PMS. +src_unpack() { + local foo=$ROOT +} + +src_prepare() { + local foo="${ROOT}/foo" +} + +src_configure() { + local foo=`echo $ROOT` +} + +src_compile() { +local foo=$ROOT +} + +src_test() { + local foo=$(echo $ROOT) +} + +src_install() { + local foo="bar/${ROOT}/baz" +} + +pkg_apocrypha(){ + # This function begins with "pkg_", but isn't defined in the PMS. + local foo=bar/$ROOT +} + +washington_irving(){ + # This function is arbitrarily-named and not defined in the PMS. + local foo="${ROOT}/foo" +} + +# And I suppose we should check that it's not used in global scope, too. +DEPEND="sys-libs${ROOT}glibc"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: /
commit: 1a29c79831986ebb12d80359bbf38a019d5c1b08 Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 15:58:33 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 15:58:33 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=1a29c798 skel.ebuild: Add a minimal ebuild as a template skel.ebuild | 12 1 file changed, 12 insertions(+) diff --git a/skel.ebuild b/skel.ebuild new file mode 100644 index 000..fcd75dd --- /dev/null +++ b/skel.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="Minimal ebuild for creating tests" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/RDEPEND-implicit/
commit: 3a0b1c382059f2c8491f6fb4cc70315a8092a6dc Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 16:09:16 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 16:09:16 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=3a0b1c38 ebuild-test/RDEPEND-implicit: new test .../RDEPEND-implicit/RDEPEND-implicit-0.ebuild | 14 ebuild-test/RDEPEND-implicit/metadata.xml | 26 ++ 2 files changed, 40 insertions(+) diff --git a/ebuild-test/RDEPEND-implicit/RDEPEND-implicit-0.ebuild b/ebuild-test/RDEPEND-implicit/RDEPEND-implicit-0.ebuild new file mode 100644 index 000..dddb83f --- /dev/null +++ b/ebuild-test/RDEPEND-implicit/RDEPEND-implicit-0.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3 + +DESCRIPTION="Check for implicit RDRPEND=DEPEND for old EAPIs" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="sys-libs/zlib:0" diff --git a/ebuild-test/RDEPEND-implicit/metadata.xml b/ebuild-test/RDEPEND-implicit/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/RDEPEND-implicit/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/inherit-deprecated/
commit: 852d8c3e5f4fe0af3e77e03bb75e3996aa015748 Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 16:13:29 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 16:13:29 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=852d8c3e ebuild-test/inherit-deprecated: new test .../inherit-deprecated/inherit-deprecated-0.ebuild | 14 ebuild-test/inherit-deprecated/metadata.xml| 26 ++ 2 files changed, 40 insertions(+) diff --git a/ebuild-test/inherit-deprecated/inherit-deprecated-0.ebuild b/ebuild-test/inherit-deprecated/inherit-deprecated-0.ebuild new file mode 100644 index 000..8c32991 --- /dev/null +++ b/ebuild-test/inherit-deprecated/inherit-deprecated-0.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=0 + +inherit base + +DESCRIPTION="Inherit deprecated eclass" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" diff --git a/ebuild-test/inherit-deprecated/metadata.xml b/ebuild-test/inherit-deprecated/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/inherit-deprecated/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/inherit-missing/
commit: 5b71bd076ce4221ff715efc263115ba2c6d36ffc Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 16:19:28 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 16:19:28 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=5b71bd07 ebuild-test/inherit-missing: new test .../inherit-missing/inherit-missing-0.ebuild | 19 ebuild-test/inherit-missing/metadata.xml | 26 ++ 2 files changed, 45 insertions(+) diff --git a/ebuild-test/inherit-missing/inherit-missing-0.ebuild b/ebuild-test/inherit-missing/inherit-missing-0.ebuild new file mode 100644 index 000..10da580 --- /dev/null +++ b/ebuild-test/inherit-missing/inherit-missing-0.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Missing inherits" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_configure() { + # missing eutils + edos2unix foo + # missing flag-o-matic + strip-flags +} diff --git a/ebuild-test/inherit-missing/metadata.xml b/ebuild-test/inherit-missing/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/inherit-missing/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/variable-usedwithhelpers/
commit: ae26ba7756ce0b59712802d65f398d1c113bd49f Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 16:03:53 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 16:03:53 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=ae26ba77 ebuild-test/variable-usedwithhelpers: new test ebuild-test/variable-usedwithhelpers/metadata.xml | 26 ++ .../variable-usedwithhelpers-0.ebuild | 18 +++ 2 files changed, 44 insertions(+) diff --git a/ebuild-test/variable-usedwithhelpers/metadata.xml b/ebuild-test/variable-usedwithhelpers/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/variable-usedwithhelpers/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/variable-usedwithhelpers/variable-usedwithhelpers-0.ebuild b/ebuild-test/variable-usedwithhelpers/variable-usedwithhelpers-0.ebuild new file mode 100644 index 000..ea0bfa7 --- /dev/null +++ b/ebuild-test/variable-usedwithhelpers/variable-usedwithhelpers-0.ebuild @@ -0,0 +1,18 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Pass D/ROOT/EPREFIX to helpers" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_install() { + into "${D}/usr" + insinto "${ED}/usr/lib" + docinto "${EROOT}/usr/share/doc" +}
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/minorsyn/, ebuild-test/minorsyn-whitespace/, ...
commit: ec1a27bf626cb4274f1f2797b4ddeb0017e0112e Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 15:43:59 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 15:43:59 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=ec1a27bf ebuild-test/minorsyn: split this into 4 packages ebuild-test/minorsyn-deprecated/metadata.xml | 26 +++ .../minorsyn-deprecated-0.ebuild | 20 +++ ebuild-test/minorsyn-quoting/metadata.xml | 26 +++ .../minorsyn-quoting/minorsyn-quoting-0.ebuild | 39 ++ ebuild-test/minorsyn-whitespace/metadata.xml | 26 +++ .../minorsyn-whitespace-0.ebuild | 20 +++ ebuild-test/minorsyn/minorsyn-0.ebuild | 17 -- 7 files changed, 157 insertions(+), 17 deletions(-) diff --git a/ebuild-test/minorsyn-deprecated/metadata.xml b/ebuild-test/minorsyn-deprecated/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/minorsyn-deprecated/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/minorsyn-deprecated/minorsyn-deprecated-0.ebuild b/ebuild-test/minorsyn-deprecated/minorsyn-deprecated-0.ebuild new file mode 100644 index 000..ccd0cfb --- /dev/null +++ b/ebuild-test/minorsyn-deprecated/minorsyn-deprecated-0.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Minor syntax errors: deprecated functions" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_configure() { + built_with_use foo + useq foo + hasq foo + : $(bindnow-flags) + preserve_old_lib foo +} diff --git a/ebuild-test/minorsyn-quoting/metadata.xml b/ebuild-test/minorsyn-quoting/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/minorsyn-quoting/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/minorsyn-quoting/minorsyn-quoting-0.ebuild b/ebuild-test/minorsyn-quoting/minorsyn-quoting-0.ebuild new file mode 100644 index 000..3d9f828 --- /dev/null +++ b/ebuild-test/minorsyn-quoting/minorsyn-quoting-0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Minor syntax errors: variable quoting" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +src_unpack() { + # A should never be quoted when passed to unpack + unpack "${A}" + # DISTDIR, WORKDIR, S should always be quoted + cp ${DISTDIR}/foo ${WORKDIR}/${P} + cd ${S} +} + +src_prepare() { + # unquoted FILESDIR + eapply ${FILESDIR}/foo.patch +} + +src_install() { + # unquoted ED + install foo ${ED} +} + +pkg_postinst() { + # Variables do not need to be quoted in bash conditionals or for einfo. + # Variables do need to be quoted when passed to a real command. + if [[ ! -e ${EROOT}/foo ]]; then + touch ${EROOT}/foo + einfo installed foo to ${EROOT} + fi +} diff --git a/ebuild-test/minorsyn-whitespace/metadata.xml b/ebuild-test/minorsyn-whitespace/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/minorsyn-whitespace/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/minorsyn-whitespace/minorsyn-whitespace-0.ebuild b/ebuild-test/minorsyn-whitespace/minorsyn-whitespace-0.ebuild new file mode 100644 index 000..570dc12 --- /dev/null +++ b/ebuild-test/minorsyn-whitespace/minorsyn-whitespace-0.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Minor syntax errors: whitespace" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + + # leading space +: trailing space +# blank line in the middle + + +# blank line at the end + diff --git a/ebuild-test/minorsyn/minorsyn-0.ebuild b/ebuild-test/minorsyn/minorsyn-0.ebuild index 45c2609..b40812a 100644 --- a/ebuild-test/minorsyn/minorsyn-0.ebuild +++ b/ebuild-test/minorsyn/minorsyn-0.ebuild @@ -11,34 +11,17 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" - # leading space
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/nesteddie/
commit: 785d3e6e2d8038ffe3e19e956d654410cb44c58e Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 03:30:40 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 03:37:58 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=785d3e6e ebuild-test/nesteddie: test for die in a subshell ebuild-test/nesteddie/metadata.xml | 26 ++ ebuild-test/nesteddie/nesteddie-0.ebuild | 16 2 files changed, 42 insertions(+) diff --git a/ebuild-test/nesteddie/metadata.xml b/ebuild-test/nesteddie/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/nesteddie/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/nesteddie/nesteddie-0.ebuild b/ebuild-test/nesteddie/nesteddie-0.ebuild new file mode 100644 index 000..7f99725 --- /dev/null +++ b/ebuild-test/nesteddie/nesteddie-0.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Assignment to read-only variables" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +pkg_setup() { + ( die; ) +}
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/badheader/
commit: d08f4511e09920d90486db4ba54b044071452cfe Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 02:53:53 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 03:22:46 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=d08f4511 ebuild-test/badheader: test for bad header in ebuilds ebuild-test/badheader/badheader-0.ebuild | 12 ebuild-test/badheader/metadata.xml | 26 ++ 2 files changed, 38 insertions(+) diff --git a/ebuild-test/badheader/badheader-0.ebuild b/ebuild-test/badheader/badheader-0.ebuild new file mode 100644 index 000..5ab0d07 --- /dev/null +++ b/ebuild-test/badheader/badheader-0.ebuild @@ -0,0 +1,12 @@ +# Copyright 1999-2000 Larry the Cow +# Distributed under the terms of the GNU General Public License v3 +# $Id is for dummies$ + +EAPI=6 + +DESCRIPTION="Invalid header" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" diff --git a/ebuild-test/badheader/metadata.xml b/ebuild-test/badheader/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/badheader/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/patches/
commit: ae51434f1480977c8f339b24ff5514ddf6dd3205 Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 03:40:24 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 03:40:24 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=ae51434f ebuild-test/patches: test that PATCHES is an array ebuild-test/patches/metadata.xml | 26 ++ ebuild-test/patches/patches-0.ebuild | 14 ++ 2 files changed, 40 insertions(+) diff --git a/ebuild-test/patches/metadata.xml b/ebuild-test/patches/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/patches/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/patches/patches-0.ebuild b/ebuild-test/patches/patches-0.ebuild new file mode 100644 index 000..78659cc --- /dev/null +++ b/ebuild-test/patches/patches-0.ebuild @@ -0,0 +1,14 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="Test that PATCHES is an array" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +PATCHES="foo.patch"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/variable-readonly/
commit: c621dca0acccb146926e8950012aa331f2cb0bfe Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 03:17:22 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 03:27:55 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=c621dca0 ebuild-test/variable-readonly: test for variable.readonly ebuild-test/variable-readonly/metadata.xml | 26 ++ .../variable-readonly/variable-readonly-0.ebuild | 16 + 2 files changed, 42 insertions(+) diff --git a/ebuild-test/variable-readonly/metadata.xml b/ebuild-test/variable-readonly/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/variable-readonly/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/variable-readonly/variable-readonly-0.ebuild b/ebuild-test/variable-readonly/variable-readonly-0.ebuild new file mode 100644 index 000..56f72fe --- /dev/null +++ b/ebuild-test/variable-readonly/variable-readonly-0.ebuild @@ -0,0 +1,16 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Assignment to read-only variables" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +P=foo +export P=foo +EPREFIX=foo
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/minorsyn/
commit: c22cdfedd52b4dc16588176b92cff9392ff93b70 Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 03:11:06 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 03:23:21 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=c22cdfed ebuild-test/minorsyn: test for minor syntax errors ebuild-test/minorsyn/metadata.xml | 26 ebuild-test/minorsyn/minorsyn-0.ebuild | 44 ++ 2 files changed, 70 insertions(+) diff --git a/ebuild-test/minorsyn/metadata.xml b/ebuild-test/minorsyn/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/minorsyn/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? + diff --git a/ebuild-test/minorsyn/minorsyn-0.ebuild b/ebuild-test/minorsyn/minorsyn-0.ebuild new file mode 100644 index 000..45c2609 --- /dev/null +++ b/ebuild-test/minorsyn/minorsyn-0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Minor syntax errors" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + + # leading space +: trailing space +: unquoted variable: ${S} + +WANT_AUTOMAKE=latest + +src_unpack() { + # quoted ${A} + unpack "${A}" + epatch +} + +src_compile() { + econf + built_with_use foo + useq foo + hasq foo +} + +src_install() { + cd "${S}" + dodoc COPYING + preserve_old_lib foo + bindnow-flags foo +} + +# blank line in the middle + + +# blank line at the end +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/eapi-definition/
commit: 52cce2bf81f7b45a40cdb3a23908eae1bf449719 Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 03:37:00 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 03:38:02 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=52cce2bf ebuild-test/eapi-definition: test that EAPI is defined according to PMS .../eapi-definition/eapi-definition-0.ebuild | 13 +++ ebuild-test/eapi-definition/metadata.xml | 26 ++ 2 files changed, 39 insertions(+) diff --git a/ebuild-test/eapi-definition/eapi-definition-0.ebuild b/ebuild-test/eapi-definition/eapi-definition-0.ebuild new file mode 100644 index 000..ce29552 --- /dev/null +++ b/ebuild-test/eapi-definition/eapi-definition-0.ebuild @@ -0,0 +1,13 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +: foo +EAPI=6 + +DESCRIPTION="EAPI assignment on first non-comment, non-blank line" +HOMEPAGE="http://example.com/; + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" diff --git a/ebuild-test/eapi-definition/metadata.xml b/ebuild-test/eapi-definition/metadata.xml new file mode 100644 index 000..da7c4a8 --- /dev/null +++ b/ebuild-test/eapi-definition/metadata.xml @@ -0,0 +1,26 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + + example...@gentoo.org + Primary maintainer + + + exampleproj...@gentoo.org + Gentoo Example Project + +Test for ??? +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: ebuild-test/invalid/, ebuild-test/invalidname/
commit: b9d80500b213206f614bb41309598a12fdf4aeb3 Author: Mike Gilbert gentoo org> AuthorDate: Wed May 11 03:13:15 2016 + Commit: Mike Gilbert gentoo org> CommitDate: Wed May 11 03:23:50 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=b9d80500 ebuild-test/invalidname: rename from 'invalid' ebuild-test/{invalid/invalid.ebuild => invalidname/invalidname.ebuild} | 0 ebuild-test/{invalid => invalidname}/metadata.xml | 0 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/ebuild-test/invalid/invalid.ebuild b/ebuild-test/invalidname/invalidname.ebuild similarity index 100% rename from ebuild-test/invalid/invalid.ebuild rename to ebuild-test/invalidname/invalidname.ebuild diff --git a/ebuild-test/invalid/metadata.xml b/ebuild-test/invalidname/metadata.xml similarity index 100% rename from ebuild-test/invalid/metadata.xml rename to ebuild-test/invalidname/metadata.xml
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/valid/
commit: 1e7a7488efa19a02dd6fec35e7f79f5b2cbf8c89 Author: Göktürk Yüksek binghamton edu> AuthorDate: Sat May 7 21:22:38 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Sun May 8 02:06:37 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=1e7a7488 xml-text/valid: add a second description to downstream maintainer Increase coverage and prevent future regressions by adding a second description for a downstream maintainer element. See also: https://gitweb.gentoo.org/data/xml-schema.git/commit/?id=6070512ca Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/valid/metadata.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/xml-test/valid/metadata.xml b/xml-test/valid/metadata.xml index c33f7ac..c9d92a3 100644 --- a/xml-test/valid/metadata.xml +++ b/xml-test/valid/metadata.xml @@ -14,6 +14,7 @@ upstr...@example.com Upstream Developer Upstream developer, wishing to be CC-ed on bugs +Ana geliştirici, hata raporlarında CC'ye ekle First paragraph of extensive description.
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/singularity/
commit: ba2bac69dd3dc586a4972ba82617ec632ec0e6ca Author: Göktürk Yüksek binghamton edu> AuthorDate: Sat May 7 21:22:39 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Sun May 8 02:06:37 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=ba2bac69 xml-test/singularity: tests for at-most-one element violations Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/singularity/metadata.xml | 43 + xml-test/singularity/singularity-0.1.ebuild | 11 2 files changed, 54 insertions(+) diff --git a/xml-test/singularity/metadata.xml b/xml-test/singularity/metadata.xml new file mode 100644 index 000..640acf6 --- /dev/null +++ b/xml-test/singularity/metadata.xml @@ -0,0 +1,43 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +Tests for elements with at most one occurrence. + +Singularity doesn't check for uniqueness. We are only interested +in elements that can't appear more than once. + +The tests are conservative: if we check email element +singularity in downstream maintainer, we do not check it again +in upstream maintainer. + + +gen-b...@gentoo.org + +at-most-one-violat...@gentoo.org + + +Match SONAME of libsingularity.so + +at-most-one violation + + + + Gen B0rk + + at-most-one violation + +https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/ + +https://gentoo.org/at-most-one-violation.html +http://www.example.com/issues.html + +https://gentoo.org/at-most-one-violation + + + + + Gen B0rk + + + diff --git a/xml-test/singularity/singularity-0.1.ebuild b/xml-test/singularity/singularity-0.1.ebuild new file mode 100644 index 000..6683aad --- /dev/null +++ b/xml-test/singularity/singularity-0.1.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Tests for element singularity" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/uniqueness/
commit: 230fe43ff6691ed3c092b6284ae2a8609cef0860 Author: Göktürk Yüksek binghamton edu> AuthorDate: Sat May 7 21:22:40 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Sun May 8 02:06:37 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=230fe43f xml-test/uniqueness: tests for unique (element,attribute,value) combinations Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/uniqueness/metadata.xml | 33 +++ xml-test/uniqueness/uniqueness-0.1.ebuild | 12 +++ 2 files changed, 45 insertions(+) diff --git a/xml-test/uniqueness/metadata.xml b/xml-test/uniqueness/metadata.xml new file mode 100644 index 000..84b3a1b --- /dev/null +++ b/xml-test/uniqueness/metadata.xml @@ -0,0 +1,33 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +Tests for the uniqueness of elements. + +Uniqueness focuses on element, attribute, value combinations +which must not repeat. + +The tests are conservative: i.e. if we check the +(longdescription, lang, restrict) combination, we do not check +(slots,lang, restrict). + + + uniqueness violation + +gen-b...@gentoo.org + + + +gen-b...@gentoo.org + + +Match the SONAME of libuniqueness.so + +uniqueness violation + + +Enable feature foo + +uniqueness violation + + diff --git a/xml-test/uniqueness/uniqueness-0.1.ebuild b/xml-test/uniqueness/uniqueness-0.1.ebuild new file mode 100644 index 000..03c3fa7 --- /dev/null +++ b/xml-test/uniqueness/uniqueness-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="Tests for (element, attribute, value) uniqueness" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64" +IUSE="foo"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/invalid-attributes/
commit: 920a1fab671cfb62939902ddca2bc793d84fb973 Author: Göktürk Yüksek binghamton edu> AuthorDate: Thu May 5 23:24:46 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Fri May 6 06:05:19 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=920a1fab xml-test/invalid-attributes: test for invalid and disallowed attributes Signed-off-by: Göktürk Yüksek binghamton.edu> .../invalid-attributes-0.1.ebuild | 11 +++ xml-test/invalid-attributes/metadata.xml | 38 ++ 2 files changed, 49 insertions(+) diff --git a/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild b/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild new file mode 100644 index 000..3076b2a --- /dev/null +++ b/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Metadata example with invalid attribute values and locations" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64" diff --git a/xml-test/invalid-attributes/metadata.xml b/xml-test/invalid-attributes/metadata.xml new file mode 100644 index 000..66902dc --- /dev/null +++ b/xml-test/invalid-attributes/metadata.xml @@ -0,0 +1,38 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +Tests for invalid attribute values and attributes appearing +in elements that they're not supposed to. + +There's a multitude of invalid attribute values and combinations. +We only consider a few sane cases that are likely to happen: +- type attribute in upstream maintainer (allowed only in downstream) +- status attribute in downstream maintainer (allowed only in upstream) +- invalid values for enumerated attributes: type, status, lang + +We also introduce multiple violations in a single element to test +repoman's ability to display errors. + + + +la...@gentoo.org + +Moo + + + + + Gen B0rk + + +gentoo/gen-b0rk + +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-elements/
commit: 21391fe9f0c38c21661580d5005979ad96562004 Author: Göktürk Yüksek binghamton edu> AuthorDate: Thu May 5 23:24:47 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Fri May 6 06:05:36 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=21391fe9 xml-test/missing-elements: test for missing mandatory elements Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/missing-elements/metadata.xml| 17 + xml-test/missing-elements/missing-elements-0.1.ebuild | 11 +++ 2 files changed, 28 insertions(+) diff --git a/xml-test/missing-elements/metadata.xml b/xml-test/missing-elements/metadata.xml new file mode 100644 index 000..b46a340 --- /dev/null +++ b/xml-test/missing-elements/metadata.xml @@ -0,0 +1,17 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +Tests for mandatory elements + + + +Gen B0rk + + + + + gen-b...@gentoo.org + + + diff --git a/xml-test/missing-elements/missing-elements-0.1.ebuild b/xml-test/missing-elements/missing-elements-0.1.ebuild new file mode 100644 index 000..93648c3 --- /dev/null +++ b/xml-test/missing-elements/missing-elements-0.1.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Missing various mandatory elements in the metadata" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-elements/
commit: edb3e60f24f6b1e531c3a28226317da6de5dbfd5 Author: Göktürk Yüksek binghamton edu> AuthorDate: Thu May 5 22:39:46 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Thu May 5 22:57:05 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=edb3e60f xml-test/missing-elements: test for missing mandatory elements Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/missing-elements/metadata.xml| 17 + xml-test/missing-elements/missing-elements-0.1.ebuild | 11 +++ 2 files changed, 28 insertions(+) diff --git a/xml-test/missing-elements/metadata.xml b/xml-test/missing-elements/metadata.xml new file mode 100644 index 000..b46a340 --- /dev/null +++ b/xml-test/missing-elements/metadata.xml @@ -0,0 +1,17 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +Tests for mandatory elements + + + +Gen B0rk + + + + + gen-b...@gentoo.org + + + diff --git a/xml-test/missing-elements/missing-elements-0.1.ebuild b/xml-test/missing-elements/missing-elements-0.1.ebuild new file mode 100644 index 000..93648c3 --- /dev/null +++ b/xml-test/missing-elements/missing-elements-0.1.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Missing various mandatory elements in the metadata" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: /
commit: 503a52c0f1518d6abcddba8907a68647829f470e Author: Göktürk Yüksek binghamton edu> AuthorDate: Wed May 4 10:46:19 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Wed May 4 10:46:19 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=503a52c0 Merge remote-tracking branch 'origin/master' into travis xml-test/missing-attributes/metadata.xml | 23 .../missing-attributes-0.1.ebuild | 8 +-- xml-test/missing-doctype/metadata.xml | 5 ++ .../missing-doctype/missing-doctype-0.1.ebuild | 10 +--- .../missing/missing-0.1.ebuild | 8 +-- xml-test/valid/metadata.xml| 64 ++ .../valid/valid-0.1.ebuild | 13 ++--- 7 files changed, 102 insertions(+), 29 deletions(-)
[gentoo-commits] repo/proj/gen-b0rk:master commit in: /
commit: fc5161ef270d82da32dbd176622dd7ae0b42eeb0 Author: Göktürk Yüksek binghamton edu> AuthorDate: Wed May 4 09:50:49 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Wed May 4 10:37:03 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=fc5161ef Add .travis.yml Signed-off-by: Göktürk Yüksek binghamton.edu> .travis.yml | 34 ++ 1 file changed, 34 insertions(+) diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000..22f2878 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +# +# Run repoman via travis with the portage HEAD +# See https://github.com/gktrk/repoman-travis +# +language: python +python: +- 2.7 +before_script: +- sudo apt-get update -qq +- sudo apt-get install -y python3-lxml python-lxml libxml2-dev libxslt-dev python-dev +- pip install lxml +- mkdir travis-overlay +- mv !(travis-overlay) travis-overlay/ +- mv .git travis-overlay/ +- wget "https://raw.githubusercontent.com/gktrk/repoman-travis/master/.travis.yml; -O .travis.yml.upstream +- wget "https://raw.githubusercontent.com/gktrk/repoman-travis/master/spinner.sh; +- wget "https://github.com/gentoo/portage/archive/repoman.tar.gz; +- wget "https://github.com/gentoo-mirror/gentoo/archive/master.tar.gz; -O portage-tree.tar.gz +- sudo chmod a+rwX /etc/passwd /etc/group /etc /usr spinner.sh +- chmod a+rwx spinner.sh +- echo "portage:x:250:250:portage:/var/tmp/portage:/bin/false" >> /etc/passwd +- echo "portage::250:portage,travis" >> /etc/group +- mkdir -p /etc/portage /usr/portage/distfiles +- wget "https://raw.githubusercontent.com/gktrk/gentoo-xml-schema/master/metadata.xsd; -O /usr/portage/distfiles/metadata.xsd +- tar xzf repoman.tar.gz +- tar xzf portage-tree.tar.gz -C /usr/portage --strip-components=1 +- cp portage-repoman/cnf/repos.conf /etc/portage/ +- ln -s /usr/portage/profiles/base/ /etc/portage/make.profile +- SIZE=$(stat -c %s .travis.yml.upstream) +- if ! cmp -n $SIZE -s .travis.yml .travis.yml.upstream; then echo -e "\e[31m !!! .travis.yml outdated! Update available https://github.com/gktrk/repoman-travis \e[0m" > /tmp/update ; fi +- cd travis-overlay +script: +- ./../spinner.sh "python2 ../portage-repoman/bin/repoman full -d" +# You can append own scripts after this line
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/invalid-attributes/
commit: 6c5a89ce6d4264334e7982668ca173b24c40c375 Author: Göktürk Yüksek binghamton edu> AuthorDate: Thu May 5 02:55:21 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Thu May 5 22:30:03 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=6c5a89ce xml-test/invalid-attributes: test for invalid and disallowed attributes Signed-off-by: Göktürk Yüksek binghamton.edu> .../invalid-attributes-0.1.ebuild | 11 +++ xml-test/invalid-attributes/metadata.xml | 38 ++ 2 files changed, 49 insertions(+) diff --git a/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild b/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild new file mode 100644 index 000..3076b2a --- /dev/null +++ b/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Metadata example with invalid attribute values and locations" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64" diff --git a/xml-test/invalid-attributes/metadata.xml b/xml-test/invalid-attributes/metadata.xml new file mode 100644 index 000..66902dc --- /dev/null +++ b/xml-test/invalid-attributes/metadata.xml @@ -0,0 +1,38 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + +Tests for invalid attribute values and attributes appearing +in elements that they're not supposed to. + +There's a multitude of invalid attribute values and combinations. +We only consider a few sane cases that are likely to happen: +- type attribute in upstream maintainer (allowed only in downstream) +- status attribute in downstream maintainer (allowed only in upstream) +- invalid values for enumerated attributes: type, status, lang + +We also introduce multiple violations in a single element to test +repoman's ability to display errors. + + + +la...@gentoo.org + +Moo + + + + + Gen B0rk + + +gentoo/gen-b0rk + +
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/valid/
commit: b90438cbe3a2cb3a7d886983bacafb0a75e9cd91 Author: Göktürk Yüksek binghamton edu> AuthorDate: Wed May 4 06:43:05 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Wed May 4 06:44:02 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=b90438cb xml-test/valid: valid metadata.xml test based on the example in GLEP 68 Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/valid/metadata.xml | 64 + xml-test/valid/valid-0.1.ebuild | 12 2 files changed, 76 insertions(+) diff --git a/xml-test/valid/metadata.xml b/xml-test/valid/metadata.xml new file mode 100644 index 000..c33f7ac --- /dev/null +++ b/xml-test/valid/metadata.xml @@ -0,0 +1,64 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + +develo...@example.com +Example Developer + + +proj...@example.com +Example Project + + +upstr...@example.com +Upstream Developer +Upstream developer, wishing to be CC-ed on bugs + + +First paragraph of extensive description. + +Second paragraph. + + +Erster Absatz mit detaillierter Beschreibung. + +Zweiter Absatz. + + +Compatibility slot providing libvalid.so.11 only. + + Match SONAME of libvalid.so. + + + +Kompatibilitäts-Slot, installiert ausschließlich libvalid.so.11. + + Subslot ist stets identisch mit dem SONAME von libvalid.so. + + + +Enables foo feature +Enables bar feature (requires xml-test/missing) +Enables bar feature + + +Konfiguriert das Paket mit Unterstütztung für foo +Konfiguriert das Paket mit Unterstütztung für bar (benötigt xml-test/missing) +Konfiguriert das Paket mit Unterstütztung für bar + + + + upstr...@example.com + Upstream Developer + + + John Smith + +http://www.example.com/releases.html +http://www.example.com/doc.html +http://www.example.com/doc.de.html +http://www.example.com/issues.html +gentoo/gen-b0rk + + diff --git a/xml-test/valid/valid-0.1.ebuild b/xml-test/valid/valid-0.1.ebuild new file mode 100644 index 000..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"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-doctype/
commit: 0007baa879519c71cb600f4f1084a868c4ebe6cd Author: Brian Dolbec gentoo org> AuthorDate: Wed May 4 06:38:48 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Wed May 4 06:38:48 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=0007baa8 xml-test/missing-doctype: Add missed HOMEPAGE xml-test/missing-doctype/missing-doctype-0.1.ebuild | 1 + 1 file changed, 1 insertion(+) diff --git a/xml-test/missing-doctype/missing-doctype-0.1.ebuild b/xml-test/missing-doctype/missing-doctype-0.1.ebuild index eea16bc..f11a26c 100644 --- a/xml-test/missing-doctype/missing-doctype-0.1.ebuild +++ b/xml-test/missing-doctype/missing-doctype-0.1.ebuild @@ -5,6 +5,7 @@ EAPI=6 DESCRIPTION="Metadata with missing DOCTYPE" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; LICENSE="HPND" SLOT="0" KEYWORDS="~amd64"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-doctype/
commit: 4663638ac491c70cd7055f27856b9f97281b6845 Author: Göktürk Yüksek binghamton edu> AuthorDate: Wed May 4 05:57:19 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Wed May 4 06:00:11 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=4663638a xml-text/missing-doctype: test for missing DOCTYPE in metadata.xml Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/missing-doctype/metadata.xml | 5 + xml-test/missing-doctype/missing-doctype-0.1.ebuild | 10 ++ 2 files changed, 15 insertions(+) diff --git a/xml-test/missing-doctype/metadata.xml b/xml-test/missing-doctype/metadata.xml new file mode 100644 index 000..f70816e --- /dev/null +++ b/xml-test/missing-doctype/metadata.xml @@ -0,0 +1,5 @@ + + + +Test for missing DOCTYPE + diff --git a/xml-test/missing-doctype/missing-doctype-0.1.ebuild b/xml-test/missing-doctype/missing-doctype-0.1.ebuild new file mode 100644 index 000..eea16bc --- /dev/null +++ b/xml-test/missing-doctype/missing-doctype-0.1.ebuild @@ -0,0 +1,10 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Metadata with missing DOCTYPE" +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing/
commit: ccb678bc1cb8896182c0583724c497211284179b Author: Göktürk Yüksek binghamton edu> AuthorDate: Mon May 2 01:08:46 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Mon May 2 17:33:31 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=ccb678bc xml-test/missing: test for a package with missing metadata.xml Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/missing/missing-0.1.ebuild | 13 + 1 file changed, 13 insertions(+) diff --git a/xml-test/missing/missing-0.1.ebuild b/xml-test/missing/missing-0.1.ebuild new file mode 100644 index 000..b08156e --- /dev/null +++ b/xml-test/missing/missing-0.1.ebuild @@ -0,0 +1,13 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Missing metadata.xml file" +HOMEPAGE="https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/; +SRC_URI="" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64"
[gentoo-commits] repo/proj/gen-b0rk:master commit in: xml-test/missing-attributes/
commit: da26b7539b05d8d956dc9553afcdac2ebc1c47c5 Author: Göktürk Yüksek binghamton edu> AuthorDate: Mon May 2 01:08:47 2016 + Commit: Brian Dolbec gentoo org> CommitDate: Mon May 2 17:33:44 2016 + URL:https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/commit/?id=da26b753 xml-test/missing-attributes: missing mandatory attributes for various tags Check for: - type attribute in - name attribute in - name attribute in - type attribute for Signed-off-by: Göktürk Yüksek binghamton.edu> xml-test/missing-attributes/metadata.xml | 23 ++ .../missing-attributes-0.1.ebuild | 13 2 files changed, 36 insertions(+) diff --git a/xml-test/missing-attributes/metadata.xml b/xml-test/missing-attributes/metadata.xml new file mode 100644 index 000..cf51afd --- /dev/null +++ b/xml-test/missing-attributes/metadata.xml @@ -0,0 +1,23 @@ + +http://www.gentoo.org/dtd/metadata.dtd;> + + + +foo...@gentoo.org + + + +Bar slot + + + +Baz flag + + + +gentoo/gen-b0rk + + +Tests for mandatory attributes for various tags + + diff --git a/xml-test/missing-attributes/missing-attributes-0.1.ebuild b/xml-test/missing-attributes/missing-attributes-0.1.ebuild new file mode 100644 index 000..5733009 --- /dev/null +++ b/xml-test/missing-attributes/missing-attributes-0.1.ebuild @@ -0,0 +1,13 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Missing various mandatory attributes in the metadata" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; +SRC_URI="" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64"