Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 177402 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-3 / +30 lines)
Line  Link Here
0
-- unrar-3.9.9.ebuild
0
++ unrar-3.9.9.ebuild
Lines 12-32 Link Here
12
LICENSE="unRAR"
12
LICENSE="unRAR"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
14
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
15
IUSE=""
15
IUSE="lib"
16
16
17
DEPEND="!app-arch/unrar-gpl"
17
DEPEND="!app-arch/unrar-gpl"
18
18
19
S=${WORKDIR}/unrar
19
S=${WORKDIR}/unrar
20
20
21
src_unpack() {
22
	unpack ${A}
23
	if use lib; then
24
		cp -dpR "${S}" "${WORKDIR}"/lib
25
		sed -i \
26
			-e 's:$(LINK) -shared:$(LINK) -shared -Wl,-soname:' \
27
			"${WORKDIR}"/lib/makefile.unix || die
28
	fi
29
}
30
21
src_compile() {
31
src_compile() {
22
	emake \
32
	emake \
23
		-f makefile.unix \
33
		-f makefile.unix \
24
		CXXFLAGS="${CXXFLAGS}" \
34
		CXXFLAGS="${CXXFLAGS}" \
25
		CXX="$(tc-getCXX)" \
35
		CXX="$(tc-getCXX)" \
26
		STRIP="true" || die "emake failed"
36
		STRIP="true" || die
37
38
	if use lib; then
39
		cd "${WORKDIR}"/lib
40
		emake \
41
			-f makefile.unix \
42
			CPPFLAGS="-fPIC" \
43
			CXXFLAGS="${CXXFLAGS}" \
44
			CXX="$(tc-getCXX)" \
45
			STRIP="true" lib || die
46
	fi
27
}
47
}
28
48
29
src_install() {
49
src_install() {
30
	dobin unrar || die
50
	dobin unrar || die
31
	dodoc readme.txt
51
	dodoc readme.txt
52
53
	if use lib; then
54
		cd "${WORKDIR}"/lib
55
		dolib.so libunrar.so || die
56
		insinto /usr/include/libunrar3
57
		doins dll.hpp || die
58
	fi
32
}
59
}

Return to bug 177402