diff options
author | 2005-06-01 15:57:02 +0000 | |
---|---|---|
committer | 2005-06-01 15:57:02 +0000 | |
commit | 8797c6e25253c3a70c1a99e546638136d1f84cf9 (patch) | |
tree | bdebccdabe6186cb3d0142a53e023e45312c82a3 /app-text/silvercity/silvercity-0.9.5-r1.ebuild | |
parent | (Portage version: 2.0.51.19) (Manifest recommit) (diff) | |
download | gentoo-2-8797c6e25253c3a70c1a99e546638136d1f84cf9.tar.gz gentoo-2-8797c6e25253c3a70c1a99e546638136d1f84cf9.tar.bz2 gentoo-2-8797c6e25253c3a70c1a99e546638136d1f84cf9.zip |
Revision bump for security bug 93558. Also fixed a CR/LF issue. Thanks to Jürgen Hötzel <gentoo@hoetzel.info> for the patch.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-text/silvercity/silvercity-0.9.5-r1.ebuild')
-rw-r--r-- | app-text/silvercity/silvercity-0.9.5-r1.ebuild | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/app-text/silvercity/silvercity-0.9.5-r1.ebuild b/app-text/silvercity/silvercity-0.9.5-r1.ebuild new file mode 100644 index 000000000000..894351d928be --- /dev/null +++ b/app-text/silvercity/silvercity-0.9.5-r1.ebuild @@ -0,0 +1,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" +} |