blob: 894351d928be4fe233942e4f2e2529e0af76963f (
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
|
# Copyright 1999-2005 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.1 2005/06/01 15:57:02 ka0ttic 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 ~sparc x86"
IUSE=""
RESTRICT="nomirror"
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"
}
|