summaryrefslogtreecommitdiff
blob: b45cf690f53fc4717d201d890a23a973762636d2 (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
77
78
79
80
81
82
83
84
85
86
87
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit autotools

DESCRIPTION="extensions for cinnamon's file-manager nemo"
HOMEPAGE=""
SRC_URI="https://github.com/muzena/nemo-extensions/archive/2.2.x.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"

# Possible extensions that have to be tested
# -compare -dropbox -foldercolor -gtkhash -imageconverter -mediacolumns -pastebin -preview -python -rabbitvcs -repairer -seahorse -share -terminal

# Tested extensions
IUSE="fileroller compare dropbox foldercolor gtkhash imageconverter mediacolumns pastebin preview python rabbitvcs repairer seahorse share terminal"
MODULES=${IUSE//-/}

DEPEND="( =gnome-extra/nemo-2* )
		fileroller? ( app-arch/file-roller )"

RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	mv ${PN}-2.2.x ${P}
}

src_prepare () {
	for module in ${MODULES}
		do
		if use ${module}
			then
			elog "Preparing ${module}"
			pushd nemo-${module}
			eautoreconf
			popd
		fi
	done
}

src_configure () {
	for module in ${MODULES}
		do
		if use ${module}
			then
			elog "Configuring ${module}"
			pushd nemo-${module}
			econf
			popd
		fi
	done
}

src_compile () {
	for module in ${MODULES}
		do
		if use ${module}
			then
			elog "Compiling ${module}"
			pushd nemo-${module}
			emake
			popd
		fi
	done
}

src_install () {
	for module in ${MODULES}
		do
		if use ${module}
			then
			elog "Installing ${module}"
			pushd nemo-${module}
			emake DESTDIR="${D}" install
			elog "Removing .a and .la files"
			find ${D} -name "*.a" -exec rm {} + -o -name "*.la" -exec rm {} + || die
			dodoc README
			popd
		fi
	done
}