diff options
author | 2010-07-31 20:18:49 -0300 | |
---|---|---|
committer | 2010-07-31 20:18:49 -0300 | |
commit | c216827726c0286fd93f5a539fed758f263231d7 (patch) | |
tree | bafddad74787a70bd56bca9f376feccd45ca8487 | |
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
-rw-r--r-- | g_octave/ebuild.py | 12 | ||||
-rw-r--r-- | share/g-octave.eclass | 1 |
2 files changed, 6 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, diff --git a/share/g-octave.eclass b/share/g-octave.eclass index a822b50..ef6d277 100644 --- a/share/g-octave.eclass +++ b/share/g-octave.eclass @@ -30,6 +30,7 @@ HOMEPAGE="http://www.g-octave.org/" SLOT="0" LICENSE="GPL-2" DESCRIPTION="Based on the ${ECLASS} eclass" +RESTRICT="mirror" # defining some paths OCT_ROOT="/usr/share/octave" |