SVN commit 1005397 by habacker: migrated to refactored emerge M +1 -4 CMakeLists.txt M +11 -20 gmm-20071019.py --- trunk/kdesupport/emerge/portage/kdesupport/gmm/CMakeLists.txt #1005396:1005397 @@ -1,12 +1,9 @@ project(gmm) -# the following are directories where stuff will be installed to -set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "The subdirectory to the header prefix" FORCE) - FILE(GLOB gmm_header_SRCS "include/gmm/*.h") install(FILES ${gmm_header_SRCS} - DESTINATION ${INCLUDE_INSTALL_DIR}/gmm + DESTINATION include/gmm ) --- trunk/kdesupport/emerge/portage/kdesupport/gmm/gmm-20071019.py #1005396:1005397 @@ -1,6 +1,4 @@ -import base import os -import shutil import info class subinfo(info.infoclass): @@ -12,29 +10,22 @@ self.targetInstSrc['3.0'] = 'gmm-3.0' self.defaultTarget = '3.0' -class subclass(base.baseclass): - def __init__( self, **args ): - base.baseclass.__init__( self, args=args ) +from Package.CMakePackageBase import * + +class Package(CMakePackageBase): + def __init__( self ): + self.subinfo = subinfo() + CMakePackageBase.__init__( self ) # header-only package self.createCombinedPackage = True - self.subinfo = subinfo() def unpack( self ): - if not self.kdeSvnUnpack(): + if not CMakePackageBase.unpack(self): return False - src = os.path.join( self.packagedir , "CMakeLists.txt" ) - dst = os.path.join( self.workdir, self.instsrcdir, "CMakeLists.txt" ) - shutil.copy( src, dst ) + src = os.path.join( self.packageDir(), "CMakeLists.txt" ) + dst = os.path.join( self.sourceDir(), "CMakeLists.txt" ) + utils.copyFile( src, dst ) return True - def compile( self ): - return self.kdeCompile() - - def install( self ): - return self.kdeInstall() - - def make_package( self ): - return self.doPackaging( 'gmm', self.buildTarget, True ) - if __name__ == '__main__': - subclass().execute() + Package().execute()