/[gentoo-x86]/dev-python/pydns/pydns-3.0.1.ebuild
Gentoo

Contents of /dev-python/pydns/pydns-3.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Apr 5 06:16:52 2012 UTC (14 months, 2 weeks ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
marked x86 per bug 404715

(Portage version: 2.2.0_alpha99/cvs/Linux i686)

1 ago 1.2 # Copyright 1999-2012 Gentoo Foundation
2 sbriesen 1.1 # Distributed under the terms of the GNU General Public License v2
3 jdhore 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pydns/pydns-3.0.1.ebuild,v 1.2 2012/03/28 07:42:16 ago Exp $
4 sbriesen 1.1
5     EAPI="4"
6     PYTHON_DEPEND="3"
7     SUPPORT_PYTHON_ABIS="1"
8     RESTRICT_PYTHON_ABIS="2.*"
9    
10     inherit distutils
11    
12     DESCRIPTION="Python module for DNS (Domain Name Service)"
13     HOMEPAGE="http://pydns.sourceforge.net/ http://pypi.python.org/pypi/pydns"
14     SRC_URI="http://downloads.sourceforge.net/project/pydns/py3dns/${P/py/py3}.tar.gz"
15    
16     LICENSE="CNRI"
17     SLOT="3"
18 jdhore 1.3 KEYWORDS="amd64 x86"
19 sbriesen 1.1 IUSE="examples"
20    
21     DEPEND="!dev-python/py3dns
22     virtual/libiconv"
23     RDEPEND=""
24    
25     DOCS="CHANGES CREDITS"
26     PYTHON_MODNAME="DNS"
27    
28     S="${WORKDIR}/${P/py/py3}"
29    
30     src_prepare() {
31     # Don't compile bytecode.
32     sed -i -e 's:^\(compile\|optimize\).*:\1 = 0:g' setup.cfg
33    
34     # cleanup docs
35     rm -f -- "README-guido.txt"
36     mv -f -- "README.txt" "README"
37     mv -f -- "CREDITS.txt" "CREDITS"
38     }
39    
40     src_install(){
41     distutils_src_install
42    
43     if use examples; then
44     insinto /usr/share/doc/${PF}/examples
45     docompress -x /usr/share/doc/${PF}/examples
46     doins tests/*.py tools/*.py
47     fi
48     }

  ViewVC Help
Powered by ViewVC 1.1.20