Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 264822
Collapse All | Expand All

(-)avrdude-5.5.ebuild (-38 / +12 lines)
Lines 5-59 Link Here
5
DESCRIPTION="AVR Downloader/UploaDEr"
5
DESCRIPTION="AVR Downloader/UploaDEr"
6
HOMEPAGE="http://savannah.nongnu.org/projects/avrdude"
6
HOMEPAGE="http://savannah.nongnu.org/projects/avrdude"
7
SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz
7
SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz
8
	!doc? ( http://savannah.nongnu.org/download/${PN}/${PN}-doc-${PV}.tar.gz
8
	doc? ( http://savannah.nongnu.org/download/${PN}/${PN}-doc-${PV}.tar.gz
9
		http://savannah.nongnu.org/download/${PN}/${PN}-doc-${PV}.pdf )"
9
		http://savannah.nongnu.org/download/${PN}/${PN}-doc-${PV}.pdf )"
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~arm amd64 ~ppc ~ppc64 x86"
13
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
14
14
15
IUSE="doc"
15
IUSE="doc html"
16
RDEPEND="dev-libs/libusb"
17
DEPEND="${RDEPEND}
18
	doc? ( app-text/texi2html
19
		virtual/latex-base
20
		sys-apps/texinfo )"
21
22
src_unpack() {
23
	unpack ${A}
24
	cd "${S}"
25
26
	# let the build system re-generate these, bug #120194
27
	rm -f lexer.c config_gram.c config_gram.h
28
}
29
16
30
src_compile() {
17
RDEPEND="dev-libs/libusb"
31
	econf --disable-dependency-tracking --disable-doc || die "econf failed"
18
DEPEND="${RDEPEND}"
32
33
	# Re-adding -j1 here (see bug #202576) but that should be fixed someday
34
	emake -j1 || die "emake failed"
35
36
	# We build docs separately since the makefile doesn't do it in a really nice way
37
	if use doc ; then
38
		cd doc
39
		VARTEXFONTS="${T}/fonts" emake -j1 || die "emake doc failed"
40
	fi
41
}
42
19
43
src_install() {
20
src_install() {
44
	emake DESTDIR="${D}" install || die "emake install failed"
21
	emake DESTDIR="${D}" install || die "emake install failed"
45
22
46
	dodoc AUTHORS NEWS README ChangeLog*
23
	dodoc AUTHORS ChangeLog* NEWS README || die "dodoc failed"
47
24
48
	# We either install docs we just built or those pre-made by upstream
49
	insinto /usr/share/doc/${PF}
50
	if use doc ; then
25
	if use doc ; then
51
		cd doc
26
		newdoc "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf || \
52
		doins avrdude.{ps,pdf}
27
			die "newdoc	failed"
53
	else
28
	fi
54
		newins "${DISTDIR}/${PN}-doc-${PV}.pdf" avrdude.pdf
29
55
		cd "${WORKDIR}"
30
	if use html; then
31
		dohtml -r "${WORKDIR}/avrdude-html/" || die "dohtml failed"
56
	fi
32
	fi
57
	mv avrdude-html html
58
	doins -r html
59
}
33
}

Return to bug 264822