blob: ec86465d74b0ce73a3799a234d3c62592dc8e2f0 (
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
37
38
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="ssl(+)"
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="Client for Freshcode and Freecode-like sites."
HOMEPAGE="http://www.catb.org/~esr/freecode-submit/"
SRC_URI="http://www.catb.org/~esr/freecode-submit/${PF}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
python_prepare_all() {
sed -i 's:PREFIX=:PREFIX?=:' Makefile || die 'Prefix fix sed failed.'
distutils-r1_python_prepare_all
}
python_compile() {
emake all
}
python_install() {
python_fix_shebang freecode-submit
emake PREFIX="${D}" install
einstalldocs
}
|