blob: 1315c4f1d97bb63243cd0ac08b5a5675638b3d6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
import shutil
from cerbero.utils import shell
class Recipe(recipe.Recipe):
name = 'gas-preprocessor'
version = '0.0.0'
licenses = [License.GPLv2]
btype = BuildType.CUSTOM
remotes = {'origin': 'git://github.com/ylatuya/gas-preprocessor.git'}
commit = 'origin/master'
def install(self):
if not os.path.exists(os.path.join(self.config.prefix, 'bin')):
os.makedirs(os.path.join(self.config.prefix, 'bin'))
shutil.copy (os.path.join(self.build_dir, 'gas-preprocessor.pl'),
os.path.join(self.config.prefix, 'bin'))
shell.call ('chmod +x %s' %
os.path.join(self.config.prefix, 'bin', 'gas-preprocessor.pl'))
|