/[gentoo-x86]/dev-python/python-docs/python-docs-3.4.2.ebuild
Gentoo

Contents of /dev-python/python-docs/python-docs-3.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Nov 1 10:20:49 2014 UTC (5 years, 8 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
bump

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-docs/python-docs-3.4.1.ebuild,v 1.1 2014/09/08 08:14:18 idella4 Exp $
4
5 EAPI="5"
6
7 DESCRIPTION="HTML documentation for Python"
8 HOMEPAGE="http://www.python.org/doc/"
9 SRC_URI="http://www.python.org/ftp/python/doc/${PV}/python-${PV}-docs-html.tar.bz2"
10
11 LICENSE="PSF-2"
12 SLOT="3.4"
13 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
14 IUSE=""
15
16 DEPEND=""
17 RDEPEND=""
18
19 S="${WORKDIR}/python-${PV}-docs-html"
20
21 pkg_setup() {
22 # Compatibility with Arfrever's pre-release ebuilds.
23 # Remove this in python-docs-3.4.1.
24 if has_version "=dev-lang/python-3.4_pre*[doc]"; then
25 rm -f "${EROOT}etc/env.d/60python-docs-3.4"
26 fi
27 }
28
29 src_install() {
30 dohtml -A xml -A inv -r ./
31 echo "PYTHONDOCS_${SLOT//./_}=\"${EPREFIX}/usr/share/doc/${PF}/html/library\"" > "60python-docs-${SLOT}"
32 doenvd "60python-docs-${SLOT}"
33 }
34
35 pkg_postrm() {
36 if ! has_version "<dev-python/python-docs-${SLOT}_alpha" && ! has_version ">=dev-python/python-docs-${SLOT%.*}.$((${SLOT#*.}+1))_alpha"; then
37 rm -f "${EROOT}etc/env.d/65python-docs"
38 fi
39 }

  ViewVC Help
Powered by ViewVC 1.1.20