diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-07-31 20:18:49 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2010-07-31 20:18:49 -0300 |
commit | c216827726c0286fd93f5a539fed758f263231d7 (patch) | |
tree | bafddad74787a70bd56bca9f376feccd45ca8487 /g_octave | |
parent | moved SvnDescription to the g_octave.description module (diff) | |
download | g-octave-c216827726c0286fd93f5a539fed758f263231d7.tar.gz g-octave-c216827726c0286fd93f5a539fed758f263231d7.tar.bz2 g-octave-c216827726c0286fd93f5a539fed758f263231d7.zip |
moved RESTRICT="mirror" to the eclass
Diffstat (limited to 'g_octave')
-rw-r--r-- | g_octave/ebuild.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/g_octave/ebuild.py b/g_octave/ebuild.py index c3b5805..1edfada 100644 --- a/g_octave/ebuild.py +++ b/g_octave/ebuild.py @@ -30,14 +30,15 @@ try: except: has_svn = False -from portage.versions import vercmp - import os import portage import re import shutil import subprocess +from portage.versions import vercmp +from datetime import datetime + out = portage.output.EOutput() # validating keywords (based on the keywords from the sci-mathematics/octave package) @@ -127,7 +128,7 @@ class Ebuild: os.makedirs(ebuild_path, 0o755) ebuild = """\ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-%(year)s Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # This ebuild was generated by g-octave @@ -145,10 +146,6 @@ SLOT="0" KEYWORDS="%(keywords)s" IUSE="" -# it's annoying have to see the download of packages from the official -# mirrors fail with a 404 error. -RESTRICT="mirror" - DEPEND="%(depend)s" RDEPEND="${DEPEND} \t%(rdepend)s" @@ -163,6 +160,7 @@ RDEPEND="${DEPEND} category = self.__dbtree.categories.get(self.pkgname, '') vars = { + 'year': datetime.utcnow().strftime('%Y'), 'eutils': '', 'description': description, 'url': self.__desc.url, |