aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/depend_rdepend_TEST_setup.sh
blob: 714a4b05a515b5a3d90d0efb9b8a07328e52d022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir depend_rdepend_TEST_dir || exit 1
cd depend_rdepend_TEST_dir || exit 1

mkdir -p root/etc

mkdir -p vdb
touch vdb/THISISTHEVDB

mkdir -p build
ln -s build symlinked_build

mkdir -p distdir

mkdir -p repo/{profiles/profile,metadata,eclass} || exit 1
cd repo || exit 1
echo "test-repo" >> profiles/repo_name || exit 1
echo "cat" >> profiles/categories || exit 1
cat <<END > profiles/profile/virtuals
END
cat <<END > profiles/profile/make.defaults
ARCH="test"
USERLAND="GNU"
KERNEL="linux"
LIBC="glibc"
CHOST="i286-badger-linux-gnu"
END

for e in 0 1 2 3 4 ; do

    mkdir -p "cat/eapi${e}donly"
    cat <<END > cat/eapi${e}donly/eapi${e}donly-1.ebuild || exit 1
EAPI="${e}"
DESCRIPTION="The Description"
HOMEPAGE="http://example.com/"
SRC_URI=""
SLOT="0"
IUSE=""
LICENSE="GPL-2"
KEYWORDS="test"
DEPEND="the/depend"
END

    mkdir -p "cat/eapi${e}ronly"
    cat <<END > cat/eapi${e}ronly/eapi${e}ronly-1.ebuild || exit 1
EAPI="${e}"
DESCRIPTION="The Description"
HOMEPAGE="http://example.com/"
SRC_URI=""
SLOT="0"
IUSE=""
LICENSE="GPL-2"
KEYWORDS="test"
RDEPEND="the/rdepend"
END

    mkdir -p "cat/eapi${e}both"
    cat <<END > cat/eapi${e}both/eapi${e}both-1.ebuild || exit 1
EAPI="${e}"
DESCRIPTION="The Description"
HOMEPAGE="http://example.com/"
SRC_URI=""
SLOT="0"
IUSE=""
LICENSE="GPL-2"
KEYWORDS="test"
DEPEND="the/depend"
RDEPEND="the/rdepend"
END

done

cd ..