blob: a9df7ed27db9dae884bcaa8958d76303b305aacd (
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
|
#!/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 g_sorcery.fileutils import get_pkgpath
class ElpaEbuildWithDigestGenerator(EbuildGeneratorFromFile):
def __init__(self, package_db):
name = os.path.join(get_pkgpath(__file__), '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(__file__), 'data/ebuild_without_digest.tmpl')
super(ElpaEbuildWithoutDigestGenerator, self).__init__(package_db, filename = name)
|