aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/vdb_repository_TEST_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/e/vdb_repository_TEST_setup.sh')
-rwxr-xr-xpaludis/repositories/e/vdb_repository_TEST_setup.sh356
1 files changed, 0 insertions, 356 deletions
diff --git a/paludis/repositories/e/vdb_repository_TEST_setup.sh b/paludis/repositories/e/vdb_repository_TEST_setup.sh
index 75eb7585b..e5eabbe39 100755
--- a/paludis/repositories/e/vdb_repository_TEST_setup.sh
+++ b/paludis/repositories/e/vdb_repository_TEST_setup.sh
@@ -82,362 +82,6 @@ echo "exheres-0" >repo2/category/package-1/EAPI
echo "0" >repo2/category/package-1/SLOT
echo "cat/pkg1 build: cat/pkg2 build+run: cat/pkg3 suggestion: cat/pkg4 post: cat/pkg5" >repo2/category/package-1/DEPENDENCIES
-mkdir -p repo3
-
-mkdir -p srcrepo/{profiles/profile,cat/{target,vars}{,-exheres},eclass}
-cat <<END > srcrepo/profiles/profile/make.defaults
-ARCH=test
-USERLAND="GNU"
-KERNEL="linux"
-CHOST="i286-badger-linux-gnu"
-END
-echo "srcrepo" > srcrepo/profiles/repo_name || exit 1
-
-cat <<'END' > srcrepo/cat/target/target-0.ebuild
-EAPI="0"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-SRC_URI=""
-SLOT="0"
-IUSE=""
-LICENSE="GPL-2"
-KEYWORDS="test"
-DEPEND="foo/bar"
-
-src_install() {
- echo MONKEY > ${D}/monkey
-}
-
-pkg_info() {
- echo "This is pkg_info"
-}
-
-pkg_config() {
- echo "This is pkg_config"
-}
-END
-
-cat <<'END' > srcrepo/cat/target/target-1.ebuild
-EAPI="1"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-SRC_URI=""
-SLOT="0"
-IUSE=""
-LICENSE="GPL-2"
-KEYWORDS="test"
-DEPEND="foo/bar"
-
-src_install() {
- echo MONKEY > ${D}/monkey
-}
-
-pkg_info() {
- echo "This is pkg_info"
-}
-
-pkg_config() {
- echo "This is pkg_config"
-}
-END
-
-cat <<'END' > srcrepo/cat/target/target-2.ebuild
-EAPI="2"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-SRC_URI=""
-SLOT="0"
-IUSE=""
-LICENSE="GPL-2"
-KEYWORDS="test"
-DEPEND="foo/bar"
-
-src_install() {
- echo MONKEY > ${D}/monkey
-}
-
-pkg_info() {
- echo "This is pkg_info"
-}
-
-pkg_config() {
- echo "This is pkg_config"
-}
-END
-
-cat <<'END' > srcrepo/cat/target/target-3.ebuild
-EAPI="3"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-SRC_URI=""
-SLOT="0"
-IUSE=""
-LICENSE="GPL-2"
-KEYWORDS="test"
-DEPEND="foo/bar"
-S="${WORKDIR}"
-
-src_install() {
- echo MONKEY > ${D}/monkey
-}
-
-pkg_info() {
- echo "This is pkg_info"
-}
-
-pkg_config() {
- echo "This is pkg_config"
-}
-END
-
-cat <<'END' > srcrepo/cat/target-exheres/target-exheres-0.ebuild
-EAPI="exheres-0"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-DOWNLOADS=""
-SLOT="0"
-MYOPTIONS=""
-LICENCES="GPL-2"
-PLATFORMS="test"
-WORK="${WORKBASE}"
-DEPENDENCIES=""
-
-src_install() {
- echo MONKEY > ${IMAGE}/monkey
-}
-
-pkg_info() {
- echo "This is pkg_info"
-}
-
-pkg_config() {
- echo "This is pkg_config"
-}
-END
-
-cat <<'END' > srcrepo/cat/vars/vars-0.ebuild
-EAPI="0"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-SRC_URI=""
-SLOT="0"
-IUSE=""
-LICENSE="GPL-2"
-KEYWORDS="test"
-DEPEND="foo/bar"
-
-pkg_setup() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-src_compile() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_preinst() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_prerm() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_info() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_config() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-END
-
-cat <<'END' > srcrepo/cat/vars/vars-1.ebuild
-EAPI="1"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-SRC_URI=""
-SLOT="0"
-IUSE=""
-LICENSE="GPL-2"
-KEYWORDS="test"
-DEPEND="foo/bar"
-
-pkg_setup() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-src_compile() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_preinst() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_prerm() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_info() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-
-pkg_config() {
- einfo "${EBUILD_PHASE}: T=${T}"
- [[ -d "${T}" ]] || die "T not a dir"
-}
-END
-
-cat <<'END' > srcrepo/cat/vars-exheres/vars-exheres-0.ebuild
-EAPI="exheres-0"
-DESCRIPTION="The Description"
-HOMEPAGE="http://example.com/"
-DOWNLOADS=""
-SLOT="0"
-MYOPTIONS=""
-LICENCES="GPL-2"
-PLATFORMS="test"
-DEPENDENCIES="foo/bar"
-
-pkg_setup() {
- einfo "${EBUILD_PHASE}: TEMP=${TEMP}"
- [[ -d "${TEMP}" ]] || die "TEMP not a dir"
-}
-
-src_compile() {
- einfo "${EBUILD_PHASE}: TEMP=${TEMP}"
- [[ -d "${TEMP}" ]] || die "TEMP not a dir"
-}
-
-pkg_preinst() {
- einfo "${EBUILD_PHASE}: TEMP=${TEMP}"
- [[ -d "${TEMP}" ]] || die "TEMP not a dir"
-}
-
-pkg_prerm() {
- einfo "${EBUILD_PHASE}: TEMP=${TEMP}"
- [[ -d "${TEMP}" ]] || die "TEMP not a dir"
-}
-
-pkg_info() {
- einfo "${EBUILD_PHASE}: TEMP=${TEMP}"
- [[ -d "${TEMP}" ]] || die "TEMP not a dir"
-}
-
-pkg_config() {
- einfo "${EBUILD_PHASE}: TEMP=${TEMP}"
- [[ -d "${TEMP}" ]] || die "TEMP not a dir"
-}
-END
-
-mkdir -p namesincrtest/.cache/names/installed namesincrtest_src/{eclass,profiles/profile,cat1/{pkg1,pkg2},{cat2,cat3}/pkg1} || exit 1
-echo paludis-2 >namesincrtest/.cache/names/installed/_VERSION_
-echo installed >>namesincrtest/.cache/names/installed/_VERSION_
-
-cat <<END > namesincrtest_src/profiles/profile/make.defaults
-ARCH=test
-USERLAND="GNU"
-KERNEL="linux"
-CHOST="i286-badger-linux-gnu"
-END
-echo namesincrtest_src >namesincrtest_src/profiles/repo_name
-echo cat1 >namesincrtest_src/profiles/categories
-echo cat2 >>namesincrtest_src/profiles/categories
-echo cat3 >>namesincrtest_src/profiles/categories
-
-cat <<END >namesincrtest_src/cat1/pkg1/pkg1-1.ebuild
-KEYWORDS="test"
-SLOT="\${PV:0:1}"
-END
-cp namesincrtest_src/cat1/pkg1/pkg1-{1,1.1}.ebuild
-cp namesincrtest_src/cat1/pkg1/pkg1-{1,2}.ebuild
-cp namesincrtest_src/cat1/{pkg1/pkg1,pkg2/pkg2}-1.ebuild
-cp namesincrtest_src/{cat1,cat2}/pkg1/pkg1-1.ebuild
-
-cat <<END >namesincrtest_src/cat3/pkg1/pkg1-1.ebuild
-EAPI=paludis-1
-KEYWORDS="test"
-SLOT="0"
-END
-cp namesincrtest_src/cat3/pkg1/pkg1-{1,2}.ebuild
-
-mkdir -p providestest/{.cache,cat1/{pkg1,pkg2,pkg3}-{1,2}} || exit 1
-for f in providestest/cat1/{pkg1,pkg2,pkg3}-{1,2}/EAPI; do
- echo 0 >${f}
-done
-for f in providestest/cat1/{pkg1,pkg2,pkg3}-1/SLOT; do
- echo 1 >${f}
-done
-for f in providestest/cat1/{pkg1,pkg2,pkg3}-2/SLOT; do
- echo 2 >${f}
-done
-for f in providestest/cat1/{pkg1,pkg2,pkg3}-{1,2}/USE; do
- echo enabled >${f}
-done
-for f in providestest/cat1/{pkg1,pkg2,pkg3}-{1,2}/IUSE; do
- echo disabled enabled >${f}
-done
-
-echo ' virtual/foo' >providestest/cat1/pkg1-1/PROVIDE
-echo 'enabled? ( virtual/foo )' >providestest/cat1/pkg1-2/PROVIDE
-echo 'enabled? ( virtual/foo ) virtual/bar' >providestest/cat1/pkg2-1/PROVIDE
-echo 'disabled? ( virtual/foo ) virtual/bar' >providestest/cat1/pkg2-2/PROVIDE
-echo 'disabled? ( virtual/foo )' >providestest/cat1/pkg3-1/PROVIDE
-echo '' >providestest/cat1/pkg3-2/PROVIDE
-
-mkdir -p providesincrtest/.cache providesincrtest_src{1,2}/{eclass,profiles/profile,{cat1,cat2}/{pkg1,pkg2}} || exit 1
-echo paludis-3 >providesincrtest/.cache/provides
-echo installed >>providesincrtest/.cache/provides
-
-cat <<END > providesincrtest_src1/profiles/profile/make.defaults
-ARCH=test
-USERLAND="GNU"
-KERNEL="linux"
-CHOST="i286-badger-linux-gnu"
-END
-echo providesincrtest_src1 >providesincrtest_src1/profiles/repo_name
-echo providesincrtest_src2 >providesincrtest_src2/profiles/repo_name
-echo cat1 >providesincrtest_src1/profiles/categories
-echo cat2 >>providesincrtest_src1/profiles/categories
-echo cat1 >providesincrtest_src2/profiles/categories
-
-cat <<END >providesincrtest_src1/cat1/pkg1/pkg1-1.ebuild
-KEYWORDS="test"
-SLOT="\${PV:0:1}"
-PROVIDE="enabled? ( virtual/foo ) disabled? ( virtual/bar )"
-IUSE="enabled disabled"
-END
-cp providesincrtest_src1/cat1/pkg1/pkg1-{1,1.1}.ebuild
-cp providesincrtest_src1/cat1/pkg1/pkg1-{1,2}.ebuild
-cp providesincrtest_src1/cat1/{pkg1/pkg1,pkg2/pkg2}-1.ebuild
-cp providesincrtest_src1/cat1/pkg1/pkg1-1.1.ebuild providesincrtest_src2/cat1/pkg1/pkg1-1.1-r0.ebuild
-
-cat <<END >providesincrtest_src2/cat1/pkg1/pkg1-1.ebuild
-KEYWORDS="test"
-SLOT="\${PV:0:1}"
-PROVIDE="enabled? ( virtual/bar ) disabled? ( virtual/foo )"
-IUSE="enabled disabled"
-END
-
-cat <<END >providesincrtest_src1/cat2/pkg1/pkg1-1.ebuild
-EAPI=paludis-1
-KEYWORDS="test"
-SLOT="0"
-PROVIDE="virtual/moo"
-END
-cp providesincrtest_src1/cat2/pkg1/pkg1-{1,2}.ebuild
-
mkdir -p reinstalltest reinstalltest_src{1,2}/{eclass,profiles/profile,cat/pkg} || exit 1
cat <<END > reinstalltest_src1/profiles/profile/make.defaults