summaryrefslogtreecommitdiff
blob: 7ac0807a37deafd14953e138022f488c4f250ae3 (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
#generated by emake-0.3.3

EAPI=6

DESCRIPTION="Simple Reverse Tethering utility for Android"
HOMEPAGE="https://github.com/iteratec/SimpleRT"

SRC_URI="https://github.com/iteratec/SimpleRT/archive/1.2.2.tar.gz -> simple-rt-1.2.2.tgz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86 ~arm"
IUSE=""

RDEPEND=""
DEPEND="
	${RDEPEND}
"

S=${WORKDIR}/SimpleRT-1.2.2/simple-rt-cli/

PATCHES=(
	"${FILESDIR}/${P}-un_install.patch"
)

src_unpack() {
	unpack "simple-rt-1.2.2.tgz"
}

src_compile() {
	if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
		emake prefix=$EPREFIX//usr || die "emake failed"
	fi
}
 
src_install() {
	if [[ -f "Makefile" ]] || [[ -f "GNUmakefile" ]] || [[ -f "makefile" ]] ; then
		emake DESTDIR="${D}" prefix=${EPREFIX}//usr install
	fi

	if ! declare -p DOCS >/dev/null 2>&1 ; then
		local d
		for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS FAQ CREDITS CHANGELOG ; do
			[[ -s "${d}" ]] && dodoc "${d}"
		done
	elif $(declare -p DOCS | grep -q "^declare -a ") ; then
		dodoc "${DOCS[@]}"
	else
		dodoc ${DOCS}
	fi
}