Popt pisi-build ile derlenip, install ediliyor...

This commit is contained in:
S.Çağlar Onur
2005-06-15 11:04:37 +00:00
parent 674b583665
commit f25ba861bf
4 changed files with 41 additions and 11 deletions
+2 -2
View File
@@ -32,5 +32,5 @@ def install():
mandir={D}/usr/share/man \
sysconfdir={D}/etc \
install'
os.system( install_string.replace( '{D}', os.path.dirname( os.getcwd()) + '/image' ))
os.system( install_string.replace( '{D}', os.path.dirname( os.path.dirname( os.getcwd())) + '/image' ))
+4 -4
View File
@@ -3,12 +3,12 @@
import os,sys
sys.path.append('..')
import config
#sys.path.append('..')
import pisi.config
def libtoolize():
''' FIXME: Düzgün hale getirilecek '''
''' patch source with ltmain patches '''
os.system( 'patch -sN < ' + config.lib_dir() + '/portage-1.4.1.patch' )
os.system( 'patch -sN < ' + config.lib_dir() + '/sed-1.4.0.patch' )
os.system( 'patch -sN < ' + pisi.config.lib_dir() + '/portage-1.4.1.patch' )
os.system( 'patch -sN < ' + pisi.config.lib_dir() + '/sed-1.4.0.patch' )
+18 -5
View File
@@ -8,6 +8,7 @@ import os
from specfile import SpecFile
from fetcher import Fetcher
from archive import Archive
# import pisipackage
import util
import config
@@ -41,13 +42,22 @@ class PisiBuild:
self.fetchArchive(displayProgress)
ui.info("Source archive is stored: %s/%s\n"
%(config.archives_dir(), self.spec.source.archiveName))
# solveBuildDependencies()
self.solveBuildDependencies()
ui.info("Unpacking archive...\n")
self.unpackArchive()
# applyPatches()
# buildSource()
# installTarget()
self.buildPackages()
# applyPatches()
self.actionScript = open( os.path.dirname( self.pspecfile ) + '/' + 'actions' ).read()
os.chdir( config.build_work_dir( self.spec.source.name, self.spec.source.version, self.spec.source.release ) + "/" + self.spec.source.name + "-" + self.spec.source.version)
locals = globals = {}
exec compile( self.actionScript , "error", "exec" ) in locals,globals
locals['src_setup']()
locals['src_build']()
locals['src_install']()
def fetchArchive(self, percentHook=None):
"""fetch an archive and store to config.archives_dir()
@@ -71,6 +81,9 @@ class PisiBuild:
if percentHook:
ui.info('\n')
def solveBuildDependencies(self):
pass
def unpackArchive(self):
type = self.spec.source.archiveType
fileName = self.spec.source.archiveName
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from pisi.actionsapi.gnuconfig import *
from pisi.actionsapi.libtoolize import *
from pisi.actionsapi.autotools import *
def src_setup():
gnuconfig_update()
libtoolize()
configure( '--with-nls' )
def src_build():
make()
def src_install():
install()