summaryrefslogtreecommitdiff
blob: ae18da8e5b366d69636ba3e74845e6eb1893e8ba (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
29
30
31
32
33
34
35
36
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit python eutils multilib

DESCRIPTION="fast, efficient, command-line utility for downloading quotes from Yahoo."
HOMEPAGE="http://rimonbarr.com/repository/pyq/index.html"
SRC_URI="http://rimonbarr.com/repository/${PN}/code/${PN}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

src_unpack() {
	cp "${DISTDIR}"/pyq "${WORKDIR}"
}

src_install() {
	python_version
	cd "${WORKDIR}"
	insinto /usr/$(get_libdir)/python${PYVER}/site-packages/
	newins pyq pyq.py
	make_wrapper pyq "python /usr/$(get_libdir)/python${PYVER}/site-packages/pyq.py"
}

pkg_postinst() {
	python_version
	python_mod_optimize "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages"
}

pkg_postrm() {
	python_version
	python_mod_cleanup "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages"
}