forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devmanual-0_pre20141116.ebuild
58 lines (48 loc) · 1.57 KB
/
devmanual-0_pre20141116.ebuild
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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit readme.gentoo
[[ "${PV}" == "9999" ]] && inherit git-2
DESCRIPTION="The Gentoo Development Guide"
HOMEPAGE="https://devmanual.gentoo.org/"
if [[ "${PV}" == "9999" ]]; then
EGIT_REPO_URI="git://anongit.gentoo.org/proj/devmanual.git"
else
SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
fi
LICENSE="CC-BY-SA-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-macos"
IUSE=""
DEPEND="dev-libs/libxslt
media-gfx/imagemagick[truetype,svg,png]"
DOC_CONTENTS="In order to browse the Gentoo Development Guide in
offline mode, point your browser to the following url:
${EPREFIX}/usr/share/doc/devmanual/html/index.html"
src_compile() {
# Imagemagick uses inkscape (if present) to delegate
# svg conversions.
# Inkscape uses g_get_user_config_dir () which in turn
# uses XDG_CONFIG_HOME to get the config directory for this
# user. See bug 463380
export XDG_CONFIG_HOME="${T}/inkscape_home"
emake
}
src_install() {
dohtml -r *
einfo "Creating symlink from ${P} to ${PN} for preserving bookmarks"
dosym /usr/share/doc/${P} /usr/share/doc/${PN}
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
if ! has_version app-portage/eclass-manpages; then
elog "The offline version of the devmanual does not include the"
elog "documentation for the eclasses. If you need it, then emerge"
elog "the following package:"
elog
elog "app-portage/eclass-manpages"
elog
fi
}