blob: c12a8605468245c3894cae1b7313cd43a6ec2d22 (
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
39
40
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/silvercity/silvercity-0.9.7-r1.ebuild,v 1.1 2014/12/25 11:11:48 mgorny Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 eutils
MY_PN="SilverCity"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A lexical analyser for many languages"
HOMEPAGE="http://silvercity.sourceforge.net/"
SRC_URI="mirror://sourceforge/silvercity/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${MY_P}"
python_prepare_all() {
# Fix line endings.
find -type f -exec sed -e 's/\r$//' -i {} + || die "sed failed"
# Fix permissions.
chmod -x CSS/default.css || die "chmod failed"
# Fix shebang.
sed -e 's:#!/usr/home/sweetapp/bin/python:#!/usr/bin/env python:' \
-i PySilverCity/Scripts/cgi-styler-form.py || die "sed failed"
distutils-r1_python_prepare_all
}
|