summaryrefslogtreecommitdiff
blob: 1313bc20b7d159c382a683e3563b6ce47282b63a (plain)
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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycipher/pycipher-0.2.ebuild,v 1.1 2009/02/03 19:55:22 patrick Exp $

inherit eutils python

DESCRIPTION="A Python module that implements several well-known classical cipher \
algorithms"
HOMEPAGE="http://pycipher.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.py"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="dev-lang/python"

src_install() {
		cd "${WORKDIR}"

		python_version
		exeinto "${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages"
		newexe "${DISTDIR}/${P}.py ${PN}.py"

		local dir="${ROOT}/usr/$(get_libdir)/python${PYVER}/site-packages"
		make_wrapper "${PN}" "python ./${PN}.py" "${dir}"
}