aboutsummaryrefslogtreecommitdiff
blob: 98007ad10801cb01f1813af25f93285f7e8d8c77 (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
#!/bin/bash

[ -z $1 ] && exit 1

source /usr/lib/portage/bin/isolated-functions.sh 2>/dev/null

inherit() {
	for include in $*; do
		INHERIT="${INHERIT:+${INHERIT} }${include}"
		case $include in
			# That'll fix some variables when sourcing the ebuild itself :)
			(versionator|eutils)
				source /usr/portage/eclass/${include}.eclass
				continue
			;;
		esac
	done
}

source $1 2>/dev/null

[ -z "${MY_P}" ] && MY_P="####"
[ -z "${MY_PV}" ] && MY_PV="####"
[ -z "${MY_PN}" ] && MY_PN="####"
[ -z "${SLOT}" ] && SLOT="0"
[ -z "${INHERIT}" ] && INHERIT=""

echo $MY_P
echo $MY_PV
echo $MY_PN
echo $SLOT
echo $INHERIT

#echo $MY_P 1>&2
#echo $MY_PV 1>&2
#echo $MY_PN 1>&2
#echo $SLOT 1>&2
#echo $INHERIT 1>&2