/[gentoo-x86]/dev-util/comparator/comparator-2.5.ebuild
Gentoo

Contents of /dev-util/comparator/comparator-2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Dec 2 21:26:09 2012 UTC (20 months, 4 weeks ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +3 -3 lines
Update licenses, bug #445642

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/comparator/comparator-2.5.ebuild,v 1.7 2011/01/11 21:38:50 arfrever Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.*"
9
10 inherit distutils toolchain-funcs
11
12 DESCRIPTION="ESR's utility for making fast comparisons among large source trees"
13 HOMEPAGE="http://www.catb.org/~esr/comparator/"
14 SRC_URI="http://www.catb.org/~esr/comparator/${P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~mips ~ppc sparc x86"
19 IUSE=""
20
21 RDEPEND=""
22 DEPEND="=app-text/docbook-xml-dtd-4.1.2*
23 app-text/xmlto"
24
25 PYTHON_MODNAME="comparator.py"
26
27 src_prepare() {
28 sed \
29 -e '/install -m 755 -o 0 -g 0 filterator/d' \
30 -e '/python setup.py install/d' \
31 -i Makefile || die "sed failed"
32 }
33
34 src_compile() {
35 distutils_src_compile
36 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
37 emake comparator.html scf-standard.html || die "emake html failed"
38 }
39
40 src_install() {
41 distutils_src_install
42 emake ROOT="${D}" install || die "emake install failed"
43
44 install_filterator() {
45 newbin filterator filterator-${PYTHON_ABI} || return 1
46 python_convert_shebangs ${PYTHON_ABI} "${ED}usr/bin/filterator-${PYTHON_ABI}"
47 }
48 python_execute_function -q install_filterator
49 python_generate_wrapper_scripts "${ED}usr/bin/filterator"
50
51 dohtml *.html || die "dohtml failed"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20