diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-12-25 11:11:48 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-12-25 11:11:48 +0000 |
commit | ee04b1d8a53708cc52d4c3f32889ded29a7a4684 (patch) | |
tree | d0353d77e18ec98d8641e8d8767beb949dbc42cd /app-text/silvercity | |
parent | Version bump, fix bug#533482, bug#533484, cleanup (diff) | |
download | gentoo-2-ee04b1d8a53708cc52d4c3f32889ded29a7a4684.tar.gz gentoo-2-ee04b1d8a53708cc52d4c3f32889ded29a7a4684.tar.bz2 gentoo-2-ee04b1d8a53708cc52d4c3f32889ded29a7a4684.zip |
Convert to distutils-r1.
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'app-text/silvercity')
-rw-r--r-- | app-text/silvercity/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/silvercity/silvercity-0.9.7-r1.ebuild | 40 |
2 files changed, 46 insertions, 1 deletions
diff --git a/app-text/silvercity/ChangeLog b/app-text/silvercity/ChangeLog index 90f622601a78..fce62d9f691d 100644 --- a/app-text/silvercity/ChangeLog +++ b/app-text/silvercity/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/silvercity # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/silvercity/ChangeLog,v 1.28 2014/08/10 18:33:45 slyfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/silvercity/ChangeLog,v 1.29 2014/12/25 11:11:48 mgorny Exp $ + +*silvercity-0.9.7-r1 (25 Dec 2014) + + 25 Dec 2014; Michał Górny <mgorny@gentoo.org> +silvercity-0.9.7-r1.ebuild: + Convert to distutils-r1. 10 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> silvercity-0.9.7.ebuild: QA: drop trailing '.' from DESCRIPTION diff --git a/app-text/silvercity/silvercity-0.9.7-r1.ebuild b/app-text/silvercity/silvercity-0.9.7-r1.ebuild new file mode 100644 index 000000000000..c12a86054682 --- /dev/null +++ b/app-text/silvercity/silvercity-0.9.7-r1.ebuild @@ -0,0 +1,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 +} |