blob: 03c1b11b6efcf8ed4ef57ce1845a1868f78373ac (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/silvercity/silvercity-0.9.5-r1.ebuild,v 1.5 2007/05/15 17:04:16 beandog Exp $
inherit distutils
DESCRIPTION="A lexical analyser for many langauges."
HOMEPAGE="http://silvercity.sourceforge.net/"
MY_P=${P/silvercity/SilverCity}
SRC_URI="mirror://sourceforge/silvercity/${MY_P}.tar.gz"
S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc ~ppc-macos ~sparc x86"
IUSE=""
DEPEND=">=dev-lang/python-2.3"
src_install() {
distutils_src_install
# fix permissions - sec bug 93558
chmod -R a-w ${D}
# fix CR/LF issue
find ${D}/usr/bin -iname "*.py" -exec sed -e '1s/\r$//' -i \{\} \;
# fix path
dosed -i '1s|#!/usr/home/sweetapp/bin/python|#!/usr/bin/env python|' \
/usr/bin/cgi-styler-form.py || die "dosed failed"
}
|