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

Contents of /dev-python/python-docs/python-docs-2.7.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Sep 4 03:11:17 2014 UTC (5 years, 10 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
switch prior changes to revbumps

(Portage version: 2.2.10/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-2.7.6.ebuild,v 1.2 2014/09/02 06:44:19 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="2.7"
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 src_install() {
22 dohtml -A xml -A inv -r ./
23 echo "PYTHONDOCS_${SLOT//./_}=\"${EPREFIX}/usr/share/doc/${PF}/html/library\"" > "60python-docs-${SLOT}"
24 doenvd "60python-docs-${SLOT}"
25 }
26
27 pkg_postrm() {
28 if ! has_version "<dev-python/python-docs-${SLOT}_alpha" && ! has_version ">=dev-python/python-docs-${SLOT%.*}.$((${SLOT#*.}+1))_alpha"; then
29 rm -f "${EROOT}etc/env.d/65python-docs"
30 fi
31 }

  ViewVC Help
Powered by ViewVC 1.1.20