blob: 8e20ee3046ea1c3657f828ae9813463692f3ae3b (
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
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
ebuild.py
~~~~~~~~~~~~~
ebuild generation
:copyright: (c) 2013 by Jauhien Piatlicki
:license: GPL-2, see LICENSE for more details.
"""
import os
from g_sorcery.ebuild import EbuildGeneratorFromFile
from .fileutils import get_pkgpath
class ElpaEbuildWithDigestGenerator(EbuildGeneratorFromFile):
def __init__(self, package_db):
name = os.path.join(get_pkgpath(), 'data/ebuild_with_digest.tmpl')
super(ElpaEbuildWithDigestGenerator, self).__init__(package_db, filename = name)
class ElpaEbuildWithoutDigestGenerator(EbuildGeneratorFromFile):
def __init__(self, package_db):
name = os.path.join(get_pkgpath(), 'data/ebuild_without_digest.tmpl')
super(ElpaEbuildWithoutDigestGenerator, self).__init__(package_db, filename = name)
|